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.
Q: Write a program that reads two pieces of information: the hourly wages and the number of hours…
A: step 1: ask for employee hourly wages step 2: ask for the number of hours worked step 3: calculate…
Q: Driving is expensive. Write a program with a car's miles/gallon and gas dollars/gallon (both…
A: Required: Required code with comments for explanation and screenshot of both code and output has…
Q: Write a program that calculates and prints the amount of wages due to an employee for a week's work.…
A: C++ program to calculate the amount of wages due to an employee for a week’s work. Prompt the user…
Q: Write a program to grade students based on scores out of 100 and also print a teacher comment. If…
A: I give the code in Python along with output and code screenshot
Q: Write a program that reads two pieces of information: the hourly wages and the number of hours…
A: Required: Write a python program to calculate the net salary based on given instructions. all the…
Q: The power of the microwave can be calculated as follows: Power=Work/Time Work is measured in joules…
A: code: #include<iostream> using namespace std; //main method int main() { //variable…
Q: Develop a program that calculates the final score and the average score for a student from his/her…
A: Main() Method : Declare variables for name, class test score, test score, assignment score, exam…
Q: Write a program that accepts as input the mass, in grams, and density, in grams per cubic…
A: Please find the answer below :
Q: riving is expensive. Write a program with a car's miles/gallon and gas dollars/gallon (both floats)…
A: Code: #include <stdio.h>double DrivingCost(double drivenMiles, double milesPerGallon, double…
Q: Write a program that prompts the capacity, in gallons, of an automobile fuel tank and the miles per…
A: Program: //include the header file #include <iostream> using namespace std; //definition of…
Q: "Write a program that computes the amount of calories burned when you run. Your program should ask…
A: Algorithm: 1. Take input as duration,speed,weight. 2. Initialize MET to 0. 3. Make MET=8 if speed is…
Q: Suppose that the tuition for a university is $10,000 this year and increases 5% every year. Write a…
A: NOTE: SINCE THE LANGUAGE IS NOT MENTIONED, I HAVE USED JAVA FOR THE SOLUTION. Define Main class.…
Q: 3. Write a program that takes a bank account balance and an interest rate as an input. And then…
A: #include<stdio.h>int main(){ int initialBalance; float interestRate; int…
Q: Write a program that reads a non-negative number n from the standard input and prints the value of…
A: Algorithm Initialize a variable "a" and please check about special case i.e. for 0 and 1. Run a…
Q: If you know that the student's name is represented by Nam$ and M represents the student's grade in a…
A: below is the java code for above problem.
Q: 3. Write a program that takes a bank account balance and an interest rate as an input. And then…
A: Solution : Solving above question in c++ please see to it ... Code :: .…
Q: Write a program to take orders for a computer shop and print a bill. Your program asks for the…
A: **THIS CODE IS WRITTEN IN PYTHON SINCE NO PROGRAMMING LANGUAGE WAS MENTIONED. #input values item…
Q: Write a program that calculates the electricity bill. The rates of electricity per unit are as…
A: Introduction of program In this program, we will give input on Electricity Unit Consumed. Charges…
Q: Suppose that the rent for an apartment is $1000 this year and increases 3% every year. Write a…
A: Summary: In this question, we have been given one statement and we have to code it. We have given…
Q: Write a program to calculate the electricity bill. The rates of electricity per unit are as follow:…
A: PROGRAM CODE: #include <iostream> // include header file for input output…
Q: Write a program that computes the amount of calories burned when you run. Your program should ask…
A: Hi there, Please find your solution below, I hope you would find my solution useful and helpful.…
Q: Write a program with total change amount as an integer input, and output the change using the fewest…
A: Lets see the solution.
Q: Write a program that input miles from the user and convert miles into kilometres. One mile is equal…
A: Data types in C++: Some of the basic datatypes of C++ are: int float double char wchar_t bool void
Q: Write a program with total change amount in pennies as an integer input, and output the change using…
A: Introduction of Program In this C++ program, the change will be calculated as given below 1 dollar =…
Q: Write a program that takes your full name as input and displays the abbreviations of the first and…
A: 1- Note: Since you have not provided the language to write the code so I am using java language to…
Q: Write a program that recommends the number of calories a person should eat each day. Calories are…
A: Program to find the calories required for a person in a day. Recommend the required calories based…
Q: Write a program that converts minutes to days, hours and minutes. The program output should be as…
A: Algorithm: Start Initialise min, d, h, m print input minutes Read the value of minutes d =…
Q: Write a program that reads from the user the initial Kilometers of the car, the current Kilometers…
A: Java program for the above fuel consumption problem is given below in step 2.
Q: Can someone help me answer this in Coral programming language? 1) The year must be divisible by 4…
A: Answer :
Q: Write a program that reads the marks of a student in the test (te), midterm (mid), assignment…
A: Code: #include<stdio.h> int main(){ int tm,mid,assig,fe,pm; printf("Enter…
Q: You are working for a lumber company, and your employer would like a program that calculates the…
A: Since you are not specifying any language for implementation, I am using C++. Program #include…
Q: Write a program that, given the time duration of a task in the number of hours, minutes, and…
A: I have provided c++ code in step2
Q: Write a program which input radius of circle and compute area of it. Then input the length of side…
A: EXPLANATION - Create a program . Declare three variable radius , length , area1 , area2 . Take…
Q: Write a program that exchanges the value of x and y. The output must be: the value of variable y and…
A: Swapping to number using C program #include<stdio.h> int main() { int x, y, temp=0;…
Q: Write a program that converts a time from 24-hour notation to 12-hour notation. The following is a…
A: //C++ program #include <iostream> using namespace std; int main(){ int h,m;…
Q: WRITE A PROGRAM TO CALCULATRE THE AREA OF A RECTANGLE OF LENGTH =5 CM AND BREADTH=8CM. CALCULATE THE…
A: Hey, thank you for your question. There are multiple subparts submitted to your question. As per our…
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: (B) Write a program that reads from the user the values of x and h to implement the equation below.…
A: Code: #include <iostream>#include<cmath>using namespace std;int main(){ //declaring…
Q: Write a program that takes in a positive integer as input representing the number of employees, then…
A: We plan to use a Language Understanding container for an application that we previously exported. We…
Q: Write the reading program: basic salary (bsalary) and sales (sales), then calculate and print the…
A: C++ program is given below
Q: Write a program that computes the monthly net pay of the employee for a steel factory. The input for…
A: Employee’s gross salary is calculated by following formula , datatype and variables:Variables:rop=…
Q: Write a program that takes your full name as input and displays the abbreviations of the first and…
A: Note: Programming Language not specified using C++ to implement code: //include the necessary…
Q: C++) Write a program with total change amount as an integer input, and output the change using the…
A: /*Write a program with total change amount as an integer input that outputs the change using the…
Q: In your chosen language, write a program that reads from stdin, and then writes that entire input to…
A: Since you are not mentioning the programming language, here we are using C++ to complete the…
Q: Write a program that converts an input inch(es) into its equivalent centimeters.
A: here in this question we have asked to write a program that convert inches to centimeter.
Q: Write a program that requests the floating number of hours a person works in a given week and the…
A: wagePerHour=float(input("Enter hourly wage: ")); #input wage per…
Driving is expensive. Write a
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images
- 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:Write a program with total change amount in pennies 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 the output is: No change Ex: If the input is: 45 the output is: 1 Quarter 2 DimesWrite a program with total change amount (in cents) 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. Hint: Start from the largest denomination. Divide the change amount by the number of cents in the denomination to get the number of coins used. The remainder of the division is used to find the number of coins used in the next denomination. Ex: value // 100 gives the number of dollars used. The remainder is divided by 25 to find the number of quarters used. 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 Dimes
- Write a program that computes the rent in five years and the total rent for one year starting five years from nowWrite a program using inputs age (years), weight (pounds), heart rate (beats per minute), and time (minutes), respectively. Output calories burned for women and men.Write a program that will Input the name , position of the employee , Input the rate per hour, hours worked. Compute the Gross pay for an employee.
- 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: intdollar, quarters, dimes, nickels, pennies; printf("Enter due amount: ");scanf("%d", &due); printf("Enter paid amount: ");scanf("%d", &amount); change(amount - due, &dollar, &quarters, &dimes, &nickels, &pennies); printf("Dollars: %d\n", dollar);printf("Quarters: %d\n", quarters);printf("Dimes: %d\n", dimes);printf("Nickels: %d\n", nickels);printf("Pennies: %d\n", pennies);return0;} //function definationvoid change(int amount, int *dollar, int *quarters, int *dimes, int *nickels, int *pennies){*dollar = amount / 100;amount = amount % 100;*quarters = amount / 25;amount = amount % 25;*dimes = amount / 10;amount = amount % 10;*nickels = amount / 5;amount = amount…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 Dimes ''' Type your code here. '''(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
- Write a program that takes your full name as input and displays the abbreviations ofthe first and middle names except the last name which is displayed as it is. Forexample, if your name is Robert Brett Roser, then the output should beR.B.Roser.Write a program that takes a bank account balance and an interest rate as an input. And then outputs the value of the account in 5 years. The output should show the value of the account for two different methods of compounding interest: annually and monthly. When compounded annually, the interest is added once per year at the end of the year. When compounded monthly the interest is added in 12 times per year. On annual interest, you can assume that the interest is posted exactly one year from the date of deposit. In other words, you do not have to worry about interest being posted on a specific day of the year, like December 31. Similarly, you can assume monthly interest is posted exactly one month after. Since the account earns interest on the interest, the account should have a higher balance when interest is posted more frequently. Be sure to adjust the interest rate for the time period of the interest. If the rate is 5%, then when posting monthly interest, you use (5/12%). Do your…Write a program that asks the user how many credit units they have taken. If they have taken 23 or less, print that the student is a freshman. If they have taken between 24 and 53, print that they are a sophomore. The range for juniors is 54 to 83, and for seniors it is 84 and over.