write a program in C++ that Mr. Ali has invested an amount of Rs101, 876 in a Bank scheme. Bank credits profit of 7% each year, and charge a bank fee of Rs 100 per month. What will be you amount at the end of 7th year
Q: You have just started a sales job in a department store. Your pay consists of a base salary and a…
A: Program for the given sales problem is given below: we are using java as the language and using…
Q: write a program in C++ to input pricesalong with quantityof above items as inputand provide 10%…
A: The resultant C++ program code is given below: #include<iostream>#include<iomanip>using…
Q: You have just started a sales job in a department store. Your pay consists of a base salary and a…
A: Program for the given problem is define below , in this i use th java as a language and java.awt for…
Q: Write a C program that will provide an ATM user with the proper change for any dollar amount up to…
A: Run the code for $19, $55, and $200 $19 will be split into 4 dollar notes that will be $10, $5, $2×2…
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 the c program that displays the water invoice price on the screen as follows, according to the…
A: Below is the required code in C language. Program Approach: Include necessary header files to get…
Q: Write a program in C++ to calculate and print the Electricity bill of a given customer. The customer…
A: Please find the answer below :
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 C++ program; Use " class cone {}" to output the "radius" and "circumference" of the bottom…
A: Include the iostream library. Create Cone class having instance data members like height, the radius…
Q: want the solution that setups midnight time to 0, and then compare to that to get difference for…
A: Here have to determine about function of computeDifference in c++.
Q: Write a program to roll dice (use the “rand” function) for 36,000 times and then calculate the…
A:
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 C# program for the following: Salman’s basic salary is input through the keyboard, his…
A: Lets see the solution.
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: 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 which take number of consumed unit as input and calculator the electricity bill…
A: Sample Response: //C++ program to calculate the electricity bill#include<iostream>using…
Q: 30 and, Rs. 60 respectively. Design a function that will be called if the customer chooses an…
A: PROGRAM#include<iostream>#include<string>using namespace std;class…
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: Write and run a C++ program that calculates and displays the amount of money available in a bank…
A:
Q: 1. Write a program that accepts from the user a weight of an object in kilograms. The program should…
A: START DECLARE weight, metricTon, milligram, gram INPUT weight ASSIGN metricTon = weight / 1000…
Q: Write a program in c# named DogBoarding that accepts the weight of a dog and the number of days it…
A: Please find the answer below :
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: in C Write a program that takes a word less than 25 characters long and prints a statement like…
A: #include<stdio.h> int main() { char str[25]; while(1) { printf("Enter word…
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 the c program that displays the water invoice price on the screen as follows, according to the…
A: Here is the C program: // Include necessary header files#include <stdio.h>// Define a main…
Q: A person X wants to distribute the property share to his children and the wife. Write a C+ program…
A: We need to take input from a user of the below things - total property worth in PKR number of sons…
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: / write a program in C ++ using the syntax (registry), in which the user enters the names, ages and…
A: A program in C ++ using the in which the user enters the names, ages, and numbers of a number of…
Q: Write a program in C# that will ask user to input his age and determine if he or she is eligible for…
A: Please find the answer below :
Q: To use a predefined function in your C++ program, you have to include its prototype? True or false
A: Question. To use a predefined function in your C++ program, you have to include its prototype? True…
Q: Write a program c language to calculate electricity bill charged to a consumer. Ask him to enter…
A: The main objective of the C- program,main.c is to prompt users to enter the number of units…
Q: Write the reading program: basic salary (bsalary) and sales (sales), then calculate and print the…
A: Here, first you need to declare some variables for all salaries. Then prompt user to enter basic…
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: Write a program that calculates a weekly wage, based on an hourly payrate and how many hours were…
A: Answer:
Q: Write a program in C++ to print the college name, location and area code (Higher College of…
A: A required C++ program to print the college name, location, and area code using symbolic constants…
Q: i want the solution in C++ language solution should setup the midnight time to 0, and then write…
A: Following is the c++ program: Variables used: startHours, startMins are used to store the starting…
Q: Write the reading program: basic salary (bsalary) and sales (sales), then calculate and print the…
A: C++ program is given below
Q: The students are required to develop a program using “if-statement” in the first program and switch…
A: Code: #include <iostream># include <string># include <cstdio>using namespace…
Q: When would you use a switch...case statement in C++? Is such a construct the equavalent of multiple…
A: Use of switch case and is a such a constructor equivalent of multiple if..else statements
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: You have just started a sales job in a department store. Your pay consists of a base salary and a…
A: Program for the given problem is define below , in this i use th java as a language and java.awt for…
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: 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: A person X wants to distribute the property share to his children and the wife. Write a C++ program…
A: #include <iostream>using namespace std; int main() { float…
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: 3. Write a C program to accept a discount percentage on mobile prices between 0 to 100 from the user…
A: Introduction: In this question, we are asked to write a C program to calculate the average discount…
Q: Write a C++ Program in which Write a C++ program for a new ice cream vendor called PopSalon. The…
A: #include <iostream>#include <string>using namespace std;class popcorn{ public:…
Q: Find the C program language Deal or No Deal? by CodeChum Admin When I was a kid, I used to watch…
A: As per the requirement program is done. Here you can change the array values as your wish but as per…
You have to write a
Step by step
Solved in 3 steps with 1 images
- Develop a C++ program that will determine the gross pay for each of the employees. The company pays “straight-time” for the first 40 hours worked by each employee and pays a “time-and-a-half” for all hours worked in excess of 40 hours. You are given a list of employees of the company, the numbers of hours worked by each employee last week and the hourly rate of each employee. Your program should input this information for each employee, and should determine and display the employee’s gross pay. Your program will end if a negative value was entered.Pakistan online Daraz company has four agent (1 to 4) who sell 5 different products ( 1 to5). Once per day, each agent passes in a slip for each different type of product sold. Every agentpasses in between 0 to 5 slips each day. Each slip has the following information on it: The agent number The product number Total rupees of that product sold that day.Write a program in C++ that will read all this information for last month’s sales and brief thetotal sales by agent by product. The output should be in tabular form.In C++ Suppose we add a fixed amount of money into our bank account at the beginning of every year. Modify the program from this section to show how many years it takes for the balance to double, given the annual contributions and the interest. Also print the final balance.
- Write a C++ program that helps calculate how long it would take a user to pay off a loan with compound interest. You should prompt the user for the principle amount, how much interest is being charged, and how much they are able to pay back each month. You should assume that all amounts are in dollars and cents, that interest is charged monthly, and that payments are also made monthly. The program should display a table with the following columns: the month number, the amount remaining on the loan, and the total amount already paid. For *each* row, you should: 1. *FIRST* subtract the payment from the amount remaining on the loan.2. *THEN* add interest based on this new total amount. You should continue to print out rows in the table until either the amount remaining is <= $0 or if 100 months have passed. Then, print out a summary showing the number of months that will elapse and how much total has been paid. If the table stops at 100 months, print out a message telling the user that…a C++ program that recommends the number of calories a person should eat each day. Calories are units of energy found in all foods. Base your recommendation on the person's weight and whether the person has an active or sedentary (inactive) lifestyle. If the person is sedentary, that person's activity factor is 13. If the person is active, that person's activity factor is 15. Multiply the activity factor by the person's weight to get the recommended number of calories. Start your program by: having the user enter their weight, as a floating point number; having the user enter whether they have active or sedentary lifestyle, as a character, 'A' for active or 'S' sedentary; use a switch (or else if) selection statement to use the appropriate calculation for the recommended calories for the selected lifestyle. · print out your results on the screen.Write 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= 8
- The members of the board of a small university are considering voting for a pay increase for their 100 faculty members. They are considering a pay increase of 5%. Write a complete program that will prompt for and accept the current salary for each of the faculty members, then calculate and display their individual pay increases. At the end of the program, print the total faculty payroll before and after the pay increase. You have to use a loop for the problem. C++ language only.You have been asked by ABC City Council to develop a parking rate calculator using C++. The program must be able to do the following tasks: a. Read entry time of the vehicle b. Read exit time of the vehicle Calculate the parking charges** based on the following parking rate: Hours Rate 1st to 3rd hours 4th to 5th hours 6th to 9th hours RM4 per hour RM3 per hour RM2.50 per hour More than 9 hours RM 2 per hour **Ignore the minute for calculating the parking charges. d. Each vehicle will need to pay 2.5% tax per entry. e. Calculate the tax and display the Final Payment to the user. For this Task, you need to: f. Identify input, output and processes for the g. Create a flowchart to solve the problem programIn C++: The members of the board of a small university are considering voting for a pay increase for their 100 faculty members. They are considering a pay increase of 5%. Write a program that will prompt for and accept the current salary for each of the faculty members, then calculate and display their individual pay increases. At the end of the program, print the total faculty payroll before and after the pay increase.
- 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?Use C++ In this lab we are going to be calculating the future value. You will need to read in the present value, the monthly interest rate and the number of months for the investment. The formula is going to compute compounded interest (by month). Here is the formula: F = P * pow((1 + i),t) Where F is the future value, P is the present value, i is the monthly interest rate and t is the number of months. The input for the program will be read in from a file. The program will write out to cout with a prompt. You will read in the file name from cin. You will then read in the present value, monthly interest rate, and the number of months from the input file. There may be multiple sets of these values. You need to process them all. The program should end when you reach the end of file on the input file. The output from the program will be written to two different places. Any error messages will be written to cout. You will also be writing out to a file called output.xls. The first thing…In C++ using endl; 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…