Write a program that lets the user enter the loan amount and loan period in number of years and displays the monthly and total payments for each interest rate starting from 5% to 8%, with an increment of 1/8.
Q: There are three seating categories at a stadium . For a softball game, Class A seats cost$15, Class…
A: Code: # include <iostream> #include <iomanip> using namespace std; int main() // main…
Q: Write a program that asks the user for the number of adult and the number of child movie tickets…
A: Answer :- #include <iostream> #include <iomanip> using namespace std; int main() {…
Q: Write a program for The Carefree Resort named ResortPrices that prompts the user to enter the number…
A: C# is a general purpose multi-paradigm programming language developed and used by Microsoft. It…
Q: Write a program that displays the differences between the first and last, the second and next to…
A: Program description: n is the user input integer variable that stores the number of elements in the…
Q: Write a program that prompts the user to enter an uppercase letter and converts it to a lowercase…
A: Program plan: Take input in uppercase add 32 to in ( ascii code) print character
Q: Write a program that allows the user to enter number 1- 3 and designate it with the following…
A: Algorithm is the step by step process and the flow chart represents the diagramatic flow of the…
Q: Write a program that reads from a student his/her name and his/her ID which is formed of 8 digits.…
A: The solution to the given problem is below. **Note: As programing language is not mentioned in the…
Q: Build a program to input student grade by Text1 and print (A or B or C) by the following conditions:…
A: Dim x as integerPrivate sub command1_click()x= val (text1.text)If x<= 100 And x>=80 then…
Q: Write a program that allows the user to input his/her name, gender, height (m) and weight (kg). Then…
A: C Program #include<stdio.h>int main(){ char name[50],s[20]; float weight,height,bmi;…
Q: Write a program that will display "IT'S COLD!" if the temperature is less than 20, "IT'S HOI" if the…
A: #include <iostream> using namespace std; int main(){ float t; cout<<"Computing the…
Q: In [ ]: # write a program to accept a number from the user, # print "Play basketballL" if the number…
A: PROGRAM CODE: n = int(input("Enter the number: ")) // take number from the userif n<=15:…
Q: Write a program that reads in an investment amount, the annual interest rate, and the number of…
A: PROGRAM CODE: import java.util.Scanner; public class Main { public static void main(String[] args) {…
Q: Write a program to calculate the estimated engine horsepower of a car based on the weight of the car…
A: As no programming language is mentioned, it is solved using basic C++
Q: Write a program that prompts the user to enter the year and the first three letters of a month name…
A: CODE TO COPY:- month_lst = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug',…
Q: Write a program that determines a student's grade. The program will read three types of scores…
A: The program is written in C++ Language. Check the program screenshot for the correct indentation.…
Q: a) Write a program that begins by reading a radius, r from the user. The program will continue by…
A: TO FIND AREA AND VOLUME OF THE CIRCLE
Q: Write a program that asks for the principal, the annual interest rate, and the number of times the…
A: Hello student. Greetings Hope you are doing great. As you have not mentioned any particular…
Q: Write an application that allows a user to enter any number of student quiz scores, as integers,…
A: Introduction of the Program: This C++ program takes score from the user and if scores are between…
Q: Write a program which asks for user's age and prints a statement whether the user can vote in US…
A: As programming language is not mentioned, we are providing answer in C++ language.
Q: Write a program that calculate electricity bill. The program prompts the user to enter the amount of…
A: As there is no programming language mentioned program is attempted in python langugae. user has to…
Q: Write a program that asks the user for a number in the range of 1 through 7. The program should…
A: def main(): # Get the number for the day of the week. day = int(input('Enter a number (1-7)…
Q: program so that the user enters the rate of tuition increase for the first year. the rate then…
A: C++ used to answer this question
Q: A customer in a store is purchasing five items. Write a program that asks for the price of each…
A:
Q: Write a program that asks the user to enter an amount of money in the format of dollars and…
A: Program: quarters = 0 dimes = 0 nickels = 0 pennys = 0 print("Please enter aomunt in the…
Q: Write a program that asks for the user’s name and then the program will output the last 4 characters…
A: Note : Since the programming language is not mentioned , I have used C++ language Algorithm : 1 :…
Q: Question 1 Write a program that asks the user to enter the number of passengers in an airplane and…
A: "Since you have not mention any programming language, so will write our program in C language." C…
Q: Write a program that display the letter grade (A if number bigger than 90, B if number bigger than…
A: Here, I am going to write a python program to print the grade when a user enters the number.
Q: Write a program that computes and interprets the Body Mass Index (BMI). The program prompts the user…
A: Start Input weight in pounds Input height in inches Convert weight to kilograms Convert height to…
Q: write a program that prompts the user to enter 10 names. each with a minimum of 30 characters.…
A: Program: //include the essential header files #include<iostream> using namespace std;…
Q: Write a program that helps a company manage salaries of its employees. Your program should ask for…
A: EXPLANATION - A program is created . On program three variables are declared one for hours worked…
Q: Write a program that asks the user to enter the three sides (a, b and c) of a triangle as double…
A: Since no programming language was mentioned in the question, I have used C language to solve.
Q: Write a program that asks the user for a number in the range of 1 through 7. The program should…
A: In c language: #include <stdio.h> int main() { int n; printf("enter any number between 1…
Q: Create a program that prompts the user for an amount less than 100 and then displays the minimum…
A: As you have not specified the programming language, we solved this question using python programming…
Q: Write a program that calculates the future value of an investment at a given interest rate for a…
A:
Q: Write a program that converts pounds into kilograms. The program prompts the user to enter a value…
A: Lets see the solution.
Q: Write a program that prompts the user to enter an integer and determines whether it is divisible by…
A: Since there is no programming language, below is the program in python.
Q: BMI Calculation
A: Program: // C++ Version 14#include <iostream>#include <cmath>using namespace std;//…
Q: Write a program that prompts the user to enter 10 names, each with maximum of 30 characters. Output…
A: The program defines an array called name of type string which have size 10. A for loop is used to…
Q: Write a program that calculate electricity bill. The program prompts the user to enter the amount of…
A: C program #include <stdio.h>int main(){ int un; float amt; /* Input units consumed…
Q: Write a program that prompt the user to enter the number of students and each student's score, and…
A: #include <iostream>using namespace std; struct student{ char name[50]; float marks;}…
Q: Write a program that prompts the user to enter the exchange rate from currency in U.S. dollars to…
A: Write a program that prompts the user to enter the exchange rate from currency in U.S. dollars to…
Q: Write a program that prompts the user to enter the name, the number of children, and the basic…
A: Since programming language not mentioned using Python CODE: # cook your dish herename=input("Enter…
Q: Write a program that prompts the user to enter the month and year and displays the number of days in…
A: February has 28 days in non-leap years and has 29 days in leap years
Q: Write a program that calculates the future value of an investment at a given interest rate for a…
A: from tkinter import *master = Tk()master.geometry("250x150")master.title("Investment…
Q: • Write a program that computes the average of 5 students grades which are entered by the user.…
A: Please find the answer below :
Q: 7) Write a program that asks the user the number of hours an employee worked and his hourly wage,…
A: code:-- #include <iostream>using namespace std; int main(){ // to store the total_hour and…
Q: C# Write a program for The Carefree Resort named ResortPrices that prompts the user to enter the…
A: Algorithm: Start Read enter the number of days for a resort stay n If n==1 or n==2,calculate cost…
Q: Mr. Allan is a salesman and travels around UAE to check the different stores from Sunday to…
A: Please find the answer below :
Q: Q1:\Write a program to check the temperature of a person and print the status in textbox.…
A: Since you didn't mention any specific program language, to check the temperature of a person and…
Write a
Trending now
This is a popular solution!
Step by step
Solved in 2 steps
- Software SalesA software company sells a package that retails for $99. Quantity discounts are given accordingto the following table:Quantity Discount10–19 10%20–49 20%50–99 30%100 or more 40%Write a program that asks the user to enter the number of packages purchased. The programshould then display he number of packages purchased, the amount of the discount (if any) and the total amount of the purchase after the discount.// A standard mortgage is paid monthly over 30 years. // This program is intended to display 360 payment coupons // for a new borrower. Each coupon lists the month number, // year number, and a friendly mailing reminder. start num MONTHS = 12 num YEARS = 30 string MSG = "Remember to allow 5 days for mailing" num monthCounter = 0 num yearCounter = 30 while yearCounter <= YEARS while monthCounter <= MONTHS output monthCounter, yearCounter, MSG endwhile endwhile stop housekeeping() print "Enter account number or ", QUIT, " to quit " return printCoupons() while yearCounter <= YEARS while monthCounter <= MONTHS print acctNum, monthCounter, yearCounter, MSG monthCounter = monthCounter + 1 endwhile yearCounter = yearCounter + 1 endwhile output "Enter account number or ", QUIT, " to quit " input acctNum return finish() output "End of job" returnThe company discounted used cars pays their employees according to this chart: 250$ per months plus 50$ per car sold. If the salesman sells more than 10 cars, the employee receives a bonus of 5% of the total of his sales, in addition to his regular salary.Each month, the owner sits in front of the computer, and enters the following information: The name of the employee, the number of cars sold, as well as the total of all the sales for the month. algorithm that will calculate the salary of an employee for the month, and then display on the screen, his name, total cars sold, base salary, bonus if applicable and entire salary
- Compute the income tax due on taxable income entered by the user, given the data as shown in the following table. Be sure to include error checking to make sure the user does not enter a negative number. Assume all entries are integer values. Taxable Income Tax Due From To $0 $49,999 $0 + 5% of amount over $0 $50,000 $99,999 $2,500 +7% of amount over $50,000 $100,000 $6,000 + 9% of amount over $100,000 (Provide the following: Pseudocode; Flowchart) Dago 2 of 5LAB ASSIGNMENTS, CONT. How many years are in your rainfall sample? 2 Rainfall info for year #1: Enter rain for month # 1: 2 Enter rain for month # 2: 2 Enter rain for month # 3: 2 avg_rainfall.py: Write a program that collects rainfall data and calculates the average rainfall for a user-defined number of years. Enter rain for month # 4: 2 Enter rain for month # 5: 2 Enter rain for month # 6: 2 Enter rain for month # 7: 2 Ask the user for the number of years in their study - use a small number to test, like 2, because you have to collect 12 months of data for each year! Enter rain for month # 8: 2 Enter rain for month # 9: 2 Enter rain for month #10: 2 Enter rain for month #11: 2 Enter rain for month #12: 2 Total rain in inches for year #1 = 24.0 Year #1 Monthly Avg Rainfall = 2.00 Rainfall info for year #2: The outer loop will run once for each year (hint: use range function). Enter rain for month # 1: 1 The inner loop will run once for each of 12 months, and ask the user for a…Design an application that accepts 10 numbers and displays them in descending order.
- ! 1000$ by default, but discounts are applied to it based on different criteria. 1- Students get 20% discount. 2- People who purchase in 30 days in advance get 25% discount. 3- student purchasing 40 days in advance gets a 40% discount. This code segment calculates the final price. x = Text1.Text If x= "student" Then 1-... ElseIf x= "advance" Then price 1000 - 0.25 * 1000 ElseIf x= "stu_adv" Then price 1000 - 0.4 * 1000 2-...... price = 1000 3-..... 4-.. O = 1-price = 1000 - 0.2 * 1000 2-Else 3- End If 4-Print price 1-price 1000 - 0.2 * 1000 2-Else 3- Print price 4-End If 1-price = 3-End If 4-Print price = 1000 -0.2 * 1000 2-ElseifInput a value for the variable y so that the variable x becomes 4 after the code executes. favorite_numbers = y favorite_numbers.remove(-1) x = len(favorite_numbers)A software company sells a package that retails for $99. Quantity discounts are given according to the following table: Quantity Discount 10 – 19 10% 20 – 49 20% 50 – 99 30% 100 or more 40% Write a program that asks the user to enter the number of packages purchased. The program should then display the full retail price before any discount, the amount of the discount (if any), and the total amount of the purchase after any discount. Do not allow numbers less than 0.
- Python Programming Only Please Write a program that calculates the amount of money a person would earn over a periodof time if his or her salary is one penny the first day, two pennies the second day, andcontinues to double each day. The program should ask the user for the number of days.Display a table showing what the salary was for each day, then show the total pay at theend of the period. The output should be displayed in a dollar amount, not the number ofpennies.Payment = Principal [rate ((1 + rate)months)] [(rate + 1)months - 1] For the formula to compute monthly payment, see Listing 2.9, ComputeLoan.java. (Financial application: loan amortization schedule) The monthly payment for a given loan pays the principal and the interest. The monthly interest is computed by multiplying the monthly interest rate and the balance (the remaining princi- pal). The principal paid for the month is therefore the monthly payment minus the monthly interest. Write a program that lets the user enter the loan amountC# Account numbers sometimes contain a check digit that is the result of a mathematical calculation. The inclusion of the digit in an account number helps ascertain whether the number is a valid one. Write an application named CheckDigit that asks a user to enter a four-digit account number and determines whether it is a valid number. The number is valid if the fourth digit is the remainder when the number represented by the first three digits of the four-digit number is divided by 7. For example, 7770 is valid, because 0 is the remainder when 777 is divided by 7. If the account number is valid, output The account number is valid. If the account number is invalid output Invalid. If the account number is too short or too long output Account number invalid - it must have 4 digits.