One acre of land is equivalent to 43,560 square feet. Design a program that asks the user to enter the total square feet in a tract of land and calculates the number of acres in the tract.
Q: A movie in a local theater is in great demand. To help a local charity, the theater owner has…
A: PROGRAM STRUCTURE: Include the required header files for the program code: Header file iostream is…
Q: The monthly payment for a given loan pays the principal and the interest. The monthly interest is…
A: Answer :
Q: Speeding Violation Calc Design a program that calculates and displays the number of miles per hour…
A: Actually, algorithm is an step by step process.
Q: 7. Test Average and Grade Write a program that asks the user to enter five test scores. The program…
A: /*Java Program that ask user to enter 5 test scores and displays letter grade for each score and…
Q: Financial application: compare loans with various interest rates) Write a program that lets the user…
A: Actually, program is a executable software that runs on a computer.
Q: Random numbers are important in programming languages. Write the code to generate and display 10…
A: #include <iostream>#include <stdlib.h>#include <time.h> int main(void){…
Q: Summary During each summer, John and Jessica grow vegetables in their backyard and buy seeds and…
A: The logic errors in the program are: The formula for the price of the fertilizer per pound where…
Q: Guess-the-number-game: Write a program that pays the game of “guess the number” as follows: Your…
A: Since the programming language is not mentioned in the question, we will answer this question in the…
Q: Assuming there are no deposits other than the original investment, the balance in a saving account…
A: Since you have not mentioned programing language I'm doing this in Python.
Q: (Financial application: calculate future investment value) Write a program**(PYTHON)** that reads in…
A: First, we will input the investment amount, annual interest rate, and the number of years. Then…
Q: Problem Statement Write a program to help Florence decide which snacks and beverages to serve her…
A: the c ++ code is an given below :
Q: (Find the lowest price) Write a program that prompts the user to enter the number of items and each…
A: C++ Program for above : #include <iostream> using namespace std; int main() { //get the…
Q: (Financial application: calculate interest) If you know the balance and the annual percentage…
A: PROGRAM CODE: #include <iostream> // include header file for input output…
Q: Payroll Program with Input Validation Design a payroll program that prompts the user to enter an…
A: hourly_pay_rate = float(input("Enter employee's hourly pay rate (in $): ")) # taking user input…
Q: Fat Gram Calculator Design a program that asks for the number of fat grams and calories in a food…
A: Solution Here is the source code of the program "main.java" // We are import the necessary package…
Q: The monthly payment for a given loan pays the principal and the interest. The monthly interest is…
A: Given: The monthly payment for a given loan pays the principal and the interest. The monthly…
Q: Fat Gram Calculator Design a program that asks for the number of fat grams and calories in a food…
A: This program calculates the percentage of calories from fat grams. Number of fat grams and calories…
Q: 11. Circuit Board Profit An electronics company sells circuit boards at a 40 percent profit. If you…
A: Java program to find the profit on the circuit board. The profit is 40 percent on selling a circuit…
Q: Morgan’s Department Store distributes bonuses to its salespeople after the holiday rush. Table 9-6…
A: import java.util.Scanner;class Test155 { public static void main(String args[]) { Scanner sc = new…
Q: C++ Miles per Gallon A car holds 15 gallons of gasoline and can travel 375 miles before refueling.…
A: Task :- Write a C++ program to calculate miles per gallon. C++ Program :- #include…
Q: Fat Gram Calculator Design a program that asks for the number of fat grams and calories in a food…
A: Dear Student, As no language is mentioned I am doing it in C++.
Q: A toll road is a road that requires a fee to be paid when driven on. Sometimes, the fee charged can…
A: The objective of the Main.java program is to prompt user to enter the type of vehicle and number of…
Q: (Check the speed) Write a program that prompts the user to enter the speed of a vehicle. If speed is…
A: C++ program is given below:
Q: rogramming Language: PHP 1. Create a program using switch statements that will ask the user to…
A: I have given the PHP code below.
Q: A toll road is a road that requires a fee to be paid when driven on. Sometimes, the fee charged can…
A: Program description: The java program, TollRoadProgram.java that prompts the user to enter the type…
Q: Salary Calculator Develop a program that will determine the gross pay for each of several employees.…
A: logic:- use a infinite loop , while loop read number of hours(-1 to end) if hours==-1 break…
Q: Write a loan calculator program that computes both monthly and total payments for a given loan…
A: As no language was mentioned, So, solving with C++. #include<iostream> using namespace std;…
Q: Evaluation (Factorial of a Number) Write a program that calculates the tactorial of a number using…
A:
Q: Box Office: A movie theater only keeps a percentage (20%) of the revenue earned from ticket sales.…
A: Step 1:- Program Approach:- (i)Include two header file (ii) iomanip header file is used for setw()…
Q: (Find the number of days in a month) Write a program that prompts the user to enter the month and…
A: Actually, program is a executable software that runs on a computer.
Q: uring each summer, John and Jessica grow vegetables in their backyard and buy seeds and fertilizer…
A: Required: During each summer, John and Jessica grow vegetables in their backyard and buy seeds and…
Q: Sales Prediction The East Coast sales division of a company generates 58 percent of total sales.…
A: Hey there, I am authorised to answer any one question at a time when there are multiple questions…
Q: Car sales commission problem - For each used car a salesperson sells, the commission paid is as…
A: As per our policy, we can answer only one question if want an answer for the second question you can…
Q: 8. Cookie Calories A bag of cookies holds 40 cookies. The calorie information on the bag claims that…
A: EXPLANATION: - Scanner class is present in util package, hence it is imported. The user is given…
Q: (Health application: BMI) Body Mass Index (BMI) is a measure of health on weight. It can be…
A: Code import java.util.Scanner;public class test{ public static void main(String args[]){…
Q: Body mass index (BMI) is a measure of health based on weight. It can be calculated by taking your…
A: Given: Body mass index (BMI) is a measure of health based on weight. It can be calculated by taking…
Q: Computer skills (Engineering) Functions Exercise (Parking Charges) A parking garage charges a $2.00…
A: #include<iostream> #include<conio.h> #include<iomanip> using namespace std; int…
Q: 7. (Medium) (Financial application: initial deposit amount) Suppose you want to deposit a certain…
A: c++ program #include<math.h>#include <iostream>using namespace std; //driver functionint…
Q: Rectangle Area The area of a rectangle is calculated according to the following formula: Width X…
A: Program Code: #include<stdio.h>int area(int w,int l){ int area; area=w*l; return;}main(){ int…
Q: Suppose that the tuition for a university is $10,000 this year and increases 5% every year. Write a…
A: In the computer programming, the concepts of the language that can be organized and managed as the…
Q: Software Šales A software company sells a package that retails for $99. Quantity discounts are given…
A:
Q: 7. (Medium) (Financial application: initial deposit amount) Suppose you want to deposit a certain…
A: C++ In this program , we just have to enter all values required to calculate initialDepositAmount .…
Q: Sales Prediction The East Coast sales division of a company generates 58 percent of total sales.…
A: Task :- Write programs to perform the given tasks. (As programming language is not specified , i…
Q: A car’s miles-per-gallon (MPG) can be calculated with the following formula:MPG 5 Miles driven…
A: C++ program is given below
Q: 2. The following table contains earthquake magnitude ranges on the Richter scale and their…
A: The programming methodology is given by: Including header files Main function Declaring magnitude…
Q: flowchart and pseudocode in problem solving and logic A painting company has determined that for…
A: pseudocode Module Get InputData() Display "Enter the number of square feet to be painted:"…
Q: (Slope of a line) Write a program that prompts the user to enter the coordinates of two points (x1,…
A: Here is the Python program: x1 = float(input("Enter the x-coordinate for point1: "))y1 =…
Q: Last month Joe purchased 100 shares of stock. Here are the details of the purchase: • When Joe…
A: Given: Last month Joe purchased 100 shares of stock. Here are the details of the purchase: • When…
Max Function
Statistical function is of many categories. One of them is a MAX function. The MAX function returns the largest value from the list of arguments passed to it. MAX function always ignores the empty cells when performing the calculation.
Power Function
A power function is a type of single-term function. Its definition states that it is a variable containing a base value raised to a constant value acting as an exponent. This variable may also have a coefficient. For instance, the area of a circle can be given as:
Land Calculation Question:
One acre of land is equivalent to 43,560 square feet. Design a program that asks the user to enter the total square feet in a tract of land and calculates the number of acres in the tract.
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 2 images
- Ron bought several acres of farm to grow and sell vegetables. Suppose that Ron wants to grow a maximum of two types of vegetables. Write a program that prompts Ron or the user to do the following: Enter the total farm area in acres. The number of vegetables (one or two) that the user wants to grow. If the user wants to grow trwo types of vegetables, then specify the portion,as a percentage, of the farm land used for each type of vegetable. Enter the seed cost, plantation cose, fertilizing cost, labor cost, for each acre. Enter vegetable selling price per acre. Output the total revenue. Output the profit/loss.(Numerical) Write an assignment statement to calculate the nth term in an arithmetic sequence. This is the formula for calculating the value, v, of the nth term: v=a+(n1)d a is the first number in the sequence. d is the difference between any two numbers in the sequence.Fat Gram Calculator Design a program that asks for the number of fat grams and calories in a food item. Validate the input as follows: Make sure the number of fat grams and calories is not less than 0. According to nutritional formulas, the number of calories cannot exceed fat grams x 9. Make sure that the number of calories entered is not greater than fat grams x 9. Once corrected data has been entered, the program should calculate and display the percentage of calories that come from fat. Use the following formula: Percentage of calories from fat = (Fat grams x 9) / calories ANSWER IN PSEUDOCODE USE ONLY WHILE LOOPS DO NOT USE MODULES/FUNCTIONS
- Fat Gram Calculator Design a program that asks for the number of fat grams and calories in a food item. Validate the input as follows: Make sure the number of fat grams and calories is not less than 0. According to nutritional formulas, the number of calories cannot exceed fat grams x 9. Make sure that the number of calories entered is not greater than fat grams x 9. Once corrected data has been entered, the program should calculate and display the percentage of calories that come from fat. Use the following formula: Percentage of calories from fat = (Fat grams x 9) / calories ANSWER IN PSEUDOCODESoftware Sales A software company sells a package that retails for $99. Quantity discounts are given below: Quantity Discount 10–19 20% 20–49 30% 50–99 40% 100 or more 50% Design a program that asks the user to enter the number of packages purchased. The program should then display the amount of the discount (if any) and the total amount of the purchase after the discount.Automobile Costs Problem:Design a modular program that asks the user to enter the monthly costs for the following expenses incurred from operating his or her automobile: loan payment, insurance, gas, oil, tires, and maintenance. The program should then display the total monthly cost of these expenses, and the total annual cost of these expenses.
- Odd Even Number Problem Description Even Numbers are integers that are exactly divisible by 2, whereas an odd number cannot be exactly divided by 2. Example of even numbers are 2,4,6,8 and odd numbers are 1, 3, 5, 7, 9. Input The first line input contains an integer, which determines the number of test cases. Each of following lines represent sequence of integers that ends with 0. 2 34 1 8 5 22 0 10 7 16 -2 0 Output For each test case, the output will present the size of oddQueue and evenQueue following with the integers of odd and even numbers. oddQueue 2: 1 5 evenQueue 3: 34 8 22 oddQueue 1: 7 evenQueue 3: 10 16 -2 ** Your task is to write a program that will read the input and identify whether it is an odd number or even number. /******************************************************************************* Compilation: javac Queue.java** The Queue class represents a first-in-first-out (FIFO) queue of generic items.* It supports the usual enqueue and dequeue…Time CalculatorWrite a program that asks the user to enter a number of seconds.-There are 60 seconds in a minute. If the number of seconds entered by the user is greater than or equal to 60, the program should display the number of minutes and leftover seconds in that many seconds.-There are 3,600 seconds in an hour. If the number of seconds entered by the user is greater than or equal to 3,600, the program should display the number of hours, minutes, and leftover seconds in that many seconds.-There are 86,400 seconds in a day. If the number of seconds entered by the user is greater than or equal to 86,400, the program should display the number of days, hours, minutes, and leftover seconds in that many seconds.Land CalculationOne acre of land is equivalent to 43,560 square feet. Design a program that asks the user to enter thetotal square feet in a tract of land and calculates the number of acres in the tract.Hint: Divide the amount entered by 43,560 to get the number of acres.
- 1. Lulu Hypermarket wants you to create a program that they can use to compute for the discounts to be given to Lulu card holders. The program should read the user to enter the name of the customer and the number of purchases. The number of purchases will serve as the counter for the number of times purchase amount will be entered by the user. The program should be able to count the number of purchase amounts in each of the following ranges: • 1 to 30 • Above 30 The program should also compute the sum of all the purchase amounts. A discount is computed based on the sum of the purchase amount. If the sum of the purchase is more than 500, the discount is 2.5% of the sum; otherwise, the discount is 5% of the sum. Display an appropriate output. Python 3software sales a software company sells a package that retails for $99. quantity discounts are given according to the following table: quantity discount 10-19 10% 20-49 20% 50-99 30% 100 or more 40% write a program that asks the user to enter the number of packages purchased. the program should then display the amount of the discount (if any) and the total amount of the purchase after the discount.3. Fat Gram Calculator Design a program that asks for the number of fat grams and calories in a food item. Validate the input as follows: • Make sure the number of fat grams and calories is not less than 0. According to nutritional formulas, the number of calories cannot exceed fat grams X 9. Make sure that the number of calories entered is not greater than fat grams × 9. Once correct data has been entered, the program should calculate and display the percentage of calories that come from fat. Use the following formula: Percentage of calories from fat = (Fat grams × 9) ÷ Calories Some nutritionists classify a food as "low fat" if less than 30 percent of its calories come from fat. If the results of this formula are less than 0.3, the program should display a message indicating the food is low in fat.