If money is left in a particular bank for more than 5 years, the bank pays interest at a rate 4.5%; otherwise the interest rate is 3.0%. Write a C++ program that uses the cin to accept the number of years in the variable numYears and displays the correct interest rate, depending on the value input into numYears.
Q: write a program in C++ that Mr. Ali has invested an amount of Rs101, 876 in a Bank scheme. Bank…
A: Introduction of the Program: The C++ program calculates the total amount after 7 years using the…
Q: Please help me to write a C++ code for the question statement below. In a grocery shop if the amount…
A: /* Program that input bill amount from user and print the discount and payable amountafter the…
Q: A. write a c++ program that asks the user to enter values for dollar and convert into peso. display…
A: ANSWER:-
Q: Develop a program for current electrical billing system based on the given requirements using the…
A: 1. Flowchart for generating electricity bill
Q: Write a C++ program that reads in temperature in Celsius and displays temperature in Fahrenheit;…
A: Note- Your output is wrong f=(9/5)*20+32 = 68 is the correct answer and you are showing 55 which is…
Q: A mobile company charges the following rates to the user: For first 5 mins = $5 For next 10 mins =…
A: The input will be name along with minutes of usage and then final bill is calculated and displayed
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: Write a program in C# that will ask the user to enter two double numbers. Use an if() statement to…
A: Program plan: Ask the user to enter the first number. Ask the user to enter the second number. Use…
Q: A company selling household appliances gives commissions to its salesman determined by the kind of…
A: Procedure Followed: Include header files. Start main method. Declare variables:…
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 program that convert integer Fahrenheit temperature to Celsius or Celsius to Fahrenheit.…
A: First, we will input either CF or FC. If FC is entered, then we will convert the entered temperature…
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: We calculate weight normally in the unit of tola. Write a C++ program to enter the amount of gold in…
A: #include<iostream> using namespace std; int main(){ float tola,grams,amount,zakat;…
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 a c++ program that calculates and prints the monthly paycheck for an employee. The net pay is…
A: Required:
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: 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: Use switch case to write a C++ program that shows three options for the user 1) The first option is…
A: C++ program to print the area of a circle, triangle, cylinder depending upon the choice of the user.
Q: If money is left in a particular bank for more than 5 years, the bank pays interest at a rate of…
A: CODE:- #include <iostream>using namespace std;void check(int numYears){ if (numYears >…
Q: Write a C program that will read your yearly gross wage from a keyboard, calculate and display your…
A: PROGRAM CODE: #include <stdio.h> // include header file for standard input output…
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: Write a C++ program that reads in temperature in Celsius and displays temperature in Fahrenheit;…
A: The below is a temperature conversion formula that converts celsius to fahrenheit is as follows…
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: The force of gravity is different for each planet of the nine planets in our solar system. For…
A: Program Code: #include<iostream>using namespace std;main(){ float weight,n_weight; char ch;…
Q: Write a C program to read electricity unit (kW) and calculate the total electricity bill (RM)…
A: As per the question statement, We need to write c program.
Q: A golf ball is dropped from an airplane. The distance, d, the ball falls in t seconds is given by…
A: totDistance = 0.5*Gravity*time*time; distance = totDistance - distance;
Q: A management firm has 100 employees in total. The management firm increases the salary of the…
A: I have provided C++ CODE along with SCREENSHOT OF CODE WITH OUTPUT---------
Q: write a simple c++ program that calculates the amount of money earned on an investment, based on an…
A: Please find the answer below :
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: ). The force of gravity is different for each planet of the nine planets in our solar system. For…
A: #include<iostream>#include<bits/stdc++.h> #include<string>using namespace std;…
Q: Please help me to write a C++ Code for the question statement below. In a grocery shop if the…
A: read amount if amount>1000 discount=(amount*10)/100 else discount=(amount*5)/100 display…
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: You have been given 10 body temperatures of 10 individuals. Write a C# program that reads these body…
A: Algorithm: 1] Initilialise an array which stores the body temperatures of 10 people. 2] Display the…
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: 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: The Kingdom of Aleria uses gold coins and other metals for their money and their exchange rate is as…
A: Algorithm: Start Read no.of gold coins n Ask user's choice of unit output (S- silver, N-Nickel, C-…
Q: Write a program that calculates a weekly wage, based on an hourly payrate and how many hours were…
A: Answer:
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: I want it to be a simple program not difficult. Write a c++ program that reads information from the…
A: Required: I want it to be a simple program not difficult. Write a c++ program that reads information…
Q: Q6: Years that are evenly divisible by 400 or are evenly divisible by 4 but not by 100 are leap…
A: Leap Year Complete Program in Step 2
Q: If money is left in a particular bank for more than 5 years, the bank pays interest at a rate of…
A: PROGRAM CODE: #include <iostream> // include header file for input output streamusing…
Q: Write a C++ program which calculates percentage of three subjects and then prints, the student is…
A: #include <iostream> using namespace std; int main(){ float m1,m2,m3; float…
Q: Write a C program to measure perimeter and area of circle and rectangle using switch case…
A: Algorithm: 1. Read the shape type as shape. 2. IF shape is 'C' Then: 2.1. Read the radius of the…
Q: Given a number in the range of 100 and 999, write a program to accept input and validate this range.…
A: Note: we are only allowed to solve one question in one post. I am solving the first on here. To get…
Q: in C Write a program to calculate the size of a room and the costs to strip and sand, and seal it.…
A: 1) Below is C Program to calculate the size of a room and the costs to strip and sand, and seal it…
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…
If money is left in a particular bank for more than 5 years, the bank pays interest at a rate 4.5%; otherwise the interest rate is 3.0%. Write a C++
Step by step
Solved in 2 steps with 1 images
- If money is left in a particular bank for more than 5 years, the bank pays interest at a rate of 4.5% of the money; otherwise, the interest rate is 3.0% of the money. Write a c++ program to accept the number of years in the variable numYears and money in the variable money then display the correct interest rate, depending on the value input into numYears by using functions.(Practice) An automobile travels at an average speed of 55 mph for 4 hours. Write a C++ program that displays the distance, in miles, the car has traveled after 1, 2, and so on hours until the end of the trip.Use python of this excerxises. A company selling household appliances gives commissions to its salesmandetermined by the kind of product sold as well as the sales amount. Type 1: 7% of sale or 400, whichever is more. Type 2: 10% of sale or 900, whichever is less. Type 3: 12% of sale. Type 4: P250, regardless of sale price. Make a flowchart and a C program that would input the KIND of appliancesold (between 1-4) and the sale PRICE and output the Commission that thesalesman will receive
- 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 :)You have to 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?Write a program in C++ that converts kilometers per hour to miles per hour.Program will accept as input the speed into km/h and will output the result intom/h
- 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 60The volume of oil stored in an underground 200-foot deep cylindrical tank is determined by measuring the distance from the top of the tank to the surface of the oil. Knowing this distance and the radius of the tank, the volume of oil in the tank can be determined by using this formula: volume = π radius2 (200 - distance). Use this information to write a complete C++ program that asks the user to enter 10 values of radius and distance measurements, one at a time, and then the program calculates for each value entered the volume of oil in the tank Using a for loop. Finally, the program should display the all the inputted values and the calculated volume in the output screen.We calculate weight normally in the unit of tola. Write a C++ program to enter the amount of gold in tola, convert it into grams, and calculate the amount of Zakat on the gold.(Hint: use the internet to find the current gold price).WRITE FULL C++ PROGRAM IN DETAIL
- Use C++ Write a program with total change amount as an integer input, and output the change using the fewest coins, one coin type per line. The coin types are Dollars, Quarters, Dimes, Nickels, and Pennies. Use singular and plural coin names as appropriate, like 1 Penny vs. 2 Pennies. Ex: If the input is: 0 (or less than 0), the output is: No change Ex: If the input is: 45 the output is: 1 Quarter 2 DimesWrite 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 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