Please write a program which estimates a user's typical food expenditure. The program asks the user how many times a week they eat at the student cafeteria. Then it asks for the price of a typical student lunch, and for money spent on groceries during the week. Based on this information the program calculates the user's typical food expenditure both weekly and daily. The program should function as follows: How many times a week do you eat at the student cafeteria? 4 The price of a typical student lunch? 2.5 How much money do you spend on groceries in a week? 28.5 Average food expenditure: Daily: 5.5 euros Weekly: 38.5 euros Sample output
Q: You are tasked with writing an interactive size finder for a T-shirt company. The program should…
A: Code: a=float(input("Chest measurement in inches:"))if(a>26): if(a>=26 and a<28):…
Q: Write a program that asks the user to enter an item’s wholesale cost and its markup percentage. It…
A: The below program is designed to help the user calculate the retail price of an item based on its…
Q: Chapter 5. PC #2. Retail Price Calculator (page 312) Write a program that asks the user to enter an…
A: Algorithm: Retail Price Calculator1. Create a class named RetailPriceCalculator.2. Define a static…
Q: A dramatic theater has three seating sections, and it charges the following prices for tickets in…
A: Total income= ticket sold in section A *20 + ticket sold in section B *15 + ticket sold in section C…
Q: 2. Write an if...else statement that determines whether a variable called points is outside the…
A: Note: As per our guidelines we are supposed to answer only one question. Kindly repost other…
Q: In Python Write a program that calculates and displays a person's body mass index (BMI). # The BMI…
A: Step 1 : STARTStep 2 : import mathStep 3 : implement the function aaBMIStep 4 : input weight and…
Q: function name: cap_at_100 o parameters: a number grade • returns: the grade with a maximum of 100 o…
A: In python a function is defined using syntax def Function-Name( Parameter1,Parameter2,. . . .…
Q: Simulate the dice game of lucky sevens. The rules are: roll two dice if the sum equals 7, win $4 if…
A: NOTE : As the question is not specific about which Programming Language is to be used to write the…
Q: In python The appliances section in Carrefour add a delivery charge (per items) onto the appliances…
A: 1. Start2. Define a function `calculate_delivery_charge`: 1. Accept a single argument: `num_items`.…
Q: Running the program Your program should take 5 arguments: start annual years return inflation where…
A: The objective of the question is to calculate the future and present value of an investment given…
Q: The owner of 'Cupcakes R Us' is in need of a web application to sell their bakery products via…
A: Scenario:The owner of 'Cupcakes R Us' is in need of a web application to sell their bakery products…
Q: Write a program that can calculate the future and present value of an investment given various…
A: The objective of the question is to write a program in C that calculates the future and present…
Q: A shop collects the following information from its customers: 1. Full name (first name, last name,…
A: Create a C program for a Coffee shop business. The system can do the following task and the…
Q: Given an array of n distinct numbers already sorted (in ascending order), we apply Hoare-Quicksort,…
A: Sorting is a crucial operation in computer science. It involves arranging a collection of elements…
Q: Write a program that generates a random number in the range of 1 through 100, and asks the user to…
A: The answer for the above mentioned question is given in the following steps for your reference.
Q: Running the program Your program should take 5 arguments: start annual years return inflation where…
A: The objective of the question is to calculate the future and present value of an investment given…
Q: discount chart should have three columns. The first column lists the items’ original price tag in…
A: Code: import java.util.Scanner;class Main{ public static double getValidPriceTag(Scanner…
Q: PYTHON programming solotion Develop a program that allows the user to enter a start value of 1 to…
A: I have provided PYTHON CODE along with CODE SCREENSHOT and OUTPUT…
Q: An argument is expressed in English below. Sara is not excited. If Sara is not excited, then Sara…
A: Ans.) Sara is not excited == ~q If sara is not excited, than she will go to party== ~q --> r…
Q: Write a program that asks the user to enter the name of the medicine (t for ThroX, f for FeliX), his…
A: Note: Since no programming language is mentioned. I am attempting this in python. if you need it in…
Q: Write a program that asks the user to enter the radius of a circle then prints it on the screen with…
A: I have provided C# CODE along with CODE SCREENSHOT and OUTPUT SCREENSHOT---------------
Q: Write a program that asks the user to enter an item’s wholesale cost and its markup percentage. It…
A: Th below program is designed to help the user calculate the retail price of an item based on its…
Q: Write a program for the HR department to define promotion strategy for every employee. The minimum…
A: Program Approach:- 1. Take the input from the user 2. Use the while loop to validate the salary…
Q: BMI is a measure of body condition and it is related to a person's weight and height. In the metric…
A: This code is used to know the condition of person whether he’s healthy or obese. If the BMI is less…
Q: ISSUE NEEDED TO BE SOLVED: I attached the error codes that keep presenting themselves with the code…
A: Below is the explanation:
Step by step
Solved in 3 steps with 1 images
- Chapter 5. PC #2. Retail Price Calculator (page 312) Write a program that asks the user to enter an item’s wholesale cost and its markup percentage. It should then display the item’s retail price. For example: • If an item’s wholesale cost is 5.00 and its markup percentage is 100 percent, then the item’s retail price is 10.00. • If an item’s wholesale cost is 5.00 and its markup percentage is 50 percent, then the item’s retail price is 7.50. The program should have a method named calculateRetail that receives the wholesale cost and the markup percentage as arguments, and returns the retail price of the item. Class name: RetailPriceCalculator Here is a working code but please fix it so it will in Hypergrade which as all the test casses. I DO NOT NEED THANK YOU IN THE PROGRAM. IT HAS TO PASS ALL THE TEST CASSES PLEASE. THANK YOU!!!!!: import java.util.Scanner;public class RetailPriceCalculator { public static double calculateRetail(double wholesale, double percentage) {…Modify the program you wrote in Programming Challenge 19 so that it reports the number of pizzas you need to buy for a party if each person attending is expected to eat an average of 4 slices. The program should ask the user for the number of people who will be at the party and for the diameter of the pizzas to be ordered. It should then calculate and display the number of pizzas to purchase. Because it is impossible to buy a part of a pizza, the number of required pizzas should be displayed as a whole number.there are three seating categories at a stadium. for a softball game, class A seats are $30, Class B seats are $20 and Class C seats are $15. Write a program that asks how many tickets for each class of seats were sold and then displays the amount of income generated from ticket sales.
- Microwaves / Radio Waves If a scientist knows the wavelength of an electromagnetic wave she can determine what type of radiation it is. Write a program that asks for the wavelength in meters of an electromagnetic wave and then displays what that wave is according to the following chart. (For example, a wave with a wavelength of 1E-10 meters would be an X-ray.) 1x 10-11 1 x 10-8 4 x 10-7 7x 10-7 1x 10-3 1 x 10-2 Gamma Rays. X Rays Ultraviolet Visible Light InfraredWrite a program that generates a random number in the range of 1 through 1000, and asks the user to guess what the number is. If the user guess is higher than the random number, the program should display Too high, try again. If the users guess is lower than the random number, the program should display Too low, try again. If the user guesses the number, the application should congratulate the user and generate a new random number so the game can start over. If the user doesn't want to continue the game the user should type an appropriate stop symbol to terminate the program (such stop conditions were discussed in the class). For each game iteration, count the number of guesses made by the user and display them. The program should contain the following functions: check_guess(): this function checks if the user's guess is lower, higher or equal to the random number. random_gen(): function that generates one random number for one game iteration main(): the function where the program…Write a program that calculate electricity bill. The program prompts the user to enter the amount of KWh units of electricity consumed, the task is to calculate the electricity bill total with the help of the below charges: • 1 to 50 units of total units - Unit price=10 • 50 to 100 units of total units - Unit price=15 • above 100 units - Unit price=20 Sample Runl: Enter the amount of KWh units U: 250 Total Bill: 4250 Explanation: Charge for the first 50 units - 10 50 500 Charge for the 50 to 100 units - 15 50 - 750 Charge for the 100 to 250 units - 20*150 - 3000 Sample Run2: Enter the amount of KWh units U: 95 Total Bill: 1175 Explanation: Charge for the first 100 units - 10*50 - 500 Charge for the 50 to 100 units - 15 45 675
- In C++ Programming, write a program that calculates and prints the monthly paycheck for an employee. The net pay is calculated after taking the following deductions: Federal Income Tax: 15% State Tax: 3.5% Social Security Tax: 5.75% Medicare/Medicaid Tax: 2.75% Pension Plan: 5% Health Insurance: $75.00 Your program should prompt the user to input the gross amount and the employee name. The output will be stored in a file. Format your output to have two decimal places. A sample output follows: Bill Robinson Gross Amount: .......................... $3575.00 Federal Tax: ................................ $ 536.25 State Tax: .....................................$ 125.13 Social Security Tax: ................... $ 205.56 Medicare/Medicaid Tax: ......... $ 98.31 Pension Plan: .............................. $ 178.75 Health Insurance: .......................$ 75.00 Net Pay: ....................................... $2356.00 NOTE: The first column is left-justified, and the right column is…Chapter 5. PC #2. Retail Price Calculator (page 312) Write a program that asks the user to enter an item’s wholesale cost and its markup percentage. It should then display the item’s retail price. For example: • If an item’s wholesale cost is 5.00 and its markup percentage is 100 percent, then the item’s retail price is 10.00. • If an item’s wholesale cost is 5.00 and its markup percentage is 50 percent, then the item’s retail price is 7.50. The program should have a method named calculateRetail that receives the wholesale cost and the markup percentage as arguments, and returns the retail price of the item. Class name: RetailPriceCalculator Here is a code: please modify this code so it works in Hypergrade when I submit it so it passes all the test casses in Hypergrade. It has to pass all the test casses in Hypergrade becausw when I submit the code in Hypercase it does not run and it says 0 out of 5 casses passed. Please fix this code. I do not need thanks for playing or…Java:
- Months Given the current month X, find out what month it will be after Y months have passed. You may not use the following keywords: if, while, for. $ python month.py 13 It's currently January, in 3 months it will be April. $ python month.py 5 20 It's currently May, in 20 months it will be January. $ python month.py 12 12 It's currently December, in 12 months it will be December.python Write a program that prompts the user to enter the number of study hours of a student and the average of the student. Then the program is checking the following:- If the average of the student is greater than 4 and the number of hours is less than 26, then the program should display "You have a chance".- Otherwise, the program should display "You do not have a chance".A company approaches you to create an algorithm for calculating the tax and the tip on a restaurant bill. Assume that the application will only tip on the food and beverage total without the tax added in. Your algorithm will allow the user to input the amount of the tip in custom mode or your algorithm will give the tip in 12%, 15%, 18%, 20% recommended increments. Your job is to create the first three steps of the problem-solving process for this algorithm design. Please make sure that you explore the problem space to determine the criteria and constraints in Part 1. Be creative think of all the inputs and outputs you will be using. For Part 2 think of all the questions that you might have in determining how to actually make such a program. And for Part 3 make sure that you specify (pencil and paper – take a picture of it and include it in your document) a couple of examples of your algorithmic process.