Write a C++ program that calculates and prints the bill for a car rental company. The company charges a daily fee for each day a car is rented depending on the type of the car. Moreover, an additional fee is charged if the car travels more than 400 KM. This fee also varies depending on the type of the car. Туре of Daily fee Fee for additional KM car Mercedes 150 15 Toyota Cadillac 60 7 120 10 Jaguar 130 14 Your program should ask the user to enter The type of the car (M or m for Mercedes, T ort for Toyota...) How many days was the car rented? How many KM did the car travel?
Q: Write a C program to calculate Gross Salary of an employee. Here’s simple program to calculate Gross…
A: HI THEREI AM ADDING C CODE AS PER ABOVE REQUIREMENT BELOWPLEASE GO THROUGH IT THANK YOU
Q: Write a program in C++ so that when you write any number starting from 1 to 12, the Gregorian month…
A: Step-1: Start Step-2: Declare a variable n Step-3: Input a number and store in n Step-4: Switch…
Q: Write a C program using if-else. The program reads one integer number k. Then it reads one real…
A: Inside if, check the value of k whether it is either 4 or 5 So, n is represented as n = 3f-67π
Q: 7. Write a C++ program that calculates and prints the bill for a car rental company. The company…
A: C++ Program for above : #include <bits/stdc++.h> using namespace std; //function to…
Q: uppose you designed a TAXI FARE SYSTEM and you want to valuate the fare in according to the…
A: I have written the following code below:
Q: Write a C# program that plays a guessing game with the user. Your program should select a random…
A: rndNumber.Next(1,50) will generate random number in range of 1 to 50. compare the random number…
Q: Write a C++ program for an automobile workshop to check a vehicle’s engine condition. The program…
A: C++ is a powerful general-purpose programming language and computer programming language which can…
Q: Write a C program that calculates the price of a pizza and prints the receipt as follows: 1- Your…
A: Program approach: Create the main function. Declared all variables. Display program heading. Input…
Q: Write a C/C++ program that asks the user for three integer marks. These are the student marks out of…
A: Program Plan: 1. Include all the necessary header files. 2. Declare all the variables required. 3.…
Q: Write a C++ program that allows a user to enter their rating of the three movies in the Dark Knight…
A: The answer is in below steps:
Q: Write a C++ program that calculates the due amount for a cellular telephone bill. The cell company…
A: Here is the c++ code: See below step for code:
Q: Write the program in C++ -Write a program that calculates and prints a cell phone bill. The company…
A: Answer. A C++ program that calculates and prints a cell phone bill, is as under:
Q: Write a C++ program that displays a table of speeds in kilometers per hour with their values…
A: Given, The formula for converting kilometers per hour to miles per hour:…
Q: Write a C++ program that computes the rental fees of N cars; N is the first input by the user. For…
A: The problem is based on the basics of C++ programming language.
Q: Write a program in C that asks the user to enter a number of seconds and works as follows: • There…
A: Here we are given user input in seconds. We need to convert it into days, hours , minutes, seconds.…
Q: In this part, you are asked to write a C-program that makes change for amounts less than one dollar.…
A: I have created an infinite while loop. Next, inside the loop, I have taken input from the user and…
Q: Write a C/C++ program that asks the user for three integer marks. These are the student marks out of…
A: The required C++ code is given below: #include<iostream>#include<iomanip>using namespace…
Q: Note: Use else-if statements
A: Programming approach: In the main function Input name. Input reg_num. For loop to input 5 elements…
Q: Q3 Write a C++ program to find the sea wave speed (c) for the rang of water depths {0,5,10,15,20…
A: Algorithm: Start Set PI=3.14 Set g=9.81 Read L Read d Compute: k = L/(2*PI) IF (d/L)<0.05: c…
Q: Write a program in any programming language to caleulate and print the Electricity bill of a given…
A: - We have to code the electricity bill problem using the given charges. - We are using C++ here.
Q: In C++ Write a program with a car's miles/gallon and gas dollars/gallon (both doubles) as input, and…
A: Here I have taken input from the user. Then I have calculated the cost in dollars for 20, 75, and…
Q: Write a c++ program that calculates the cost of 3 bags of fruit. The 4 possible fruits are pears…
A: i hope it will work for you #include<bits/stdc++.h>#define INF 1000000using namespace std;…
Q: Write a C- program that will calculate and print out bills for the city water company. The water…
A: Write a C- program that will calculate and print out bills for the city water company. The water…
Q: write a program in C++ that A user needs to determine the size of squares (let say delta) in a grid,…
A: Answer: our instruction is answer the first three subparts from the first part. we have done code
Q: Write a C++ program that helps the user count his change. The program should ask how many hundreds…
A: C++ Program: #include <iostream>using namespace std;int main() { int h,f,t,fives;…
Q: Write a C++ Program that calculate and print the insurance for 15 cars. For each car, the program…
A: #include <iostream>using namespace std; int main(){ int year, price; char insuranceType;…
Q: Write a C/C++ program that asks the user for three integer marks. These are the student marks out of…
A: To accept the student marks, we use mark[i]. In first for loop it will take 3 student marks. In…
Q: Write a C++ program to automate the Grocery shop bill for 6 items. The program asks the grocery shop…
A: In the c++ program, add the necessary libraries in the program. To help the program to run without…
Q: 1. Write a program in C which is a Menu-Driven Program to compute the area of the various…
A: Note that there were no restriction stated hence made this way. I have created both the program. I…
Q: Write a C# program that plays a guessing game with the user. Your program should select a random…
A: Given Hints:- Some Random Number Generation HintsRandom rndNumber = new…
Q: Write a C++ program that accepts an amount of money on deposit and a number of years it has been on…
A: #include<iostream> using namespace std; int main(){ float amount,interst,years;…
Q: Write a C# program that converts a temperature given in Fahrenheit to Celsius. Allow the user to…
A: using System;using System.Collections.Generic;using System.Linq;using System.Text; namespace…
Q: Create a program in c++ that gets quarterly sales from a user, and calculates the total of all four…
A: Introduction: Here we are required to create a program in C++ that gets quarterly sales from a user,…
Q: Write a complete C++ program that: A wholesale furniture store that sells tables in bulk needs a…
A: In this program, all parts are calculated including the third one. Here I have taken input from the…
Q: 7. Write a C++ program that calculates and prints the bill for a car rental company. The company…
A: Code: #include <iostream> using namespace std; int main() { // Declaring arrays with…
Q: In C++ using endl; Write a program that can be used to calculate the federal tax. The tax is…
A: Program: #include <iostream> using namespace std; //function getData void getData(char…
Q: Write a C program using if-else. The program reads one integer number a. Then it reads one integer…
A: Here is c code of above problem. See below step.
Q: Write a C++ program that will repeatedly ask the user to enter an integer quantity of liquid given…
A: Program Explanation: The header file “<iostream>” is declared that contains all standard…
Q: write a program in C++ using if-else or switch for calculating electricity bill, the range of the…
A: GIVEN: write a program in C++ using if-else or switch for calculating electricity bill, the range…
Q: Write C program which should print your name and registration number on the screen then do the…
A: Given: Product No. Product Name Retail Price in Rs. Quantity Available101…
Q: Write a C program that will calculate the total payment for a brand new car being purchased on…
A: C program: C is a programming language developed by Dennis Ritchie at AT & T Bell Laboratory in…
Q: write a C++program that finds the total amount to be spent on a vacation. In Main ask the user for…
A: Since the bill is given as 0.08 cents per miles driven , I have converted 0.08 cents to dollar i.e.…
Q: WRITE A PROGRAM IN C++ TO CALCULATE THE SIMPLE INTEREST ON A LOAN AMONUT OF 50000 GHANA CEDIS AT AN…
A: Program: //Header file #include<iostream> //Using namespace using namespace std;…
Q: Q1) Write a C++ program which determines the weather according to the temperature as follow:…
A: #include <iostream>using namespace std;int main(){ int t; cout<<"Enter the…
Q: In this lab, you complete a prewritten C++ program for a carpenter who creates personalized house…
A: Given: In this lab, you complete a prewritten C++ program for a carpenter who creates personalized…
Q: Q4: Write a FORTRAN90 program that reads a student ID and his GPA out of 4.0. The program should…
A: Algorithm: Start Read student ID and GPA If gpa>=3.5 then print "EXCELLENT" Else if gpa<3.5…
Q: Write a C++ program that calculates the due amount for a cellular telephone bill. The cell company…
A: Below I have provided C++ Programming. Also, I have attached the screenshot of the code and output…
Q: Write a program in c++ to read the radian of a circle, check if it is bigger than zero, and if it is…
A: ask the user to give the radius of the circle as input pass the radius as to the function called…
Q: Write a C++ program that play the Card Guesssing Game. Your program must give the user the following…
A: The, code has given below:
in c ++
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 3 images
- 7. Write a C++ program that calculates and prints the bill for a car rental company. The company charges a daily fee for each day a car is rented depending on the type of the car. Moreover, an additional fee is charged if the car travels more than 400 KM. This fee also varies depending on the type of the car. Туре of Daily fee Fee for additional KM car Mercedes 150 15 Toyota Cadillac 60 7 120 10 Jaguar 130 14 Your program should ask the user to enter The type of the car (M or m for Mercedes, T or t for Toyota...) How many days was the car rented? How many KM did the car travel?The programming language is C++, write a program base on the given statement. 1. An employee’s weekly working hours is 40. If an employee exceeds40 hours, it is considered overtime. Create a program that will acceptthe number of hours worked by employee and his / her hourly rateand print the gross pay and overtime pay rendered, if there’s no OTpay to print, print only the gross pay. To compute for the gross pay of an employee, multiply the number of hours worked by his/herhourly rate plus his/her OT pay. OT hours are time rendered byemployee over 40 hours. The overtime hours rendered should becomputed by using 1.50% of his hourly rate.Create a program in c++ that gets quarterly sales from a user, and calculates the total of all four quarters as well as the average, lowest, and highest quarters. Console Example that should be followed when executed The Quarterly Sales program Enter sales for Q1: 12312.57 Enter sales for Q2: 15293.21 Enter sales for Q3: 14920.95 Enter sales for Q4: 23432.21 Total: 65958.94 Average Quarter: 16489.74 Lowest Quarter: 12312.57 Highest Quarter: 23432.21 Specifications: Create the pseudocode needed to implement the solution above. Convert your pseudocode to C++ code including the following specifications: ROUND the average quarter to a maximum of 2 decimal digits. Use a vector to store the sales for each quarter. Use STL algorithms to process the data for the quarters. Please make sure the average is ROUNDED 2 places to get the output 16489.74 instead of 16489.73
- Written in C# Language Please! A fixed percentage of water is taken from a well each day. Request values for W and P where: ▪ W is the amount (in litres) of water in the well at the start of the first day ▪ P is the percentage of the water in the well taken out each day Write a program to print the number of the day, the amount taken for that day and the amount remaining at the end of the day. The output should be terminated when 30 days have been printed or the amount of water remaining is less than 100 litres, whichever comes first. For example, if W = 1000 and P = 10, the output should start as follows: Day Amount Taken Amount Remaining 1 100 900 2 90 810 3 81 729 Note: The amount taken and amount remaining should be displayed to 2 decimal places.Write a C++ program to calculate the tuition fee for a student at a University. The program should prompt for and accept the id number and the total number of credits for which he/she has enrolled. The bill outputted should contain the id number and tuition fee. Calculate the tuition fee as follows: Total credits of 15 or more indicates that the student is full-time. Full-time students pay a flat rate of $35,000 for tuition. Total credits of less than 15 indicate that the student is part-time. Part-time students pay $850 per credit for tuition. After printing the tuition fee, ask the user if s/he wants to calculate the tuition fee for another student – “Y” for yes and “N” for no. (This question is asked each time the tuition fee is printed). If s/he does, allow him/her to enter another student’s id number and total number of credits and find the tuition fee again. If the answer is no, the program must be terminated with an appropriate message. (Please ensure that you include a…Write a c++ program that calculates and prints the monthly paycheck for an employee. The net pay is calculated after taking the following deductions: Federal Income Tax: 18.5% State Tax: 4.5% Social Security Tax: 6.30% Medicare/Medicaid Tax: 2.3% Pension Plan: 6% Health Insurance: TL 175.00 Your program should prompt the user to input the gross amount and the employee name. Format your output to have two decimal places. A sample output follows: Emre Taha Gross Amount: .. TL 3500.00 Federal Tax: Stațe Tax: Social Security Tax: Medicare Tax: Pension Plan: Health Insurance: Total Deductions: TL 647.50 TL 157.50 TL 220.50 80.50 TL TL 210.00 TL 175.00 TL 1491.00 Net Pay: TL 2009.00 Note that the first column is left-justified, and the second column is right-justified.
- The programming language is C++, write a program base on the given statement. Write a program that reads in the sales expenses of the Short DistanceTelephone Company for the past year and then calculate the profitand the next tax based on the ff. table PROFIT TAX RATE0 – 10000 010001 – 30000 100 + 3% OF THE PROFIT30001 – 50000 200 + 5% OF THE PROFITOVER 50000 300 + 7% OF THE PROFITWrite a C++ program: you are now working for an accounting firm. Your employer is interested in determining the pay an individual is to recieve. The number of hours and pay reate should be read in. If the hours are over 40, the pay rate is "time and a half" for those hours over 40. Report the totol earned amount, the amount earned for regular hours and the amount earned for overtime hours Hours = 48 rate= 10 Hours = 42 rate= 12 Hours = 36 rate= 20 Hours = 52 rate= 8Write a c++ program for a bank in your town that updates its customers’ accounts at the end of each month. The bank offers two types of accounts:savings and cheque. Every customer must maintain a minimum balance.Minimum balances for the accounts are: Savings : R 1000.00 Cheque: R 1500.00If a customer’s balance falls below the minimum balance, there is a service charge of R50.00 for savings accounts andR100.00 for cheque accounts. If the balance at the end of the month is at least the minimum balance, the clientreceives interest as follows: Savings accounts receive 4% interest on the balance. Cheque accounts with balances of up to R 5000.00 more than the minimum balance receive 3% interest;otherwise, accounts with balances more than R 5000.00 more than the minimum balance receive 5% interest.Write a c++ program that requests the user to enter a customer’s account number (int type), account type (char type - S for savings, C for checking) and current balance. The updated balance must…
- Write a program in C that asks the user to enter a number of seconds and works as follows:• 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 in that many seconds. If there are leftover seconds they should be displayed also on a separate line.• 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 and 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 and minutes and leftover seconds in that many seconds. Pay close attention to how the output is formatted in the example. If there are 0 days, hours, minutes or seconds that line should not be printed.In C++, write a program that calculates and prints a monthly paycheck for an employee. The net pay is calculated after taking the following deductions from the employee's gross salary: Federal Income Tax: 17.5% State Tax: 9.1% Social Security Tax: 6.2% Medicare Tax: 1.45% Retirement Plan: 9.29% Health Insurance: $51.48 Life Insurance: $3.71 Your program will prompt the user to input the employee ID, the employee name, and the employee's monthly gross salary. The program will calculate the deductions listed above, along with the percentage of take home pay (defined as the net pay divided by the gross salary). After calculating each deduction and percentage, the output will be printed to the screen (see example output below). Requirements All decimal numbers must be formatted to 2 decimal places. Ask for the employee's ID first, then full name (can include spaces), then the salary. The prompt to enter the salary must include the employee name. The employee ID MUST be…C++ Write a program to help a local restaurant automate its breakfast billing system. The program should do the following: Show the customer the different breakfast items offered by the restaurant. Allow the customer to select more than one item from the menu. Calculate and print the bill. Assume that the restaurant offers the following breakfast items (the price of each item is shown to the right of the item): food Price Plain Egg $1.45 Bacon and Egg $2.45 Muffin $0.99 French Toast $1.99 Fruit Basket $2.49 Cereal $0.69 Coffee $0.50 Tea $0.75 Use an array menuList of type menuItemType, as defined in Programming Exercise 3. Your program must contain at least the following functions: Function getData: This function loads the data into the array menuList. Function showMenu: This function shows the different items offered by the restaurant and tells the user how to select the items. Function printCheck: This function calculates and prints the check. (Note that…