A wholesale furniture store that sells sofas in bulk needs a program to help their cashiers. Write a C+ program that asks users to enter the sofa price and the number of sofas sold, then calculate the 8% tax per sofa and the delivery fee of 3.40 BD per sofa. The program must calculate and print: 1- Tax per sofa. 2- Total delivery cost. 3- The total price which is the sum of the total price of all sofas, total tax and delivery fees for all sofas. All numbers should be displayed with 1 decimal place. Sample output: Enter Price per table and Number of sofas: 6.3 10 Tax Per Sofa: 0.5 Total delivery cost: 34.0 Total Price = 102.0
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 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: Q3. A water distribution company charges its consumers depending the type of customer: R-…
A: Program approach: Declare all essential variables. Use do while loop for repetition. Input a…
Q: The population of an Arab country in 1980 reached about 12 million people, if you know that the…
A: Required: program The population of an Arab country in 1980 reached about 12 million people, if you…
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: A chemical sensor works to read the value of pollution in four industrial sites every four hours a…
A: Required: write a program in C ++ language that works to read the pollution values in those sites…
Q: In a right angled triangle, the square of the length of one side is equal to the sum of the squares…
A: #include <iostream>#include <cmath>using namespace std; int main() { int a, b, c; cout…
Q: Write a C program that computes the employee’s payroll of ABC Company. The user is first asked to…
A: Name, hours, wage per hour will be the only inputs and then gross, net and all deductions are…
Q: I'm currently studying C++ and i have this lab i need the answer to it. Write a program that asks…
A: CODE:- #include <iostream>using namespace std;int main(int argc, char *argv[]){ int quarters,…
Q: Write a C++ program to calculate total ordering cost. Jacob is a retailer for ice. Normally a bag of…
A: 1. declare quantity, discount. 2. get User input 3. Calculate percentage using above table using if…
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 C++, if the statement ( int a-5, b=2: ) is written at the beginning of the program, then the…
A: I HAVE PROVIDED THE ANSWERS FOR ALL 10 QUESTION 1.ElectricalEng2.4.53.char h='all';4.unsigned5.5…
Q: C++ program called AlphaBravoCharlie which prints the numbers 1 to 110, 11 numbers per line. The…
A: The below given C++ program will obey the following rubrics: Including necessary header files.…
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: 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: Write a C Program SOLVE THE EQUATION using user- defined functions and if-else statement. Choice…
A: - We need to highlight the c code for the operation needed.
Q: Write a C++ program to automate the Grocery shop bill for 6 items. The program asks grocery shop…
A: In step 2, you will get C++ code. In step 3, you can see the sample output.
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: Mars hyper market gives discount to customers based on their spending. If a customer spends 20 Omani…
A: #include<iostream>using namespace std;int main(){ float spending; cin>>spending;…
Q: Write a program in C++ to help Buddy (the sheepdog) calculate the average age of all his sheep. The…
A: #include <iostream>#include <iomanip>using namespace std; int main(){ int age; int…
Q: Trying to write a C# program, everytime l try and run it it fails and says they are errors.Below…
A:
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: Create a C++ program that will input a single letter and printout the corresponding digit on the…
A: Sample Response: //C++ program to find the equivalent telephone digit of a…
Q: A company selling household appliances gives commissions to its salesman determined by the kind of…
A: Program: #include <stdio.h> int main() { int…
Q: you need to create a C++ program that will ask for the user's height, weight, and age then display…
A: #include <iostream>using namespace std; int main(){ float height, weight; int age;…
Q: A company selling household appliances gives commissions to its salesman determined by the kind of…
A: A flowchart is a pictorial representation of an algorithm. It is a graphical representation of steps…
Q: Q3. Write a C program in which the user can enter his/her body temperature in Fahrenheit and the…
A: I give the code in C as per your requirement along with output and code screenshot
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: Write a C++ program that calculates the area of a square. The main function asks the user to input…
A: PROGRAM INTRODUCTION: Include the required header files. Start the definition of the function to…
Q: You have started working at a water plant and have been asked to develop a program which, can…
A: C++ program to calculate the water consumption bill for the user. Prompt the user to enter the…
Q: Write a program that calculates a weekly wage, based on an hourly payrate and how many hours were…
A: Answer:
Q: Write a C Program that allows a user to enter any number of student test scores until the user…
A: EXPLANATION: - A do...while loop is used to read the scores of the students till 999 is not entered…
Q: Develop a C++ program that asks the user to enter a number. If the user enters 1, the program…
A: Start Input ch If ch is 1, Input N, Calculate and print S1 If ch is 2, Input N, Calculate and print…
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 a program in C++ to calculate and print the Electricity bill of a given customer. The customer…
A: to do: Write a program in C++ to calculate and print the Electricity bill of a given customer.…
Q: A real estate office handles, say, 50 apartment units. When the rent is, say, $600 per month, all…
A: #include <iostream>#include <fstream>#include <cmath>#include <iomanip>using…
Q: 3. Write a program in C to calculate and print the Electricity bill of a given customer. The…
A: In this user has to enter customer id Name and unit consumed then according to unit find the rm…
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: Write a simple C# console application to accept the item name and item price. The program should…
A: Here is your code with an output .
Q: (C PROGRAMMING ONLY) 6. Deal or No Deal? by CodeChum Admin When I was a kid, I used to watch this…
A: I give the code in C along with output and code screenshot Note I have used my own set of values…
Q: Write a C++ program whose display heading on the top as “Admissions in Iqra University” that offers…
A: PROGRAM CODE: #include <iostream> // include header file for input output…
Q: Q.3) Use switch case to write a C++ program that shows three options for the user The first option…
A: According to the given question, it is required to determine the are of a circle and triangle as…
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: Write a C++ program that asks the user to enter the number of books purchased this month and then…
A: Given that, Write a C++ program that asks the user to enter the number of books purchased this…
Q: Modify the craps program to allow wagering inside of C#, and explain each step (reject if you…
A: After updating the code, I have provided C# CODE along with CODE SCREENSHOT and OUTPUT…
Q: Write a program in C++ to help Buddy (the sheepdog) calculate the average age of all his sheep. The…
A: Hello student, hope you are doing good. The code is attached below along with explanation and output…
Step by step
Solved in 3 steps with 2 images
- The company « Super discounted used cars inc.» pays their employees according to this chart: 250$ per months plus 50$ per car sold. If the salesman sells more than 10 cars, the employee receives a bonus of 5% of the total of his sales, in addition to his regular salary. Each month, the owner sits in front of the computer, and enters the following information: The name of the employee, the number of cars sold, as well as the total of all the sales for the month. algorithm that will calculate the salary of an employee for the month, and then display on the screen, his name, total cars sold, base salary, bonus if applicable and entire salary. Each input must be validated.and make trace memory screenQUESTION 8 Kebabo Internet Services offers customers with 600 weekday minutes for a flat rate of RM39.99. Night (8.00 P.M. to 7.00 A.M.) and weekend (Saturday to Sunday) minutes are free, but additional weekday minutes cost RMO.20 each. There are Service taxes (SST) of 6% on all charges. Write a program that prompts the user to enter the number of weekday minutes, night minutes, and weekend minutes used, and calculates the monthly bill and average cost of a minute before taxes. The program should display with labels all the input data, the pre-tax (amount before tax) bill and average minute cost, the SST cost and finally the total bill. Store all amount values as whole cents (rounding the taxes and average minute cost ie: RMS.54 and 253 minutes).Write a program for the HR department to define promotion strategy for every employee. The minimum salary allowed is 3,000. The maximum salary allowed is 100,000 AED. The salary increases by 10% for every 2 years for the first 6 years, and increase by 5% for every 2 years for after the first 6 years. The salary cannot exceed 100,000 AED or the double of the original salary. The program must ask the user to enter the salary and the number of years. The program then prints list of the salary increment per year.
- A mobile phone service has three different data plans for its customers: PLAN A: For $19.99 per month, 2 gigabytes are provided. Additional usage costs $8.00 per gigabyte. PLAN B: For $59.99 per month, 8 gigabytes are provided. Additional usage costs $8.00 per gigabyte. PLAN C: For $79.99 per month, Unlimited data is provided. Write a program that calculates a customer’s monthly bill. It should input the customer name, which plan was purchased, and how many gigabytes were used. It should then create a bill that includes the input information and the total amount due. It should also display how much money plan A customers would save if they purchased plan B or C, and how much money plan B customers would save if they purchased plan C. If there would be no savings, no message should be printed. Wherever possible, use named constants instead of numbers.A company decided to give bonus of 15% to employee if they work more than or equal to 5 years. Ask user for their salary and year of service and print the net bonus amount together with their previous salary. The user need to enter following details: • their current salary ● their year of service The user will see the following details: • Their previous salary • Their new salary with bonus If the user works less than 5 years, they are going to see "No bonus for you" in their screen together with their regular salary.Need help coding in Java Morgan’s Department Store distributes bonuses to its salespeople after the holiday rush. Table 9-6 shows the bonuses, which are based on full weeks worked during the season and the number of positive online customer reviews. Write a program that allows a user to continuously enter values for the number of weeks worked and the number of positive reviews received and displays the appropriate bonus until the user enter a sentinel value: 99.
- A company of 20 employees wants to find the employee who made the highest commission so he/she can be paid a 10% bonus of the commission he/she earned for that month. The commission an employee makes is calculated by multiplying the sales amount by the commission rate. The commission rates are shown below: Sales Amount Commission Less Than 40000 No commission 40000 to 80000 inclusive 5% Greater than 80000 10% Write a program to: Prompt the user for each employee’s id (an integer value) and the sales amount For each employee, display the commission earned Display the total commission earned by all the employees Display the average commission earned by an employee Display the employee id, the commission and the bonus paid to the employee with the highest commission Must be written in c++, no arrays to be used, only use iostream libraryIn C++ A carpet company has determined that every 50 square feet of floor coverage will require 6 hours of labor. The company charges $30 per hour for labor. The program should ask for the number of rooms to be carpeted and the price of the carpet per square foot. Write a program uses this method to calculate the total cost: int getArea ( ) should ask for the square feet of floor space in each room, validate it, and return it the value main. This function should be called by main once for each one of the rooms. Display the area to be carpeted, the cost of the carpet, and the cost of labor, and the total cost to the customer. Input Validation: Do not accept a negative value for any data element.The owners of the Annan Supermarket would like to have a program that computes the weekly gross pay of their employees. The user will enter an employee’s first name, last name, the hourly rate of pay, and the number of hours worked for the week. In addition, Annan Supermarkets would like the program to compute the employee’s net pay and overtime pay. Overtime hours, any hours over 40, are paid at 1.5 the regular hourlyrate. Net pay is gross pay minus taxes (Refer to the tax table on the second page).Define a class called Employee. The class must have private attributes to store the employee's name, hourly rate, and regular (≤ 40) and overtime hours worked. The class must also have methods to perform the following tasks:• A constructor to initialize the hourly rate to the minimum wage of $7.25 per hourand the hours worked (regular and overtime) to 0.0.• A method to get (a setter/mutator method)⬧ the employee's name⬧ the hourly rate⬧ the hours work for the month (by the week – assume 4…
- Bob a builder has come to you to build a program for his construction business. He needs to determine the square footage of a room in order to buy material and calculate costs.Bob charges $425 per square metre.the program is going to ask the user to enter the name of a room . It will then ask you for the width and length of a room (in metres) to be built.the program will calculate the room area and use this information to generate an approximate cost. Your program will display the room , the total area and the approximate cost to the screenThe owners of the Annan Supermarket would like to have a program that computes the weekly gross pay of their employees. The user will enter an employee’s first name, last name, the hourly rate of pay, and the number of hours worked for the week. In addition, Annan Supermarkets would like the program to compute the employee’s net pay and overtime pay. Overtime hours, any hours over 40, are paid at 1.5 the regular hourly rate. Net pay is gross pay minus taxes (Refer to the tax table on the second page). Define a class called Employee. The class must have private attributes to store the employee's name, hourly rate, and regular (≤ 40) and overtime hours worked. The class must also have methods to perform the following tasks: A constructor to initialize the hourly rate to the minimum wage of $7.25 per hour and the hours worked (regular and overtime) to 0.0. A method to get (a setter/mutator method)⬧ the employee's name⬧ the hourly rate⬧ the hours work for the month (by the week –…Question: Party budget planning - complex Prompt the user to enter their current budget and the number of people who need to share a meal. You are ordering food from a restaurant that has two menu items: Tacos $4 Empanadas $3 Calculate and print out all the options of meals where the budget is used entirely(where possible) and each person has an equal number of items to eat. They may eat different things, but everyone gets the same number of food items, e.g. 2 tacos or 1 empanada and 1 taco or 2 empanadas. Hints: Here are some things that might help you in your solution. If total items purchased does not equally divide by the number of diners, then abandon that combination. It may help to calculate the max number of empanadas that the budget can buy and also the max number of tacos that the budget could buy. These can be thought of as upper bounds in your loops. In your solution, keep track of items per person Also, keep track of total number of viable solutions, as that might…