Write a program that computes the tax and tip on a restauran t bill for a patron with a$44.50 meal charge. The tax should be 6. 75 percent of the meal cost. The tip should be15 percent of the total after adding the tax. Display the meal cost, tax amount, tipamount, and tota l bill on the screen.
Q: Write a program which prompts the user for their age. If they are 19 or younger inform them that…
A: "Since you have not mention any programming language, so we will write this program in C++…
Q: Write a program that reads the amount of a monthly mortgage payment andthe amount still owed—the…
A: Given: Write a program that reads the amount of a monthly mortgage payment and the amount still…
Q: Write a program to calculate the grade point average (GPA) of a student by getting their grades for…
A: Step 1:- Program Approach:- 1.Include the header file 2.Declare variables 3.Take the input for the…
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 computes the cost of the postage on first-class mail according to the following…
A: Algorithm for calculating the cost of the delivery of the mail:Step1: Declare…
Q: Write a C Program that allows a user to enter any number of student test scores until the user…
A: Program: TestScoreStatistics.h #ifndef TestScoreStatistics_H #define TestScoreStatistics_H…
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: Develop a program that calculates the final score and the average score for a student from his/her…
A: Main() Method : Declare variables for name, class test score, test score, assignment score, exam…
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 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 which calculates the balance of a savings account after the first three months. To…
A: The question has been succesfully solved with Screenshot of code and output with 100%…
Q: Write aC++program that allows a user to enter their rating of the three movies in the DarkKnight…
A: [Note: Explanation of the program code is provided within the comments.] Program code:…
Q: Write a program that reads in an investment amount, the annual interest rate, and the number of…
A: PROGRAM CODE: import java.util.Scanner; public class Main { public static void main(String[] args) {…
Q: Write a program that calculates the cost of travelling using a private jet. The program must request…
A: for input from user: Console.WriteLine("Enter name of the destination and the distance(in km) of the…
Q: Write a program that prompts the capacity, in gallons, of an automobile fuel tank and the miles per…
A: Program: //include the header file #include <iostream> using namespace std; //definition of…
Q: Suppose that the tuition for a university is $10,000 this year and increases 5% every year. Write a…
A: NOTE: SINCE THE LANGUAGE IS NOT MENTIONED, I HAVE USED JAVA FOR THE SOLUTION. Define Main class.…
Q: Write a program that asks the user for their name and their height in inches ("Enter your name: ",…
A:
Q: Write a program that calculates the energy neededto heat water from an initial temperature to a…
A: The coding example to perform the given task will be as below : import java.util.Scanner; class…
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: Now write a program named MarshallsRevenue that prompts a user for the number of interior and…
A: The Program is given below:-
Q: Write a program that determines a student's grade. The program will read three types of scores…
A: The program is written in C++ Language. Check the program screenshot for the correct indentation.…
Q: Write a program that can be used to calculate the federal tax. The tax is calculated as follows: For…
A: Purpose of the program: This program computes the taxable income and the federal tax amount for a…
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: The New Telephone Company has the following rate structure for long a. The regular rate for a call…
A: As not mentioned I have solved the question in C++ language Code:…
Q: Write a program for the Animal Express delivery company. The company charges by the kilogram for…
A: Python used to answer this question
Q: WRITE A PROGRAM TO CALCULATE THE SIMPLE INTEREST ON A LOAN AMONUT OF 50000 DOLLARS AT AN INTEREST…
A: Approach: Import necessary packages from java.util.scanner class. Create a class called…
Q: Write a program that prompts the user to enter the annual income (in int) of an employee. The…
A: Required:
Q: Write a program that calculates an adult's fat-burning heart rate, which is 70% of 220 minus the…
A: Start input age through get_age function if person is not in between 18 to 75 the print message…
Q: Write a program that calculates the potential energy of 3 charges q1 = 1, q2 = 2, q3 = 3 located at…
A: Distance between two points P1(x1,y1,z1) and P2(x2,y2,z2) = x2-x12+y2-y12+z2-z12 Put all the values…
Q: Develop a program that calculates the final score and the average score for a student from his/her…
A: Start Input Name Input Scores Calculate sum Calculate average Stop
Q: Suppose that the tuition for a universityis $10,000 this year and increases 6% every year. In one…
A: Let us consider a Java program that the tuition for a university is $10,000 this year and increases…
Q: Write a program that reports the contents of a compressed-gas cylinder based on the first letter of…
A: Actually, program is an executable software that runs on a computer.
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 calculates and prints the fare for an airline. There are two plans: Plan…
A: Code: #include <cctype> #include <iostream> #include <cstring> #include…
Q: Write a program for the Animal Express delivery company. The company charges by the kilogram for…
A: The python code is shown in the following steps.
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: 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: Write a program to print the lyrics of the song “Old MacDonald." Your program should print the…
A: Step 1 : Start Step 2 : Using a print() statement to print the first verse of the lyrics. Step 2 :…
Q: Write a program that will calculate and print out bills for the city water company. The water rates…
A: using System;class HelloWorld { static void Main() { double gallons,bill=0; char code;…
Q: Write a program that asks the user to enter the monthly costs for the following expensesincurred…
A: Code def main(): print('Enter monthly expenses')loan = float(input('Enter loan payment amount:…
Q: Write a program that prompts the user to enter the distance todrive, the fuel efficiency of the car…
A: Program Plan: importing the libraries of utility class for scanner and other mathematical…
Q: write a psesudocode for a program that calculates the bill of a sandwich stand. The program should…
A: I have provided pseudocode for given program.
Q: Suppose you are a cashier at a grocery store and you want to write a program that takes a purchase…
A: Suppose you are a cashier at a grocery store and you want to write a program that takes a purchase…
Q: Write a program that asks the user his/her name(first letter), semester, mlarks, and age and then…
A: Code : import java.util.*;class input{ public static void main(String[] args){ Scanner input = new…
Q: Write a program that can be used to calculate the federal tax. The tax is calculated as follows: For…
A: Actually, c++ is a powerful general purpose language. The, code has been below:
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: Write a program that calculates the attendance percentage for students, there are total 120 working…
A: Note: In this question the coding language is not specified then we are doing this question in the…
Q: Write a program that requests the floating number of hours a person works in a given week and the…
A: wagePerHour=float(input("Enter hourly wage: ")); #input wage per…
Write a program that computes the tax and tip on a restauran t bill for a patron with a
$44.50 meal charge. The tax should be 6. 75 percent of the meal cost. The tip should be
15 percent of the total after adding the tax. Display the meal cost, tax amount, tip
amount, and tota l bill on the screen.
Trending now
This is a popular solution!
Step by step
Solved in 2 steps
- Write a program named GuessingGame that generates a random number between 1 and 10. (In other words, in the example above, min is 1 and max is 11.) Ask a user to guess the random number, then display the random number and a message indicating whether the users guess was too high, too low, or correct.Write a program that reads the amount of a monthly mortgage payment andthe amount still owed—the outstanding balance—and then displays theamount of the payment that goes to interest and the amount that goes toprincipal (i.e., the amount that goes to reducing the debt). Assume that theannual interest rate is 7.49 percent. Use a named constant for the interest rate.Note that payments are made monthly, so the interest is only one twelfth ofthe annual interest of 7.49 percent.Write a program that calculates the attendance percentage for students, there are total 120 working days in a semester, you are required to ask 100 students the days they attended university, then calculate the percentage it makes. If the percentage is above 75, then display that he is eligible to sit in examination, if not display that he will not get admit card to sit in exams. In the end calculate how many students were eligible to sit in exams.
- Write a program that calculates the electricity bill. The rates of electricity per unit are as follows:If the units consumed are <=300, then the cost is Rs. 12 per unit.If the units consumed are >300 and <=500, then the cost is Rs. 17 per unit. If the units consumed exceed 500 then the cost per unit is Rs. 22A line rent of Rs. 1500 is also added to the total bill and surcharges of 5% extra if the bill exceeds Rs. 15000. Calculate the total bill with all the conditions given above.Write a program for a Bookstore to take an order from a customer, calculate how much to charge a customer based on his/her order, and display a receipt. The store sells only three books, designated by their authors: Cervantes ($41.25 each), Homer ($15.85 each), and Shakespeare ($30.50 each). Your program is to work as follows: Display a welcome message (e.g., “Welcome to the Bookstore!”) Prompt the user for his/her first name Prompt the user to input the number of books by Cervantes s/he wants Prompt the user to input the number of books by Homer s/he wants Prompt the user to input the number of books by Shakespeare s/he wants Compute the total amount due, including a 10% sales tax Display amount due Ask the user how much money s/he will pay Display a receipt listing the name of the user, the quantity of each item ordered, the total cost of the order, and the amount the user will have left after paying Execution of the compiled program should appear roughly as follows (with red…write a program to calculate electricity bill charged to a consumer.Ask him to enter the unit consumed.for all units less than or epual to 200,each unit is to be charged at RS.2.if unit is greater than 200 and less than or equal to 400, first 200 units is to be charged at RS. 2 and other units is charged at Rs. 4. Each unit more than 400 will be charged at RS. 5.
- Write a program that calculates the change due a customer by denomination; that is, how many pennies, nickels, dimes, etc. are needed in change. The input is to be the purchase price and the size of the bill tendered by the customer ($100, $50, $20, $10, $5, $1)Write a program that calculates the energy neededto heat water from an initial temperature to a final temperature. Your programshould prompt the user to enter the amount of water in kilograms and the initialand final temperatures of the water. The formula to compute the energy isQ = M * (finalTemperature – initialTemperature) * 4184where M is the weight of water in kilograms, initial and final temperatures are indegrees Celsius, and energy Q is measured in joules. Here is a sample run: Enter the amount of water in kilograms: 55.5Enter the initial temperature: 3.5Enter the final temperature: 10.5The energy needed is 1625484.0Write a program that can be used to calculate the federal tax. The tax is calculated as follows: For single people, the standard exemption is $4,000; for married people, the standard exemption is $7,000. A person can also put up to 6% of his or her gross income in a pension plan. The tax rates are as follows: If the taxable income is: Between $0 and $15,000, the tax rate is 15%. Between $15,001 and $40,000, the tax is $2,250 plus 25% of the taxable income over $15,000. Over $40,000, the tax is $8,460 plus 35% of the taxable income over $40,000. Prompt the user to enter the following information: Marital status If the marital status is “married,” ask for the number of children under the age of 14 Gross salary (If the marital status is “married” and both spouses have income, enter the combined salary.) Percentage of gross income contributed to a pension fund Your program must consist of at least the following functions: Function getData: This function asks the user to…
- Write a program that can be used to calculate the federal tax. The tax is calculated as follows: For single people, the standard exemption is $4,000; for married people, the standard exemption is $7,000. A person can also put up to 6% of his or her gross income in a pension plan. The tax rates are as follows: If the taxable income is: Between $0 and $15,000, the tax rate is 15%. Between $15,001 and $40,000, the tax is $2,250 plus 25% of the taxable income over $15,000. Over $40,000, the tax is $8,460 plus 35% of the taxable income over $40,000. Prompt the user to enter the following information: Marital status If the marital status is “married,” ask for the number of children under the age of 14 Gross salary (If the marital status is “married” and both spouses have income, enter the combined salary.) Percentage of gross income contributed to a pension fund Your program must consist of at least the following functions: Function getData: This function asks the user to enter the…Write a program that can be used to calculate the federal tax. The tax is calculated as follows: For single people, the standard exemption is $4,000; for married people, the standard exemption is $7,000. A person can also put up to 6% of his or her gross income in a pension plan. The tax rates are as follows: If the taxable income is: Between $0 and $15,000, the tax rate is 15%. Between $15,001 and $40,000, the tax is $2,250 plus 25% of the taxable income over $15,000. Over $40,000, the tax is $8,460 plus 35% of the taxable income over $40,000. Prompt the user to enter the following information: Marital status If the marital status is “married,” ask for the number of children under the age of 14 Gross salary (If the marital status is “married” and both spouses have income, enter the combined salary.) Percentage of gross income contributed to a pension fundWrite a program that prompts the user to enter the distance todrive, the fuel efficiency of the car in miles per gallon, and the price per gallonthen displays the cost of the trip.