Question 2: Write a C program that asks the user to enter several amounts of water consumed in cubic meter, then the program should calculate and print the price of each amount jeull) (s JSI, as well as the maximum and average values for all the calculated prices. The use enters -1 when finishes. The price of one coup is calculated as follows: Between 1 to 20 coup THE PRICE IS 5 shiekel Between 20-50 coup the price is 6.5 shiekel Between 50-80 coup the prices is 8 shiekel Greater than 80 the prices is 10 shiekel
Q: Use switch case to write a C++ program that shows three options for the user 1) The first option is…
A: code : - #include <iostream> using namespace std; int main(){ // print message to user…
Q: ASSIGNMENT: Write a C program that will allow the user to enter the inner and outer radii of the…
A: Question given: A formula is given for calculate heat conduction from a cylindrical solid wall of…
Q: Write a c++ program where mikayla jylana deposit her money in time deposit at a bank of Php 25000.…
A: #include<iostream> using namespace std; int main(){ float…
Q: Question #4: Use for statement to write a C program that asks the user to enter a positive integer…
A: Code: #include <stdio.h>int main(){ //declaring required variables int n,i;…
Q: In c++, create a program that gets quarterly sales from a user and calculates the total of all four…
A: Introduction: Here we are required to display the total, average, highest and lowest quarter sales…
Q: ASSIGNMENT: Write a C program that will allow the user to enter the inner and outer radii of the…
A: the answer is given below :
Q: Write a complete C program to calculate the perimeter and area of a triangle with 3 sides namely a,…
A: Program #include <stdio.h> #include<math.h> #include<stdlib.h>…
Q: Use switch case to write a C++ program that shows three options for the user 1) The first option is…
A: Here we are going to write the coding to compute the area of the circle, cylinder and the triangle…
Q: You are required to produce a C++ program which solves the following: 1- A worker is paid according…
A: Given that You are required to produce a C++ program which solves the following:1- A worker is paid…
Q: Part1: • Write a program that presents to the users a choice of your 4 favorite beverages (Water,…
A: Here in this question we will be writing program which will simply ask user to enter his choice for…
Q: Q6 Answer the following question based on the given statement. "Calculation of electricity meter…
A: Answer: The meter reading code is given below : #include <stdio.h>#include <conio.h> int…
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: 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: 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: Write a C program that calculates the employee salary and print the information as follows: - Your…
A: As per question the code is given below:
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 C# program for the following: Salman’s basic salary is input through the keyboard, his…
A: Lets see the solution.
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: Question #4: Use for statement to write a C program that asks the user to enter a positive integer…
A: required:
Q: Write a program in C++ to calculate and print the Electricity bill of a given customer. The customer…
A: EXPLANATION: Include the necessary header files. Create a function that will take the user input…
Q: Write a C Program A bank wants a program that determines the yearly interest earned on a guaranteed…
A: #include<stdio.h> int main(){ //declare the variables to store amount, interest, term…
Q: 3. Write a program in C to calculate and print the Electricity bill of a given customer. The…
A: C program to calculate and print electricity bill of customer. program code is in step 2. and…
Q: Question 2 Write a complete C program that prompts the user to enter a series of integers terminated…
A: The above question is solved in step 2 and step 3 :-
Q: You are required to produce a C++ program which solves the following: A worker is paid according to…
A: C++ code :- #include <iostream> using namespace std; int main() { int…
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: 3. Write a program in C to calculate and print the Electricity bill of a given customer. The…
A: #include <stdio.h> int main() { // variable declarations int customer_id, unit_consumed;…
Q: Use for statement to write a C program that asks the user to enter a positive integer number n. Then…
A: From the sequence, it is clear that the numbers getting decreased by 3 and continued till 0
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: Write a complete C++ program that calculate a patient's treatment charge based on the types of…
A: C++ code: #include <iostream>using namespace std; float calculate_discount_charge(float a){…
Q: Write a c++ program that prompts the user to enter the length and the width of a rectangle. The…
A: C++ is one of the most popular programming language developed by Stroustrup at Bell Labs. The basic…
Q: 2:Write a program in C# Sharp to calculate and print the Electricity bill of a given customer. The…
A: Programming instructions: Create required variables. Take input from the user for id , name and…
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 complete C program to calculate the perimeter and area of a triangle with 3 sides namely a,…
A: PROGRAM: //Header files #include <stdio.h> #include <string.h> #include <math.h>…
Q: Q1) How to write a C program segment that prompts and accepts the age and number of hours the…
A: define 3 constats i.e childrate=1.00, adultrate=3.50 and seniorRate=2.0 take age and number of hours…
Q: Using C++ write a program Asif buys four products detergent, ghee, milk and soap from Punjab Cash &…
A: Algorithm: Firstly collect the data form the user about the price and quantity then store the total…
Q: You are required to produce a C++ program which solves the following: 1-A worker is paid according…
A: Code #include <iostream>using namespace std;int main(){ string name; //for input user…
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: 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: 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: (Apartment problem) A real estate office handles, say, 50 apartment units. When the rent is, say,…
A: File name: “main.cpp” //Import the header files #include <iostream> #include<iomanip>…
Q: You are required to produce a C++ program which solves the following: 1- A worker is paid according…
A: PROGRAM CODE: #include <iostream> using namespace std; float calculateTD(float income) {…
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: How to use C code to write a C program segment that prompts and accepts the age and number of hours…
A:
Q: Write a complete C program to calculate the perimeter and area of a triangle with 3 sides namely a,…
A: The following C code has five functions. They are: void menu() - This function is to print the…
Q: An Auto Insurance Program Example - Write a C++ program to determine the cost of an…
A: PROGRAM: //Header File #include <iostream> using namespace std; //Defining main int main() {…
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: Modify the craps program to allow wagering inside of C#. Initialize variable Balance to 1000…
A: Solution:: package april.april16; import java.util.Random; import java.util.Scanner; public…
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images
- Write a C# program named ProjectedRaises that includes a named constant representing next years anticipated 4 percent raise for each employee in a company. Also declare variables to represent the current salaries for three employees. Assign values to the variables, and display, with explanatory text, next years salary for each employee.Q1) How to write a C program segment that prompts and accepts the age and number of hours the customer has spent in the “FUNNY Theme Park”. Then, displays the charges based on the rates shown in Figure 2 below : Age Range Rate ( per hour) (RM)0-20 1.0021-50 3.50Above 50 2.00 In your program, you have to make use of THREE(3) different defined constants for the value of rate per hour and declare the necessary variables.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…
- 1) Write a c++ program that calculates the cost of 3 bags of fruit. The 4 possible fruits arepears which cost 1 dollar each, pomegranites which cost 2 dollars each, plumbs whichcost 3 dollars each, and bananas which cost 5 dollars each. Each bag can contain anynumber of different fruits with any quantity of each particular fruit. The program willprompt the user to enter a particular fruit by typing the name of the fruit: .‘pear’ forpears, ‘pomegranite” for pomegranites, ‘plumb’ for plumbs, and ‘banana” for bananas,and then prompt for the quantity of that fruit that will be placed in the bag. The programwill then continue to prompt the user in the same manner for more fruit to be placed inthe same bag until the user types the word ‘done’. This will then cause the program tohave the user enter the various quantities of fruit for the next bag. When the user hasentered the varieties of fruit in all 3 bags, the program will display the total cost of fruitper bag and the overall cost for all…In C++ 1. Write a program that accepts from the user an amount in Peso. It should compute the equivalent amount in HK dollar, US dollar and Canadian dollar. Display the amount in Peso and the equivalent amount in the different currencies. Given: 1 HK dollar = Php 6.51 1 US dollar = Php 50.68 1 Can. Dollar = 40.06xyz 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.
- Write a C program that computes the employee’s payroll of ABC Company. The user is first asked to enter the employee’s name, hourly wage, and number of hours worked for the week. Then when that is done the employee’s data, which consist of the employee’s name, their gross (wages * hours), and their Net (gross after a 12% tax rate and 50 pesos insurance fee mandatory to all employees), has to be shown. (Use #include <stdio.h> instead of #include <iostream>. Please Enter Employee’s Name: Juan dela CruzPlease Enter Employee’s Hourly Wage: 115.75Please Enter Employee’s Hours Work this Week: 40 Employee’s Payslip: Employee’s Name: Juan dela Cruz Hourly Rate: 115.75 Hour’s Work: 40 Gross Income: 4630.00 Insurance Fee: 50.00 Tax Fee: 555.60 Net Income: 4024.40In C++ Write a program with a car's miles/gallon and gas dollars/gallon (both doubles) as input, and output the gas cost for 20 miles, 75 miles, and 500 miles. Output each floating-point value with two digits after the decimal point, which can be achieved by executingcout << fixed << setprecision(2); once before all other cout statements. Ex: If the input is: 20.0 3.1599 the output is: 3.16 11.85 79.00 Note: Real per-mile cost would also include maintenance and depreciation.Write a C++ program to calculate total ordering cost. Jacob is a retailer for ice. Normally a bag of ice costs $2.5, but the price varies with the amount that he purchases. The following table shows the discount that Jacob receives. In your program, define variables with meaningful names to accept user input on order volume, and calculate total ordering cost based on the order volume inputted. Use if-else statements to handle the calculations for different order volumes as shown in the above table. Your program should print out user order volume, discount rate, and total ordering cost in console Order Volume Discount Rate >= 200 bags 25% off 120 - 199 bags 20% off 60 - 119 bags 15% off 40 - 59 bags 10% off 20 - 39 bags 5.5% off 0 - 19 bags No discount
- 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 program in C++ to calculate and print the Electricity bill of a given customer. The customer id, name and unit consumed by the user should be taken from the user and display the total amount to pay by the customer. The charges are as follow: Example: If user enter 199 unit then the electricity bill will be 199 *1.20 = 238 Output will display customer id, name, unit consumed and total amount of bill. Use C++ program.Write a C++ program whose display heading on the top as “Admissions in Iqra University” that offers admission in Computer Science as choice 1, Software Engineering as choice 2, Computer Engineering as choice 3, Business management as choice 4, Pharmacy as choice 5. The program takes integer input as choice number. And their percentage in float. On the basis of their choice decide whether a student is eligible for this department or not. If eligible display message “Your admission is confirmed”. Else display message “change your field”. Selection criteria >=85 Computer Engineering Less than 85 and greater and equals to 82 Computer Science Less than 82 and greater and equals to 79 Software Engineering Less than 86 and greater and equals to 76 Business management Less than 88 and greater and equals to 70 Pharmacy