Program specifications: Input: your program should ask the user for the cost of the house, the amount of the down payment, the yearly interest rate as a percent, and the number of months for the loan. Output: the output should be in the form shown below. For instance, if the user entered the values in my example, your output would look like: Cost of house : $75000.00 Down payment : $8000.00 Amount borrowed : $67000.00 Yearly interest rate : 4.500% Number of months : 180 Monthly Payment : $512.55 Total of Payments : $92259.00 Total interest : $25259.00
Q: A movie in a local theater is in great demand. To help a local charity, the theater owner has…
A: PROGRAM STRUCTURE: Include the required header files for the program code: Header file iostream is…
Q: PLEASE USE THE SWITCH-CASE STATEMENT FOR THIS PROBLEM The Kingdom of Aleria uses gold coins and…
A: Given, 1 gold=15 silver 18 silver=30 nickel So, 1 gold=15 silver=(30/18)×15=1.667×15 nickel 10…
Q: A mobile phone service has three different data plans for its customers: PLAN A: For $19.99…
A: Note: - Since the programming language is not mentioned to write the program. The below code is…
Q: Assuming there are no deposits other than the original investment, the balance in a saving account…
A: Below is the required code and sample output:
Q: e a program which takes quantity of fuel and type of fuel (1OR 2) FROM keyboard Nad display total…
A: NOTE: SINCE THE LANGUAGE OF THE CODE IS NOT MENTIONED, I HAVE USED PYTHON FOR THE SOLUTION. Define…
Q: Problem Statement – Construct a program that exchanges coins for cash like Coinstar that is located…
A: Hey there, I am writing the required solution based on the above given question. Please do find the…
Q: - If money is left in a particular bank for more than 5 years, the bank pays interest at a rate of…
A: Actually, program is an executable software that runs on a computer.
Q: What is the output from the following code segment if the user enters 8
A: According to the question we need to find the output from the following code segment if the user…
Q: (Science calculate energy) Write a python program that calculate the energy needed to heat water…
A: The given problem is to be solved using the python program that will take the water weight, initial…
Q: In a course with 2 midterms and 1 final exam, you will write a code that determines the remainder…
A: #include <stdio.h> int main(){ float first, second, final; float avg; printf("\n…
Q: really don't know how to solve this code problem. Malcolm Movers charges a base rate of $200 per…
A: given: base rate: 200 per hour = 150 per mile = 2 Required: Java program to find total moving fee…
Q: ython solution please Task 1 Description let's consider a case when you need a lot of coffee.…
A: Print a statement asking for number of cups. Define variable num and store the number of cups of…
Q: Modify the provided code for the program that calculate the overtime hours to: a. calculate the…
A: Given requirement, Modify the provided code for the program that calculates the overtime hours to:a.…
Q: Summary During winter when it is very cold, typically, everyone would like to know the windchill…
A: Program code: //include required header files #include <iostream> #include <cmath>…
Q: only in python Wonder Shopping wants to calculate the Commission given their employee. The program…
A: Based on python
Q: This is a C++ question, not Python or Java Write a program that asks the user for the actual value…
A: Input : Actual value of a piece of property Current tax rate for each $100.00 of assessed value…
Q: Input: your program should ask the user for the amount of principal, the interest rate as a percent…
A: #include <iostream>#include<math.h>#include<iomanip>using namespace std; int…
Q: You require an algorithm that will read in a tax rate (as a percentage) and the prices of five…
A: Note: This is a multipart question-based problem. As per company guidelines, only the first three…
Q: The following formula gives the distance between two points, (x1, y1) and (x2, y2) in the Cartesian…
A: A required program is as follows, //Include header files #include<iostream>…
Q: The simple interest on a loan is calculated by the formula • Interest=principal * rate * days / 365…
A: Since the programming language is not mentioned in the question, we will answer this question in the…
Q: 1. In this program you will produce an output of the total tax based on your income and marital…
A: In the below steps you can find the complete code in python. Since there is no language given in the…
Q: The code below is for a complete program: Read*, a, b Call math(a, b) Print*, math end real…
A: Wrong options 5 to 7 errors ,in 1to 2 errors more than 7 errors ,in 1to 2 errors…
Q: 2.12 LAB: Driving costs Driving is expensive. Write a program with a car's gas mileage…
A: LAB: Driving costs - functions Driving is expensive. Write a program with a car's miles/gallon and…
Q: Computer Programming1: Homework 4 Q1.Write suitable if statements for the following conditions: a)…
A: Required: convert given conditions to if statement. Answer to both the subpart is given in the…
Q: 3.8: Software Sales A software company sells a package that retails for $99. Quantity discounts are…
A: Since the Programming language is not mentioned in the question, we will answer this question in…
Q: I'm not understanding this question. This is a Python course. This is the problem. "One acre of land…
A: This question asked about to convert the value of tract land in the square feet. To solve this…
Q: A retail company must file a monthly sales tax report listing the sales for the month and the amount…
A: Question. A retail company must file a monthly sales tax report listing the sales for the month and…
Q: Types of charges Room charges : Junior suite Deluxe suite Executive suite Critical care units:…
A: Since you have posted a question with multiple sub-parts, we will solve first three subparts for…
Q: Hi, I need the answer to this question using the C++ programming language. Thank you. Question:…
A: The, code has given below:
Q: 1.) Rectangle Area The area of a rectangle is calculated according to the following formula: Area=…
A: program in python user input width and length of rectangle program calculate the area of rectangle…
Q: Driving is expensive. Write a program with a car's miles/gallon and gas dollars/gallon (both…
A: Program Instructions:Take car's miles/gallon and gas dollars/gallon as input using scanner…
Q: 1 The radius1 of the cone will be the first user input. Slant height 1 will be another user input.…
A: pie=3.14radius = float(input('enter radius')) #Take input radiusheight = float(input('enter slant…
Q: Driving is expensive. Write a program with a car's miles/gallon and gas dollars/gallon (both…
A: import java.util.*;public class Main{ public static void main(String[] args) { double mile,cost;…
Q: The following table shows the approximate speed of sound in air, water, and steel: Write a program…
A: formula: Time = Distance / 1,100 formula: Time = Distance / 4,900 formula: Time = Distance /…
Q: 1. Write a program that calculates the tax and tip of a restaurant bill for a patron with a cost of…
A: The C program code is given in next step with output screenshots
Q: flowchart of Many treadmills output the speed of the treadmill in miles per hour (mph) on the…
A: Since no programming language is mentioned, I am using c++ Algorithm: Start Read value in mph…
Q: 2.12 LAB: Driving costs Driving is expensive. Write a program with a car's gas mileage…
A: Code: def driving_cost(driven_miles, miles_per_gallon, dollars_per_gallon): return (driven_miles…
Q: Car sales commission problem - For each used car a salesperson sells, the commission paid is as…
A: As per our policy, we can answer only one question if want an answer for the second question you can…
Q: Use C++ Programming language. Amanda and Tyler opened a business that specializes in shipping…
A: C++ Program: #include <iostream> using namespace std; class cylinderType{ public: void…
Q: A software company sells a package that retails for $99. Quantity discounts are given according to…
A: question :- Program using C++ language without the use of logical operators (&&, || ,!) To…
Q: A software company sells a package that retails for $99. Quantity discounts are given according to…
A: A Python program is as follows, File name: “main.py” #Get number of units units=int(input("Enter the…
Q: Python Program-related question. So need the answer in python expressions. COSC 1336 –Programming…
A: # Take number of units purchased as input from usernum_units = int(input(" Enter the number of units…
Q: program that prompts the user to input two positive numbers A dividend and divisor
A: Introduction of Progam: This C++ program user enters two positive numbers as a dividend and divisor…
Q: A county collects property taxes on the assessment value of property, which is 60 percent of the…
A: Since no programming language is mentioned, I am using python. Algorithm: Start Read actual value…
Q: Design the flow diagram of a program that prints "Hi" on the screen as the sum of the digits of the…
A: Flow diagram : representation of the work flow is called as flow diagram.
Q: In Python 3.7.4 Write a program that will compute the total cost of an amazon purchase. The program…
A: ProgramSince two questions have been given and it is not clear the answer is sought for which…
Q: Problem Statement – Construct a program that exchanges coins for cash like Coinstar that is located…
A: As no programming language is mentioned, so I am using C++ to code. In step 2, you will the C++…
Q: Design and write a program that will tell the user how many days there are until Friday. Your…
A: As no programming language is mentioned it is solved using basic C++
Hi, I need to solve this problem with C++
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images
- A movie in a local theater is in great demand. To help a local charity, the theater owner has decided to donate a portion of the gross amount generated from the movie to the charity. This example designs and implements a program that prompts the user to input the movie name, adult ticket price, child ticket price, number of adult tickets sold, number of child tickets sold, and percentage of the gross amount to be donated to the charity. The output of the program is as follows: ** The input to the program consists of the movie name, adult ticket price, child ticket price, number of adult tickets sold, number of child tickets sold and percentage of the gross amount to be donated to the charity. Sample Input: Enter the movie name : Darna Enter the price of an adult ticket: 4.50 Enter the price of a child ticket : 3.00 Enter the number of adult tickets sold : 800 Enter the number of child tickets sold : 1850 Enter the percentage of donation : 10 Sample Output: Movie Name : Darna Number…(Statistics) This is the formula for the standard normal deviate, z, used in statistical applications: z=(X)/ X is a single value. refers to an average value. refers to a standard deviation. Using this formula, you need to write a program that calculates and displays the value of the standard normal deviate when X=85.3,=80,and=4. a. For this programming problem, how many outputs are required? b. How many inputs does this problem have? c. Determine a formula for converting input items into output items. d. Test the formula written for Exercise 7c, using the data given in the problem.Problem Statement – Construct a program that exchanges coins for cash like Coinstar that is located in several grocery stores. You will prompt the user to provide you with the total number of pennies, nickels, dimes, and quarters, respectively. You are to determine the total amount of money entered by the user and then output the cash, the calculated dollar amount and then the remaining coins that should be received. For example, if a user enters 50 pennies, 10 dimes, 10 nickels, and 5 quarters, then the user would receive 3 dollars and 1 quarter. Your program output should be as follows: void getData (….) // Prompt the user for the number of pennies, nickels, dimes, and quarters. void findDollarAmount (….) // calculate the total amount and return the dollar amount and change void printResult (….) // Print the dollar amount and the change returned. void printMenu ( ) // Print the menu explaining how the coin changer works Your program should have the following format…
- Problem Statement – Construct a program that exchanges coins for cash like Coinstar that is located in several grocery stores. You will prompt the user to provide you with the total number of pennies, nickels, dimes, and quarters, respectively. You are to determine the total amount of money entered by the user and then output the cash, the calculated dollar amount and then the remaining coins that should be received. For example, if a user enters 50 pennies, 10 dimes, 10 nickels, and 5 quarters, then the user would receive 3 dollars and 1 quarter. Your program output should be as follows: void getData (….) // Prompt the user for the number of pennies, nickels, dimes, and quarters. void findDollarAmount (….) // calculate the total amount and return the dollar amount and change void printResult (….) // Print the dollar amount and the change returned. void printMenu ( ) // Print the menu explaining how the coin changer works Your program should have the following format…C++ Programming Exercise: A real estate office handles, say, 50 apartment units. When the rent is, say, $600 per month, all the units are occupied. However, for each, say, $40 increase in rent, one unit becomes vacant. Moreover, each occupied unit requires an average of $27 per month for maintenance. How many units should be rented to maximize the profit? Write a program that prompts the user to enter: a. The total number of of units. b. The rent to occupy all the units. c. The increase in rent that results in a vacant unit. d. Amount to maintain a rented unit. The program then outputs the number of units to be rented to maximize the profit.Driving is expensive. Write a program with a car's miles/gallon and gas dollars/gallon (both doubles) as input, and output the gas cost for 10 miles, 50 miles, and 400 miles. Output each floating-point value with two digits after the decimal point, which can be achieved as follows:System.out.printf("%.2f", yourValue); Ex: If the input is: the output is: Note: Real per-mile cost would also include maintenance and depreciation.
- (C PROGRAMMING ONLY) 6. Deal or No Deal?by CodeChum Admin When I was a kid, I used to watch this TV game show, Deal or No Deal? In the game, there are different brief cases, each labeled with a number. Inside each brief case is an amount in Pesos and the goal is to guess which briefcase contains the smallest amount. In this program, instead of just finding the smallest amount, your task is to ask the user for an integer input and print the values in the array smaller than the inputted integer. Instructions: In the code editor, you are provided with an array with 100 elements.Your task is to ask the user for an integer input and then print all the elements in the array whose value is lesser than the inputted integer.Input 1. Inputted integer Output Enter value: 6132450351503022244Phyton In the United States, fuel efficiency for vehicles is normally expressed in miles-pergallon (MPG). In Canada, fuel efficiency is normally expressed in liters-per-hundred kilometers (L/100 km). Use your research skills to determine how to convert from MPG to L/100 km. Then create a program that reads a value from the user in American units and displays the equivalent fuel efficiency in Canadian unitspython solution please Task 1Description let's consider a case when you need a lot of coffee. Maybe you're hosting a party with a lot of guests! In these circumstances, it's better to make preparations in advance.So, we will ask a user to enter the desired amount of coffee, in cups. Given this, you can adjust the program by calculating how much water, coffee, and milk are necessary to make the specified amount of coffee.Of course, all this coffee is not needed right now, so at this stage, the coffee machine doesn't actually make any coffee yet. ObjectivesLet's break the task into several steps:First, read the numbers of coffee drinks from the input.Figure out how much of each ingredient the machine will need. Note that one cup of coffee made on this coffee machine contains 200 ml of water, 50 ml of milk, and 15 g of coffee beans.Output the required ingredient amounts back to the user. ExamplesThe greater-than symbol followed by space (> ) represents the user input. Notice that…
- Program Specifications. Write a program to calculate the cost of hosting three pizza parties on Friday, Saturday and Sunday. Read from input the number of people attending, the average number of slices per person and the cost of one pizza. Dollar values are output with two decimals. For example, printf("Cost: $%.2f", cost);Note: this program is designed for incremental development. Complete each step and submit for grading before starting the next step. Only a portion of tests pass after each step but confirm progress. Step 1 . Read from input the number of people (int), average slices per person (double) and cost of one pizza (double). Calculate the number of whole pizzas needed (8 slices per pizza). There will likely be leftovers for breakfast. Hint: Use the ceil() function found in the math library to round up to the nearest whole number and convert to an integer. Calculate and output the cost for all pizzas. Submit for grading to confirm 1 test passes.Ex: If the input is: 10 2.6…Change Return Program: (Write a python program for the following) The user enters a cost and then the amount of money given. The program will figure out the change and the number of twenty-dollar bills, ten-dollar bills, five-dollar bills, single-dollar bills, quarters, dimes, nickels, pennies needed for the change. You must have the maximum amount of higher denominations possible before allowing for lower denominations. For example, If your change is $18.88, You must have One Ten-dollar bill, One Five-dollar bill, Three singles, Three quarters, One dime and three pennies. There should be no nickels; No three Five-dollar bills etc.IN PYTHON PLEASE AND FLOWCHART DRAWING COMPUTERIZED PLEASE!! In many businesses across the country, people are buying food and goods using cash. Whenever a purchase is made with cash, it is usual that change must be back to the customer. Business point of sales software help to ensure that the correct change is return to a customer by providing detailed information of the change that should be returned to the customer. using the fewest number of bills and coins. In this assignment, you are asked to design and implement a program that writes out what bills (ones, fives, tens, twenties) and coins (pennies, nickels, dimes, and quarters) that should be returned to the customer given two inputs from the user: A total cost of a sale. The amount that was paid by the customer. Ensure that your output is grammatically correct. If the customer does not provide adequate payment, you should print the following statement, the program should end. Did not receive enough cash from the customer.…