Design a program that prompts the user for a refrigerator model name and the interior height, width, and depth in inches. Calculate the refrigerator capacity in cubic feet by first multiplying the height, width, and depth to get cubic inches, and then dividing by 1728 (the number of cubic inches in a cubic foot). The program accepts model names continuously until “XXX” is entered. Use named constants where appropriate.
Q: 2) Write a program to calculate the tip for a service. Prompt the user to enter the bill amount and…
A: Note: As no specific programming language is mentioned, the program has been provided in C. The same…
Q: Design a program that computes pay for employees. Allow a user to continuously input employees'…
A:
Q: Write a program that asks the user for the number of adult and the number of child movie tickets…
A: Answer :- #include <iostream> #include <iomanip> using namespace std; int main() {…
Q: Assuming there are no deposits other than the original investment, the balance in a saving account…
A: Below is the required code and sample output:
Q: Write a program that lets the user guess whether the flip of a coin results in heads or tails. The…
A: The program has the following algorithm: Declare the necessary variables within the “main()”…
Q: Write a program which should display 4 items (keyboard, mouse, monitor and speaker) with their…
A: Note: Since no programming language is mentioned. I am attempting this in python. if you need it…
Q: Points on a two-dimensional plane are specified uniquely using two numbers, the point’s distance…
A: The program declares the 2 points of double type and reads the values from the user. Call the…
Q: Write a program that asks the user to enter a number of seconds. Solving the Time Calculator Problem…
A: sec=int(input("Enter number of seconds: ")) if sec<3600 and sec>=60 : print(f"Number of…
Q: Write a program that asks the user for an angle, entered in radians. The program should then display…
A: Program description: n is the user input integer variable used to take the value of the angle in…
Q: * Write a program that prompts the user for the price * of petrol and the type of petrol. The…
A: NOTE: Since programming language is not mentioned. Therefore answering questions in Python language.…
Q: Write a program that input radius of sphere from the user. Calculate it’s volume and surface area…
A: Since the programming language is not mentioned, so we'll do it in C++. The programming methodology…
Q: Problem: Write a program that converts degrees from Celsius to Fahrenheit, using the…
A: Since you have asked two separate questions and it was not clear which specific question you wanted…
Q: write a program to display fruit sales receipts. Apple: Pink Lady - $4.99/kilo, Fuji - $5.99/kilo.…
A: I give the code in Python along with output and code screenshot
Q: 1. Write a program that prompts the user to enter an integer between 0 and 6 and prints thie day…
A: I give both codes in C along with output and code screenshots.
Q: Write a simple payroll program that will display employee's information. The program should perform…
A: Given The answer is given below
Q: Assuming there are no deposits other than the original investment, the balance in a saving account…
A: I give the code in C++ along with code and output screenshot
Q: Write a program to calculate the estimated engine horsepower of a car based on the weight of the car…
A: As no programming language is mentioned, it is solved using basic C++
Q: a) Write a program that begins by reading a radius, r from the user. The program will continue by…
A: TO FIND AREA AND VOLUME OF THE CIRCLE
Q: Write a program that prompts the user to input three numbers. The program should then output the…
A: As no programming language is mentioned, it is solved using basic C++
Q: Write a program that asks the user to enter the material they wish to purchase (wood, brick, or…
A: def wood(n): costSingle = 0 shippingCharge = 0 if(n>=1 and n<100): costSingle…
Q: 1. Create a program that asks for a distance in kilometers and converts it into its metric…
A: /*C program to ask distance in kilometers and converts it into its meter equivalent*/ #include…
Q: A contractor orders, say, 30 cubic yards of premixed concrete to construct a patio that is to be,…
A: Program code: #include <iostream> #include <cmath> using namespace std; //main method…
Q: For each used car a salesperson sells, the commission is paid as follows: $20 plus 30% of the…
A: Program: //include the header file #include<iostream> using namespace std; //definition of…
Q: Write a Program to enter the numbers till the user wants and at the end it should display the count…
A: Code :
Q: Write a program that calculate electricity bill. The program prompts the user to enter the amount of…
A: As there is no programming language mentioned program is attempted in python langugae. user has to…
Q: Write a program that prompts the user to enter the name of a football team and its foundation year.…
A: The programming languages include Java, c, c++. The program reads the input from the user that is…
Q: PROBLEM: Write a program that prompts the user to input three (3) integers: MM, DD, and YYYY. For…
A: Python program to fid the number of days elapsed
Q: Write a program that prompts the user to input three numbers. The program should then output the…
A: #include<iostream> #include<algorithm> using namespace std; int main(){ cout…
Q: Write a program that asks the user to enter an amount of money in the format of dollars and…
A: Program: quarters = 0 dimes = 0 nickels = 0 pennys = 0 print("Please enter aomunt in the…
Q: Write a program that computes and interprets the Body Mass Index (BMI). The program prompts the user…
A: Start Input weight in pounds Input height in inches Convert weight to kilograms Convert height to…
Q: Write a program to ask the user to choose from 2 temperature unit, Fahrenheit and Celsius. The…
A: Use an if-else if blocks to compare the temperatures and print the respective message
Q: Write a program that specifies whether a given number (x) falls in one of the following categories…
A: Description: Note: Since you have not provided the language to write the code so I am using java…
Q: Write a program that asks the user to enter the number of students, then enter the grades of these…
A: I have provided C++ CODE along with CODE SCREENSHOT and 2 OUTPUT SCREENSHOTS------------
Q: Write a program that asks for the number of calories and fat grams in a food. The program should…
A: Hello Student. Warm welcome from my side. Hope you are doing great. Here's your answer. Since you…
Q: PROBLEM: Write a program that prompts the user to input three (3) integers: MM, DD, and YYYY. For…
A: Answer: Algorithms first import inbuilt module form date take input form user like MM,DD,YYYY as in…
Q: Write a program that asks for the number of calories and fat grams in a food. The program should…
A: #include<iostream>using namespace std; int main() { //declaring variables to store user…
Q: write a program that calculates and prints the take-home pay for commissioned sales employee. Allow…
A: Introduction of Program In this C++ program, the user enters the Employee name and his/her sales…
Q: Write a program that repeatedly prompts a student to enter grade points (on a scale of 0-4) and…
A: Please find the answer below :
Q: During each summer, John and Jessica grow vegetables in their backyard and buy seeds and fertilizer…
A: C++ used to answer this question
Q: Write a program that computes the tax and tip on a restaurant bill. The program should ask the user…
A: Python program to find the total bill amount , the bill amount is added along with 5% income tax and…
Q: a program to ask the user to enter a number, if the user enters a positive integer, then compute the…
A: As you have not mentioned The specific language, so I m providing the solution in C++ A C++ program…
Q: Assume that a runner runs 15 kilometers in 50 minutes and 30 seconds. Write a program that displays…
A: #include<iostream> using namespace std; int main(){ int distanceTravelledInKMS=15;…
Q: In an eye-glass shop, a customer can buy either a pair of single prescription glasses (or a pair of…
A: Code: import java.util.*;public class MyClass { public static void main(String args[]) {…
Q: Q3: Write the algorithm for a program that calculates the cost of the phone bill according to the…
A: The algorithm is shown below. Algorithm PhoneBill(minutes) //Algorithm to find teh total…
Q: Write a program that asks for the number of calories and fat grams in a food. The program should…
A: Write a program that asks for the number of calories and fat grams in a food. The program should…
Q: A contractor orders, say, 30 cubic yards of premixed concrete to construct a patio that is to be…
A: Please find the answer below :
Q: Given an airplane's acceleration and take-off speed v, you can compute the minimum runway length…
A: The given problem can be solved using simple arithmetic operations in any programming language.…
Q: KEMBOJA Hospital provides top-notched medical care with comfortable rooms. The following are the…
A: Note : as per company guidelines we are supposed to answer only first 3-sub parts . please repost…
Design a program that prompts the user for a refrigerator model name and the interior height, width, and depth in inches. Calculate the refrigerator capacity in cubic feet by first multiplying the height, width, and depth to get cubic inches, and then dividing by 1728 (the number of cubic inches in a cubic foot). The program accepts model names continuously until “XXX” is entered. Use named constants where appropriate.
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 2 images
- Write a program to ask the user to choose from 2 temperature unit, Fahrenheit and Celsius. The user will then enter the temperature. The program will display the following based on the input •“Boiling Point” if the temperature is above 100 degrees Celsius or 212 degrees Fahrenheit, •“Freezing Point” if the temperature is below 0 degrees Celsius or 32 degrees Fahrenheit. •“Normal Temperature” if it is in between.For each used car a salesperson sells, the commission is paid as follows: $20 plus 30% of the selling price in excess of the cost of the car. Typically, the minimum selling price of the car is the cost of the car plus $200 and the maximum selling price is the cost of the car and $2,000. Write a program that prompts the user to enter the salesperson’s fixed commission, the percentage of the commission, the purchasing cost of the car, the minimum and maximum amount to be added to the purchasing cost to determine the minimum and maximum selling price, and outputs minimum and maximum selling price of the car and the salesperson’s commission range.C++ Write a program that prompts the user to enter the number of students and each student's name and score. and finally displays the name and score of the student with the highest score and the average score.
- Design a program that computes pay for employees. Allow a user to continuously input employees’ names until an appropriate sentinel value is entered. Also input each employee’s hourly wage and hours worked. Compute each employee’s gross pay (hours times rate), withholding tax percentage (based on Table 6-4), withholding tax amount, and net pay (gross pay minus withholding tax). Display all the results for each employee. After the last employee has been entered, display the sum of all the hours worked, the total gross payroll, the total withholding for all employees, and the total net payroll. You will need to submit a flowchart and pseudocode for this assignment.Write a program that prompts the user to input three numbers. The program should then output the numbers in ascending order.Create an algorithm for a program that determines the state (solid, liquid, gas) of a sample of water. The program should read in a temperature value (integer) of the sample in Kelvin degrees and provide the user the choice to convert the value into ˚C (Celsius) or ˚F (Fahrenheit). The program should then display the input Kelvin temperature, the state of the water sample (gas, liquid, solid), and the converted temperature. The program should read in values continuously until the user wants to quit. Your algorithm should take a top down approach whereby you formulate a high-level algorithm, and then take each step in the high-level algorithm and break it down into a low-level algorithm (where the necessary sub-step is formulated). Code reuse Welcome to the temperature conversion program. Please enter a the sample temperature in Degrees Kelvin:> 345Do you wish to convert the temperature to (c) for Celsius, or (f) for Fahrenheit:>cThe water is in a liquid state at 72.0 degrees…
- Design a program that asks the user for a series of names (in no particular order). After the final person’s name has been entered, the program should display the name that is first alphabetically and the name that is last alphabetically. For example, if the user enters the names Kristin, Joel, Adam, Beth, Zeb, and Chris, the program would display Adam and Zeb. This is to be done in Python.A piece of wire is to be bent in the form of a circle to put around a picture frame. Write a program that prompts the user to input: The length of the wire The program then outputs: the radius and area of the circle. You may assume that π = 3.1416. Declare PI as a named constant with this valueWrite a program that will ask the user to enter salary amount. And then compute for the TAX amount. If salary is 10,000 and below, the tax amount is 21% of the salary amount. if the salary is between 10,001 and 30,000, the tax amount is 28% of the salary amount. If the salary is more than 30,000, the tax is 31% of the salary amount. Then compute the net salary which is the Salary amount less tax amount. Display tax amount and net Salary.
- Two points in a plane are specified using the coordinates (x1,y1) and(x2,y2). Write a program that calculates the slope of a line through two(non-vertical) points entered by the user.y2 - y1 slope=x 2 1Design a payroll program that prompts user enter an employee's hourly pay rate and the number of hours worked. Validate user's input so that only pay rates in the range of $7.5 through $18.25 and hours in the range of 0.5 through 40 are acceptable. If user enters validate data in less than three tries, the program calculate and display gross pay, otherwise tell user the program will be terminated because of too many invalid input. Please provide step by step solution for this problem!A contractor orders, say, 30 cubic yards of premixed concrete to construct a patio that is to be, say, four inches thick. The length of the patio is to be, say, twice the width. Write a program that prompts the user to specify: The amount of premixed concrete (in cubic yards) ordered The thickness of the patio (in inches) The ratio of length and width Ex. If the ratio is 3 to 2, have the program accept a 3 then a 2. Then compute the ratio using these numbers The program then outputs: The length and width of the patio (in feet). (1 cubic yard = 27 cubic feet.) To calculate the width, you will need to: Find the total cubic feet of the concrete Divide the total cubic feet of concrete by the result of the length to width ratio multiplied by the thickness of the patio, over 12 (inches in a foot) Square root the answer To find the square root of a decimal number, include the header file cmath using the statement #include <cmath>, in your program. The function sqrt, included in…