A wholesale furniture store that sells tables in bulk needs a program to help their cashiers. Write a C++ program that asks users to enter the table price and the number of tables sold, then calculate the 5% tax per table and the delivery fee of 5.00 BD per table. The program must calculate and print: 1- Tax per table. 2- Total delivery cost. 3- The total price which is the sum of the total price of all tables, total tax and delivery fees for all tables. All numbers should be displayed with 3 decimal places. ========= Sample output:
Q: When you deposit money in a savings account at a bank, the bank pays you interest on that money. If…
A: Here our task is to implement a c# program that calculate the total amount after n years deposited…
Q: write a c++ code for this question.The ancient Greeks classify numbers geometrically. For example, a…
A: Program approach:- Using the necessary header file. Using the standard namespace I/O. Define the…
Q: Write a program in C++ that computes the equivalent resistance of a purely series and purely…
A: Code: #include <iostream>using namespace std;//Checking whether entered value is number or…
Q: Q1/A chemical sensor works to read the value of pollution in four industrial sites every four hours…
A: Required: Code to get the pollution reading every day in every 4 hours. and find the pollution rate…
Q: Write a complete C program to prompt the user to enter the total chargeable income (RM), and then…
A: given: required: to create a c program to calculate income tax based on the given table
Q: You’re given coins of different denominations and a total amount of money. From that, you need to…
A: In this problem, we were given the coins of different denominations and a total amount of money is…
Q: Write a program in C to calculate and print the Electricity bill of a given customer. The customer…
A: #include<iostream>using namespace std;int main(){ int customer_id, units; string name;…
Q: In C++ Write a program that will convert U.S. dollar amounts to Japanese yen and euros. You can…
A: the answer is given below:-
Q: Write a C++ program that calculates and prints the bill for a car rental company. The company…
A: Given data is shown below:
Q: Write a C++ program that calculates and prints the monthly paycheck for an employee. The net pay is…
A: Find the required code in C++ given as below and output:
Q: The problem is from Introduction to Programming and Data Structures with C++, 4th edition (Count…
A: #include <iostream> using namespace std; int main() { int num, pos = 0, neg = 0,counter =…
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: I want to solve the question in c++ please Modify your program to make the user enter a quantity…
A: #include <iostream> using namespace std;int input(){ int n; cin>>n; return n;}…
Q: Write C program that calculates the volume and the surface area of a writ write a c program that…
A: When we consider a C program, it can be defined as a collection of objects that communicate via…
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++ program to calculate and display the midpoint coordinates of the line connecting the two…
A: Answer c. Given coordinates, x1 = 3 y1 = 7 x2 = 8 y2 = 12 Formula to calculate midpoint of ( x1, x2…
Q: Question 2: Write a C program that asks the user to enter several amounts of water consumed in cubic…
A: PROGRAM CODE: #include <stdio.h> // include header file for standard input output…
Q: I want to solve the question in c++ Exercise 5 Part1: • Write a program that presents to the…
A: Find the required code given as below and output :
Q: In C++ 1. Write a program that accepts from the user an amount in Peso. It should compute the…
A: Given: The amount entered by the user in Peso. Also, 1 HK dollar = Php 6.51 1 US dollar = Php…
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: Exercise #2: Write a C++ program that computes a ride you took in taxi. The bill computed based on…
A: Step 1 : Start Step 2 : In the main function , declare the variables to store the input distance ,…
Q: I am trying to write a code in C++ to output the sum of the square of the odd numbers between 2 user…
A: The program is written in c++
Q: Write a program in C++ that prompts the user to enter five test scores
A: Actually. program is a executable software that runs on a computer.
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: You are asked to write a C program that will accept representing the number of dollars and cents to…
A: Program when only cents are given: #include<stdio.h>void convert(int change){int i;// required…
Q: Write a program in C++ to calculate and print the Electricity bill of a given customer. The customer…
A: The below given C++ program will obey the following rubrics: Including necessary header files. In…
Q: Assume that there is no data-type float or double in the C implementation on your computer. You…
A: Algorithm: Start Read 2 numbers as strings Using strcmp function, find the greatest number Display…
Q: In your C compiler: 1. Given two numbers X and Y. Write a program to determine the difference…
A: #include <stdio.h>int main(){ //1 int X,Y,R; //reading X,Y value from user…
Q: xyz is a telecom company,there are three recharge plans as listed below- 10$ - 50 Gb for 28 days…
A: Program Approach - Use the header files as per code requirements. Define the main function and…
Q: Write a program in c++ which read sequence of 20 numbers and comput ther sum when the sum>=500 the…
A: The sequence of numbers is the continued read of the user input within the loop statement until some…
Q: Write a program in C that asks the user to insert the temperature value in Celsius (°C). The program…
A: Algorithm: Start Read temperature in Celsius Calculate fahrenheit=(celsius*9/5)+32 Print fahrenheit…
Q: 4. Write a complete C++ program to calculate the wages of employees which are based on the number of…
A: we are using do while loop here, since in do while the condition is checked after the execution of…
Q: A wholesale furniture store that sells sofas in bulk needs a program to help their cashiers. Write a…
A: We need to write a C++ language program to find the total price, delivery cost, and tax of the sofa…
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: Q2) A store asks you to write a C program to make cash payment easier for cashiers. Write a C…
A: We have to write a code about payment system
Q: This link describes a simple gravity pendulum which consists of a point mass suspended from a string…
A: the answer is given below:
Q: Jason Hardy opened a coffee shop at the beach and sells coffee in three sizes: small (9 oz), medium…
A: Answer :- #include <iostream> #include <iomanip> using namespace std; //constants…
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: The Goal of this project is to write a program in C++that calculates car rental amounts (for an…
A: - The question is to code the given scenario of hours.
Q: calculate the total charges for the duration stayed at the hotel
A: Program: // C++ version 17// header files#include <iostream>#include <iomanip>using…
Q: 7. Write a C++ program that calculates and prints the bill for a car rental company. The company…
A: #include<iostream>using namespace std;int main(){ char type;…
Q: Find the attached file.
A: Program Approach: Create variables and take input from user. Store entered values in an array. Ask…
Q: Write a program in C++ that should calculate the insurnace for a house. use questions below to…
A: Algorithm 1. Input all required variables like the first name, last name, no. of people in the…
Step by step
Solved in 3 steps with 3 images
- 2 When you deposit money in a savings account at a bank, the bank pays you interest on that money. If the bank computes the interest and adds it to your account once every year, the bank compounds interest annually. If you deposit p dollars, the money in your account after n years at interest rate r is : p(1+r)n Create a WCF service for that question, write a C# program that asks the user for the initial amount, the interest rate and the number of years. and then displays the balance after that many years. Do not hard code any variable values. The client will be prompted for any required variable values.Martin wants to create a program in c++ that requires the user to input 10 integers then print the total number of even integers, highest even integer, lowest even integer, total number of odd integers, highest odd integer, and lowest odd integer. If, however, the user inputs zero (0), the program will display “You have not yet entered 10 integers.”.In C++ 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 statusIf the marital status is “married,” ask for the number of children under the age of 14Gross 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 C program that calculates the price of a pizza and prints the receipt as follows: 1- Your program should first ask the user to enter the size of the pizza (integer value 1=large, 2=medium, 3=small) as well as the number of toppings (integer). 2- Your program should then read the pizza basic price (double) as well as the price of a topping ( float ) from the user. 3- Your program should then calculate the total price of the pizza using the following formula: Total price = ( basic price + number of toppings * topping price ) / size; And print a receipt which displays the details of your pizza order as well as the final total price to the screenWrite C program which should print your name and registration number on the screen then do the following:an industry has launched an online shopping ordering system which sells 5 different products. A list of productnumber, product name and their retail price is given below:Product No. Product Name Retail Price in Rs. Quantity Available101 Soap 60.00 10102 Liquid Hand Wash 200.00 20103 Liquid Dish Wash 150.00 30104 Table cleaner 350.00 40105 Hand Sanitizer 100.00 50 Your program must store this information in an array of struct product type. You must declare the struct product_type. (HINT: You can make any other structures or arrays of structures that you think might help you solve this problem.) Your program should…Write a C++ program that asks the user to enter the number of books purchased this month and then displays the number of points awarded. An online book club awards point to its customers based on the number of books purchased each month. Points are awarded as follows: Books Purchased Points earned 0 0 1 5 2 15 3 30 4 or more 60
- In C++ , 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…xyz is a telecom company,there are three recharge plans as listed below- 10$ - 50 Gb for 28 days 20$ - 150 Gb for 56 days 40$ - 350 Gb for 84 days write a program in c++ to ask user to which plans does he wants and display the cost of that recharge plan.Trying to write a C# program, everytime l try and run it it fails and says they are errors.Below screenshot is for the problem Write a program to calculate electricity charges for a customer. The program requests a name, previous meter reading and current meter reading. The difference in the two readings gives the number of units of electricity used. The customer pays a fixed charge of $25. In addition to the fixed charge, 20 cents is charged for each unit used. Print all the data, the number of units used and the amount the customer must pay, appropriately labelled. Additional information: You may assume that the current meter reading is larger than or equat to the previous meter reading. You may assume all data entered into your program is correct
- Write a C program that will calculate the total payment for a brand new car being purchased on installment. The user will input the car price, amount of downpayment made (for 0% to 80% of the car price), interest rate per annum (from 5% to 20%, can be fractional up to 2 decimal places), and the number of months of amortization (12, 24, 36, 48 or 60). Show a summary of the details inputted by the user together with the amount to be financed and the monthly amortization cost. Dispaly a running tally per month of the number of months paid, the total amortization paid (in pesos), and the total running cost of the car. Please provide comments if possible so that i could follow your code easily :)i). Write a C++ program to prompt the user to input her/his age and print it on the screen, asshown below.Your age is 20 years old. ii). Write a C++ program that asks the user for a number n and gives him the possibility to choosebetween computing the sum and computing the product of 1,...,n iii). Write a program that asks the user for a number n and gives him the possibility to choosebetween computing the sum and computing the product of 1,...,n. Expected output: 0,30,25,28Need help with a C++ program Write a C++ program that helps a person determine how long they can hike for under various conditions on a given supply of water. Your program should prompt the user to enter how much water they can carry in liters. Then, for each of the following conditions, print out how many hours the user can hike for. - moderate temperature, moderate difficulty: 1/2 liter per hour- moderate temperature, high difficulty: 3/4 liter per hour- high temperature, moderate difficulty: 1 and 1/2 liters per hour- high temperature, high difficulty: 1 and 3/4 liters per hour SAMPLE OUTPUT Hello! Welcome to the Hiking Water Calculator!How many liters of water can you carry? 8 OK. Here is how long you can hike for on 8 liters of water under the following conditions: moderate temperature, moderate difficulty: 16 hoursmoderate temperature, high difficulty: 10.6666666 hourshigh temperature, moderate difficulty: 5.3333333 hourshigh temperature, high difficulty: 4.5714285 hours.…