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.
Q: With the help of c++, write a code that permits a user to input the surnames of 5 overall best…
A: In step 2, you will the C++ code. In step 3, you can see the sample output. In step 4, you will get…
Q: Write a C++ program to convert temperature in degrees Fahrenheit to degrees Celsius. Your program…
A: ALGORITHM:- 1. Take inout for the Fahrenheit temperature from the user. 2. Convert it to Celsius…
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: Develop a program for current electrical billing system based on the given requirements using the…
A: 1. Flowchart for generating electricity bill
Q: Q1/ Use the structure Time to write a C++ program that inputs a time in hours, minutes and seconds…
A: #include<iostream> using namespace std; //Time Structure struct Time { int h,m,s; };…
Q: create a flowchart and a c++ program that will compute the real state tzx, given the following…
A: EXPLANATION: - The variables of type double are declared and initialized as: - double…
Q: A milk carton can hold 3.78 litres of milk. Each morning, a dairy farm ships cartons of milk to a…
A: The main objective of the c++ program is to prompt the user to enter the amount of milk in liters as…
Q: 1. In order to discourage excess electric consumption, an electrical company charges its customers a…
A: flowchart for problem 1 calculate electric bill
Q: You have to make aC Program to Convert Celsius from Fahrenheit, Kelvin and Réaumur or to Convert…
A: As per the question statement, we will write program in c language.
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: 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: 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: Q2/ 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: Question 2: Ali gives pocket money to his son in following fashion. Whatever pocket money is given…
A: Include the required libraries in the program. Declare the main function. Declare the variables of…
Q: 04. Write a C program to check whether any year entered by the user is a leap year or not. Leap Year…
A: 1) Below is C program to check whether entered year is Leap year or not In main function of program…
Q: Homework: Draw the Flowchart for each program of the following: 1. Write a C++ program to calculate…
A: PROGRAMMING CODE FOR QUESTION 1: #include<iostream>using namespace std;int main(){double…
Q: Hello everyone. I have homework and I do but code is complicated for me. Homework. This program…
A: According to the question below the solution: Output:
Q: Q14/ If money is left in a particular bank for more than 5 years, the bank pays interest at a rate…
A: GIVEN:
Q: A travel company has three types of buses (A, B and C), each one has a price based on the kilometer…
A: - We need to code for the bus fare problem. - We have to use C language.
Q: B-A- Write a program in C++ to determines the patient if he is infected with corona virus or not…
A: #include<iostream> using namespace std; int main() { string name; int temp;…
Q: write a program which accept days and integer variable and display total number of years, month and…
A: Actually, program is a executable software that runs on a computer.
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: We calculate weight normally in unit of tola. Write a C++ program to enter amount of gold in tola,…
A: A required C++ program is as follows, //Include header files #include <iostream>…
Q: The domestic tariff charged by Sabah Electricity Sdn Bhd (SESB) is given in Table 1. Based on the…
A: #include <iostream> using namespace std; int main() { // Taking input of monthly usage from…
Q: Given the projectile's velocity (u), the projectile's angle (0), and the acceleration due to gravity…
A: - We need to solve the projectile problem in C.
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 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: user-defined function and appropriate conditional and looping statements, create a program using C++…
A: Explanation: Detail Code #include <bits/stdc++.h>using namespace std; int main(){ int…
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: A company selling household appliances gives commissions to its salesman determined by the kind of…
A: Program: #include <stdio.h> int main() { int…
Q: Q7 Draw the flowchart and write a C program using else if to calculate the total amount to be paid…
A: The program prompts the user to enter basic loan amount and number of years. Basic loan amount is…
Q: The price of a stock is sometimes, taken to the nearest fourth of a rupee, for example, the value 29…
A: Note: This code should be rewritten instead of copying to the compiler otherwise it will throw a…
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: Write a C++ program that asks for the user’s name and then the program will output the last 4…
A: C++ Programming-
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: 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: If the total selling price of 15 items and the total profit earned on them is input through the…
A:
Q: Q1) Write a C++ Program that input the distance in Centimeter, Meter, Kilometer, and then converts…
A: CODE IN C++ CONVERT CENTIMETER , METER, KILOMETER. #include <bits/stdc++.h> using namespace…
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: LESCO want to make an automated system for their electricity bill calculation. They charge consumers…
A: Step 1:- Program Approach:- 1.Include header files 2.Create 7 variables of data type float 3.Take…
Q: This program reads a number of up to 9 digits. It then prints the number in English. In other…
A: Coded using C++.
Q: Write a C++ program to prompt the user to input the age (in years) and weight (in kg) and check if…
A: Ans: Code: #include <iostream> using namespace std; int main(){ int age, weight;…
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: If money is left in a particular bank for more than 5 years, the bank pays interest at a rate of…
A: Step 1:- Program Approach:- 1.Include header file 2.Create the function whose name is year(int num)…
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: triangle, the sum of the lengths
A: /****************************************************************************** Write a c++ program…
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: Draw flowchart and write C program to input the value of Basic salary and calculate the new salary…
A: Explanation for Flow chart: First start FC by start symbol oval in shape. Now draw user input…
Q: Question The volume of oil stored in an underground 200-foot deep cylindrical tank is determined by…
A: #include <iostream>#include<cmath>using namespace std; int main() { float…
Step by step
Solved in 2 steps with 1 images
- The 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.Q14/ 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 program in c++ 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.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
- 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.1. In order to discourage excess electric consumption, an electrical company charges its customers a lower rate of P7.5 for each of the first 250 kilowatt-hours and a higher rate of P8.5 for each additional kilowatt-hour. In addition, a 10% surtax is added to the final bill. Make a flowchart and write a C program that calculates the electrical bill given the number of kilowatt-hours consumed as input. In the end, print the number of kilowatt-hours consumed and the computed bill. *Use If..else for problem 1*Print your name, course, and year together with the output 2. Write a program that will calculate and print out bills for the city water company. The water rates vary depending on whether the water is for home use, commercial use, or industrial use. A code of H means home use, a code of C means commercial use and a code of I means industrial use. The water rates are computed as follows: code H: P250.00 plus P0.002 per gallon used code C: P5,000.00 for the first 4 million gallons…DO IT WITH C++ PROGRAM 1. Write a parameter and return program that will require the user to enter a temperature in Celsius and convert it to degree Fahrenheit and degree Formula: Fahrenheit = (9/5) * Celsius + 32 Kelvin = Celsius + 273 2. Refer to No. 1, transform the program using function header and function 3. Write a global and local variable program that would require the user to input a value of the Radius of a circle and then show the output in the diameter, circumference of the circle and area of the circle.
- Using the user-defined function and appropriate conditional and looping statements, create a program using C++ language that will: (a) ask the item price from the user (b) ask how many items to purchase for a specific item price (c) ask if there are other items to purchase, if yes, repeat the first step, proceed to the next step if otherwise (d) compute and display for the total amount to pay (e) ask for the payment from the user (f) accepts only enough amount of payment, ask another payment if otherwise (g) compute and display changeThis program reads a number of up to 9 digits. It then prints the number in English. In other words, if you run the program and enter 12345678, it should respond with "one hundred twenty three million four hundred fifty six thousand seven hundred eighty nine". If you enter 10000, it ought to print "ten thousand". This program is intended to give you practice using the switch statement and variable parameters in functions. C++ Only use <iostream> and SWITCH statement. Can you explain your code, please? Thank you so muchIf 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 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.
- Use C++ Write a program with total change amount as an integer input that outputs 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, the output is: no change Ex: If the input is: 45 the output is: 1 quarter 2 dimes Your program must define and call the following function. Positions 0-4 of coinVals should contain the number of dollars, quarters, dimes, nickels, and pennies, respectively.void ExactChange(int userTotal, vector<int>& coinVals)In a triangle, the sum of the lengths of any two sides is greater than the length of the other third side. Write a c++ program that prompts a user to enter the lengths of three sides, check if they form a triangle, and outputs if it is an isosceles, equilateral, scalene, or right triangle where you have to define and use the following functions: (a) isTriangle - takes 3 sides of a triangle and returns true if they form a triangle, false otherwise. (b) isIsosceles-takes3sidesofatriangleandreturnstrueiftheyformanisosceles triangle, false otherwise. (c) isEquilateral - takes 3 sides of a triangle and returns true if they form an equilateral triangle, false otherwise. (d) isRight - takes 3 sides of a triangle and returns true if they form a right triangle, false otherwise. You program should run repeatedly until the user wants to quit.A travel company has three types of buses (A, B and C), each one has a price based on the kilometer traveled per person, the costs are $3.0, $4.5 and $6.0 respectively. Write a C program to determine the total cost of the trip considering that when it is quoted there must be a minimum of 20 people, otherwise the payment is made based on this limit number.