Write a program that computes the rent in five years and the total rent for one year starting five years from now
Q: Write a program that calculates the change due a customer by denomination; that is, how many…
A: Answer is given below .
Q: Write a program that accepts a date in the form month/day/year and out- puts whether or not the date…
A: Algorithm: Check if the month, day, and year can be converted to ints Check if values are in…
Q: Write a program that finds a number positive or
A: We need to read in a number and call the function to check a number is positive or not.
Q: Write a program that computes the cost of the postage on first-class mail according to the following…
A: Algorithm for calculating the cost of the delivery of the mail:Step1: Declare…
Q: Write a program that will compute for the salesman's commission based from his total sales for the…
A: As no programming language is mentioned, it is solved using basic C++
Q: Write a program that will check and print if the person is a regular passenger, student or senior…
A: Program Code: #include<stdio.h>#include<conio.h>main(){ int ch,fare; printf("If you are…
Q: Write a program that computes and assesse the tuition fee of the students in one semester, based on…
A: Algorithm: 1. Start. 2. Read the tuition fee as tuition_fee. 3. Read payment mode (Press (1) - Cash,…
Q: Write a program to read a number representing the time in 24-hours (i.e., 4-digits ). Then find the…
A: Modulo(%) operator: The modulo operator (%) also called a remainder operator which is used to get…
Q: write a program in VB that requires from user to insert the total number of students and the number…
A: ' Program that reads total student and successful student and calculate' and display percentage of…
Q: Write a program that shows that the square of the normal is χ2
A: Given To know about the programming and program of square of number.
Q: Write a program that asks the user for a number of seconds and prints out how many minutes and…
A: Program: To asks the user for a number of seconds and print as minutes and seconds format.…
Q: Write a program that reads in the radius and length of a cylinder and computes the area and volume…
A: Given: Write a program that reads in the radius and length of a cylinder and computes the area and…
Q: Write a program that accepts an object's mass (in kilograms) and velocity (in meters per second) as…
A: Note:- please mention programming language name from next time. This is written in c++. Logic:-…
Q: write a program that reads the height in centimeters and then converts the height to feet and…
A: NOTE: As the programming language is not mentioned in the question. So, we have solved this question…
Q: Write a program that sum up all prime numbers within the range of 0 and 1000.
A: Sample Response: #Python3 program to find teh sum of all prime numbers between 0 and 1000def…
Q: Write a program with total change amount as an integer input, and output the change using the fewest…
A: void change(int amount, int *dollar, int *quarters, int *dimes, int *nickels, int *pennies) {…
Q: Write a program that reads the employe name and base salary and then calculat
A: #include <iostream>using namespace std; int main(){ int base_salary; string name; // input…
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 that will accept the following details: a. Name b. Course c. Year d. Grades at least…
A: Following program is written in C++ langiage. Step2 has the code snippet with detailed explanation…
Q: Write a program that will compute for the saleman's commission based from his total sales for the…
A: #include <stdio.h> int main(){ long int n,a; printf("\nEnter the Total…
Q: Write a program to read temperature in centigrade and determine whether it is Freezing weather or…
A: As no programming language is mentioned, it is solved using basic C++
Q: Write a program that checks to see if the user won the lottery. Assume the winning lottery numbers…
A: Since no programming language is mentioned, I am using python. Algorithm: Start Store the given…
Q: Write a program that will compute for the saleman's commission based from his total sales for the…
A: Program code: #include <stdio.h> int main(){ long int n,a; printf("\nEnter the Total…
Q: Write a program which takes the user's age in years and convert it into months. 1 Year= 12 Months %D
A: Algorithm: Step1: Declare variables, Nofmonths & years to store values. Step2: Receive the user…
Q: Write a program that inputs two positive integers of, at most, 20 digits and outputs the sum of the…
A: Actually, program is a executable software that runs on a computer.
Q: Write a program that prints a grocery receipt of items purchased.
A: The Given program is to print a grocery receipt
Q: Write a program that reads in a series of integer numbers, and determines how many positive odd…
A: Since the programming language is not mentioned, so we'll do it in python. The programming…
Q: Write a python program that takes a sale amount as an input and print the discount percentage given…
A: Algorithm Start Var amt, discount Input amt from user If (amt>=10 AND amt<90 )…
Q: Write a program that will count the number of votes for each candidate, show the total number of…
A: Use an array to store the votes for each candidate and keep on voting till user wish to quit
Q: Write a program that works out whether if a given year is a leap year. A normal year has 365 days,…
A: As no programming language is mentioned, it is solved using basic C++
Q: • Write a program that computes the average of 5 students grades which are entered by the user.
A: According to the guidelines we are supposed to answer only 1 question. So I am solving the first…
Q: Write a program that gives a discount of 100 pesos to a customer if the shirt bought is XL and the…
A: Take input from user for size and prize Than using conditional if statements check the prize and…
Q: Write a program that prompts the user to enter the number of items and each item’s name and price,…
A: Note: As programming language is not mentioned. So used Python to complete the task. Program: #…
Q: Write a python program that asks the user how many credits they have taken. If they have taken 23 or…
A: Python program Prompt the user to enter the credits they have taken. Store the user entered…
Q: if total sales is Commission is above 0 but below 10,000 2% of total…
A: Note: Since you have not provided the language to write the code so I am using java language to…
Q: Write a program to read two integers, then test if the two numbers are divisible by (5,6) at the…
A: Write a program to input two numbers and check if both are divisible by 5 and 6 at the same time
Q: Write a program that reads the price and the production date(month and year of an item) then prints…
A: % read price and production price = input('Enter price'); production_month = input('Enter production…
Q: Write a program that prompts the capacity, in gallons, of an automobile fuel tank and the miles per…
A: Note: In this question the coding language is not specified then we are doing this question in the…
Q: Write a program that prints student's name and grade point average in 6 subjects a
A: C++ programming language has been used. C++ code is as follows: #include<iostream>using…
Q: . Write a program that computes the theoretical flame temperature when a mixture of methane,…
A: This program provided below calculates flame theoretical temperature when a mixture of methane,…
Q: Write a program which calculate the date that 20 days after now then show the result.
A: C# DateTime.Now creates an instance of the current date. The AddDays method on DateTime will allow…
Q: Write a program that can be used to compute the average exam grade for multiple students. Each…
A: You have not specified any particular programming language so, I have provided a python code…
Q: Write a program that calculates the cost per square inch of a circular pizza,given its diameter and…
A: We need to find the per square inch of any circular pizza where diameter and price of pizza will be…
Q: Write a program that reads the 10 student grades () from keyboard and calculates the class average.
A: Code in python programming language #Program to read grades of 10 students from teh keyboard and…
Q: Write a program that computes the rent in five years and the total rent for one year starting five…
A: Input Rent for a month and Calculate Rent for 5 years and also display rent per year
Q: Write a program that asks the number of students and then asks to enter the student's mark and then…
A: As the programming language is not mentioned, we are using PYTHON here The code and output…
Q: Write a program that enters the time of a phone call in seconds. If the duration of the call is a…
A: Solution: Include necessary header files In the main method declare the variable time and balance…
Write a
Step by step
Solved in 3 steps with 2 images
- 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.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 that reads the height in centimeters and then converts the height to feet and inches.
- Write a program that takes in a year and you need to determines whether that year is a leap year..Write a program that calculates the cost per square inch of a circular pizza,given its diameter and price. The formula for area is A = 1rr2•Write a program that prompts the capacity, in gallons, of an automobile fuel tank and the miles per gallon theautomobile can be driven without refueling.
- Using Paython Write a program that asks a student for his grade (out of 100) in 3 exams and then print out his final grade (out of 100), given that the weight of the first exam is 30%, the second 30%, and the third 40%.Example Input:Exam1: 70Exam2: 80Exam3: 90Example Output:Total Grade = 81Explanation: 0.3 * 70 + 0.3 * 80 + 0.4 * 90 = 81Suppose that the rent for an apartment is $1000 this year and increases 3% every year. Write a program that computes the rent in five years and the total rent for one year starting five years from nowWrite a program that inputs a number and checks whether it is a perfect number or not. A perfect number is the number that is numerically equal to the sum of its divisors. For example, 6 is a perfect number because the divisors of 6 are 1, 2, 3 and 1+2+3=6
- Write a program that checks to see if the user won the lottery. Assume the winning lottery numbers are 8, 13, 27, 53, and 54. Ask the user for five numbers and compare those numbers to the winning numbers to determine how many matches the user got. In a lottery, the order of the numbers doesn't matter.Write a program that calculates the change due a customer by denomination; that is, how many pennies, nickels, dimes, etc. are needed in change. The input is to be the purchase price and the size of the bill tendered by the customer ($100, $50, $20, $10, $5, $1)Write a program that given an amount of change less than $1.00 will print out exactly how many quarters, dimes, nickels, and pennies will be needed to efficiently make that change. [Hint: the // operator may be useful.]