Each morning, a dairY ships local grocery store. The cost of producing one liter of milk is $0.38, and the profi carton of milk is $0.27. Write a program that does the following: a. Prompts the user to enter the total amount of milk produced in the mor b. Outputs the number of milk cartons needed to hold milk. (round your an nearest integer) c. Outputs the cost of producing milk. d. Outputs the profit for producing milk. Additional Requirements: a. The following values must be declared as named constants: The carton capacity: 3.78 The cost of one liter: 0.38 The profit on a carton: 0.27 p. Use meaningful variable and constant names to two decimal places
Q: The manager of Mama Calari’s Pizza Palace wants a program that calculates and displays the number of…
A: The manager wants to calculate the number of pizza slices into which the pizza can be divided.…
Q: Your completed program should: 1. Prompt the user and read in the number of a team playing the…
A: Your completed program should: 1. Prompt the user and read in the number of a team playing the…
Q: Write a program that calculates the change due a customer by denomination; that is, how many…
A: Answer is given below .
Q: You can find out how many seconds have elapsed since Jan 1, 1970 using the time() function.…
A:
Q: Complete the following program that finds which of the time points comes last. The time is expressea…
A: correct statements are: time1="12:00"time2="00:55"hh1,mm1 = time1.split(":")hh2,mm2 =…
Q: Write a program that calculates and prints the amount of wages due to an employee for a week's work.…
A: C++ program to calculate the amount of wages due to an employee for a week’s work. Prompt the user…
Q: Write a program which prompts the user for the number of rooms to be cleaned and the sizes of the…
A: Input the number of rooms Input dimensions of each room Find the area of each room If Area is more…
Q: Write a program that prompts the user to enter an integer for today’s day of the week (Sunday is 0,…
A: NOTE: SINCE THE LANGUAGE OF THE CODE IS NOT MENTIONED, I HAVE USED JAVA FOR THE SOLUTION. Define…
Q: Write a program that tells what coins to give out for any amount of change from 1 cent to 99 cents.…
A: Program: //Include necessary header files #include <iostream> using namespace std;…
Q: The power of the microwave can be calculated as follows: Power=Work/Time Work is measured in joules…
A: code: #include<iostream> using namespace std; //main method int main() { //variable…
Q: Write a program that reads the income of a user and computes his/her income taxes according to the…
A: 1:Read the income 2:If income is negative then print error and exit 3:Determin the tax slab as per…
Q: Write a program using if else or switch cases only that prompts the user to input three (3)…
A: // Importing #include <iostream> using namespace std; // Structure to store data of data,…
Q: Given an a dollar amount Write a program to convert it into Maximum number of bills to give * 100s,…
A: Source Code dollar.cpp #include<bits/stdc++.h> using namespace std; int main(){ int…
Q: A milk carton can hold 3.78 liters of milk. Each morning, a dairy farm ships cartons of milk to a…
A: Here ,the calculation is done as:
Q: A milk carton can hold 3.78 liters of milk. Each morning, a dairy farm ships cartons of milk to a…
A: EXPLANATION: - The variables in C++ need to declared prior to using it. Also, it is advised to…
Q: "Write a program that computes the amount of calories burned when you run. Your program should ask…
A: Algorithm: 1. Take input as duration,speed,weight. 2. Initialize MET to 0. 3. Make MET=8 if speed is…
Q: If you know the balance and the annualpercentage interest rate, you can compute the interest on the…
A: Program code: //import the required packages import java.util.Scanner; //define class…
Q: 1. Write a program that does the following: Ask the user to enter the price of their items. The user…
A: Actually, program is a executable software that runs on a computer.
Q: C++ OOP A milk carton can hold 3.78 liters of milk. Each morning, a dairy farm ships cartons of milk…
A: GIVEN: C++ OOP A milk carton can hold 3.78 liters of milk. Each morning, a dairy farm ships cartons…
Q: Write a program to read a positive integer value less than 100 that represents the number of cents,…
A: #include <iostream> using namespace std; int main(){ int amt,quaters,dimes,nickels,pennies;…
Q: Write a payroll program that computes an employee's gross pay and net pay. An employee who works…
A: CODE IS: #include<stdio.h> { hours=int(input("Enter number of hours per week:"))…
Q: Write a program that calculates the electricity bill. The rates of electricity per unit are as…
A: Introduction of program In this program, we will give input on Electricity Unit Consumed. Charges…
Q: A discount of 20% will be given to any goods that is bought from GMART shop. Write a program that…
A: Here is the solution which is mentioned below : NOTE: Programming lamguage is not given, I have…
Q: Write a program that determines the additional state tax owed by the employee. The State charges a…
A: We need to provide C code for tax owned by Employee.
Q: Write a program that computes the cost of painting and installing carpet in a room. Assume that the…
A: In this question, we will create a class ROOM to store the properties of the room and to calculate…
Q: A mass m is attached to the end of a rope of length r = 3 meters. The rope can only be whirled…
A:
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: Driving is expensive. Write a program with a car's miles/gallon and gas dollars/gallon (both floats)…
A: ****************** Maths used to calculate the total cost ***************** miles/per states that…
Q: A company want to raise the salary of its employee. The raise rate is given as following: • The…
A: THIS IS A MULTIPLE QUESTION BASED PROBLEM. ONLY FIRST QUESTION IS ANSWERED. KINDLY SEND THE…
Q: The following equations estimate the calories burned when exercising (source): Women: Calories = (…
A: Though the question did not specify the programming language, the program has been developed using…
Q: You are to write a simple program that asks the user for input, processes theinput, and then outputs…
A: Answer :
Q: Complete the following program that finds which of the time points comes first. The time is…
A: (1 ) here time2 comes first means hh1 > hh2 because as hh2 is come first it will must be less…
Q: Write a program that finds the negative integer solutions of the following equation ax³ + bx² + cx'…
A: The objective of the given problem is to find the negative integer solution in the range of -200 to…
Q: Write a program that asks the user to enter an amount of money in the format of dollars and…
A: Program converts the amount taken from user in dollars and cent and returns the amount of coins user…
Q: Suppose that you work for a beverage company. The company wants to know the optimal cost for a…
A: Code import java.util.*;public class Main{ public static void main(String[] args) { int…
Q: The following equations estimate the calories burned when exercising (source): Women: Calories = (…
A: Step1 : inputs age (in years), weight (in pounds), heart rate (in beats per minute), and time…
Q: Make a program that asks the user to type in his or her height, weight and age and then computes and…
A: #include<iostream> using namespace std; int main(){ float height,weight,age; float…
Q: program that prompts the user to enter an integer. If the number is a multiple of 5, print HiFive.…
A: As programming language is not mentioned, so we are providing answer in C++ language.
Q: Write a program that prompts the user to enter the currency exchange rate between U.S. dollars and…
A: GIVEN: Write a program that prompts the user to enter the currency exchange rate between U.S.…
Q: The following equations estimate the calories burned when exercising (source): Women: Calories = (…
A: Program: #definition of main function if __name__ == '__main__': #get the inputs data =…
Q: Write a program that asks the user to enter an amount of money in the format of dollars and…
A: #include <iostream>using namespace std; int main(){ int dollars, cents;…
Q: A contractor orders, say, 30 cubic yards of premixed concrete toconstruct a patio that is to be,…
A: Code : #include <iostream> #include <cmath> using namespace std; int main() {…
Q: Write a program that prompts the user to enter the year and first day of the year, then displays the…
A: Given, we get- year from the user, first day of the year from user. based on the above data, we…
Q: Given an airplane’s acceleration a and take-off speed v, you can compute the minimum runway length…
A:
Q: Complete the following program that finds which of the time points comes first. The time is…
A: (1 ) in if condition it will print that time1 comes first means hours of time1 must be less then…
Q: A contractor orders, say, 30 cubic yards of premixed concrete to construct a patio that is to be,…
A: Find the required code given as below and sample output :
Q: The following formula gives the area of a triangle and volume of a triangular prism. Area = s(s –…
A: The cost of the carpet per square meter is = area * 1010.85
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: #A milk carton can hold 4.5 liters of milk. # Each morning, a dairy farm ships cartons of # milk to…
A: Python used to answer this question
Q: Suppose that you work for a beverage company. The company wants to know the optimal cost for a…
A: PROGRAM CODE: #include <iostream> // include header file for input output…
Step by step
Solved in 3 steps with 1 images
- A milk carton can hold 3.78 liters of milk. Each morning, a dairy farm ships cartons of milk to a local grocery store. The cost of producing one liter of milk is $0.38, and the profit of each carton of milk is $0.27. Write a program that does the following: •Prompts the user to enter the total amount of milk produced in the morning. •Outputs the number of milk cartons needed to hold milk (Round your answer to the nearest integer). •Outputs the cost of producing milk. •Output the profit for producing milkA milk carton can hold 3.78 liters of milk. Each morning, a dairy farm ships cartons of milk to a local grocery store. The cost of producing one liter of milk is $0.38, and the profit of each carton of milk is $0.27. Writea program that does the following:a. Prompts the user to enter the total amount of milk produced in the morning.b. Outputs the number of milk cartons needed to hold milk. (Round your answer to the nearest integer.)c. Outputs the cost of producing milk.d. Outputs the profit for producing milk.A milk carton can hold 3.78 liters of milk. Each morning, a dairy farm ships cartons of milk to a local grocery store. The cost of producing one liter of milk is $0.38, and the profit of each carton of milk is $0.27. Write a program that prompts the user to enter: The total amount of milk produced in the morning. The program then outputs: The number of milk cartons needed to hold milk. Round your answer to the nearest integer. The cost of producing milk. The profit for producing milk. I did this and got it wrong someone help.
- A milk carton can hold 3.78 liters of milk. Each morning, a dairy farm ships cartons of milk to a local grocery store. The cost of producing one liter of milk is $0.38, and the profit of each carton of milk is $0.27. Write a program that prompts the user to enter: The total amount of milk produced in the morning. The program then outputs: The number of milk cartons needed to hold milk. Round your answer to the nearest integer. The cost of producing milk. The profit for producing milkAirline companies apply baggage restrictions for their passengers. An airline company has decided to apply a 10kg limitation for passengers' hand luggage and 20kg for their normal baggage. When passengers arrive, they enter their hand and normal luggage weight from the keyboard. If passengers exceed their normal baggage allowance of 10 dollars per gram, they pay 12 dollars per kg. Accordingly, write the program that calculates the baggage price of the airline they will go to according to the baggage values entered by the arriving passenger and keeps this from closing the program for each passenger. Note: If hand and normal baggage allowances are stretched below the maximum value, the payment amount will be considered not negative. An example printout is given on the right. Geri bildirim gönderPaula and Danny want to plant evergreen trees along the back side of their yard. They do not want to have an excessive number of trees. Write a program that prompts the user to input the following:a. The length of the yard.b. The radius of a fully grown tree.c. The required space between fully grown trees.The program outputs the number of trees that can be planted in the yard and the total space that will be occupied by the fully grown trees.
- A milk carton can hold 3.78 liters of milk. Each morning, a dairy farm ships cartons of milk to a local grocery store. The cost of producing one liter of milk is Php19, and the profit of each carton of milk is Php13.5. Write a program that does the following: A. Prompts the user to enter the total amount of milk (in liters) produced in the morning. B. Outputs the number of milk cartons needed to hold milk (Round your answer to the nearest integer). C. Outputs the cost of producing milk. D. Outputs the profit for producing milk. Save the program as Milk.java.A bag of biscuit can hold 22 biscuit, and a container can hold 70 bags of biscuit. Write a program that prompts the user to enter the total number of biscuits, the number of biscuit in a bag, and the number of biscuit bags in a container. The program then outputs the number of bags and the number of containers to ship the biscuit. Note that each bag must contain the specified number of biscuit, and each container must contain the specified number of bags. If the last bag of biscuit contains less than the number of specified biscuit, you can discard it and output the number of leftover biscuit. Similarly, if the last container contains less than the number of specified bags, you can discard it and output the number of leftover bags. Use C++ program.A parking garage charges a $2.00 minimum fee to park for up to three hours and an additional $1 per hour for each hour or part thereof over four hours. The maximum charge for any given 24-hour period is $10.00. Assume that no car parks for longer than 24 hours at a time. Write a program that will calculate and print the parking charges for each of three customers who parked their cars in this garage yesterday. You should enter the hours parked for each customer. Your program should print the results in a neat tabular format, and should calculate and print the total of yesterday's receipts. The program should use the function calculate Charges to determine the charge for each customer.
- A parking garage charges a $2.00 minimum fee to park for up to three hours. The garage charges an additional $0.50 per hour for each hour or part thereof in excess of three hours. The maximum charge for any given 24-hour period is $10.00. Assume that no car parks for longer than 24 hours at a time. Write a program that calculates and prints the parking charges for each of three customers who parked their cars in this garage yesterday. You should enter the hours parked for each customer. Your program should print the results in a neat tabular format and should calculate and print the total of yesterday’s receipts. The program should use the function calculateCharges to determine the charge for each customer. Your outputs should appear in the following format Sample output Enter the hours parked for 3 cars: 1.5 4.0 24.0 Car Hours Charge 1 1.5 2.00 2 4.0 2.50 3 24.0 10.00 TOTAL 29.5 14.50A parking garage charges a $20.00 minimum fee to park for up to three hours. The garage charges an additional $5.00 per hour for each hour or part thereof in excess of three hours. The maximum charge for any given 24- hour period is $50.00. Assume that no car parks for longer than 24 hours at a time. Write a program that calculates and printsthe parking charges for each of three customers who parked their cars in this garage yesterday. You should enter the hours parked for each customer. Your program should print the results in a neat tabular format and should calculate and print the total of yesterday’s receipts. The program should use the function calculateCharges to determine the charge for each customer. Your outputs should appear in the following format: Car Hours Charge1 1.5 20.002 4.0…When Jacob Steinberg began his trip from California to Vermont, he filled his car’s tank with gas and reset its trip meter to 0. After traveling 324 miles, Jacob stopped at a gas station to refuel; the gas tank required 17 gallons. Jacob wants a program that calculates and displays his car’s gas mileage at any time during the trip. The gas mileage is the number of miles his car can be driven per gallon of gas. Desk-check your solution’s algorithm using 324 as the number of miles driven and 17 as the number of gallons used; then desk-check it using 280 and 15.