An authority requires a deposit on a car loan according to the following schedule: Loan$ Less than $5000 Less than $10000 Less than $20000 Deposit 10% of loan value 100+ 5% of loan value $400+ 3% of loan value Loans in excess of $20000 are not allowed. Write a complete program that will read a loan amount and compute and print the required deposit. You have to use Clanguage
Q: Write a program that will check the employees years in service and office. • The user will input…
A: For writing the above code, we have used c++ language. Coding in the c++ is easy and efficient. It…
Q: Write a program to ask the user to: 1. Enter the number of courses taken. 2. Enter the total mark…
A: Program Approach: Create an integer array to store marks entered by user. Create variable n to…
Q: program Credit Card Validator - Takes in a credit card number from a common credit card vendor…
A: program in C++
Q: A person buys a product from XYZ shop. you have to input quantity of a product and price of one…
A: Pseudo-code: Pseudo-code is a writing up of the machine instructions in an informal and…
Q: Mobile Service Provider Write a flowgorithm program that will calculate a person’s mobile phone…
A: Please find the answer in the following steps. Flowchart: => It is a picture of the separate…
Q: The statement cout << "a = 5;"; is a typical example of an assignment statement: Select one: O True,…
A: Please find the answer below :
Q: his is a program written in C programming language. The wrong this is that this must be an…
A: Here we have to make use of loops to iterate till both strings match so that we can input password…
Q: After all loan information is input, the program should output the loans in the following format:…
A: Note: Programming language is not mentioned so I am doing in C++ In this question, we are asked to…
Q: At a certain university, students have to submit their exams online. The administration decides that…
A: init = int(input("Enter your initial grade: ")) t_loss = int(input("Enter the late submission time…
Q: Write a program that asks for the name of a pole vaulter and the dates and vault heights (in meters)…
A: Lets see the solution.
Q: The first balance is accidentally adding the interest before it can actually accumulate it. It…
A: 1. first calculate interest 2. then print the starting balance 3. then print the starting balance…
Q: def is_even (number) : return number % 2 == 0 def is_adult (age): return age >= 18 After these…
A: The given code: john = 19 terry = 18 def is_even (number): return number % 2 def is_adult (age):…
Q: If you know that the Tax office takes a tax for the imported goods according to their degrees as…
A: Find Your Code Below
Q: When students apply for a summer camp during vacation, the applications should be checked for heir…
A: Algorithm Start Var age, height Accept age as input Accept height as input if(age>15 and…
Q: A software company sells a package that retails for $99. Quantity discounts are given according to…
A: Find the total cost by multiplying quantity and price Check the quantity and based on condition…
Q: Following is a problem statement. Which of the below is the correct trace table for the problem…
A: Given: The cellular company charges for the first three minutes:- 50 cents per minute And the…
Q: An Internet service provider has three different subscription packages for its customers: Package A:…
A: import java.util.*; public class InternetServiceProvider { public static void main(String[] args) {…
Q: code
A: Introduction Java is basically a type of programming language that is very much beneficial and can…
Q: Question 1 Write a python program that takes an option from the user and based on the option read wo…
A: Answer: Here is the code: #…
Q: def is_even (number): return number % 2 == 0 def is_adult (age): return age >= 18 After these…
A: The expressions which evaluate to false are
Q: n this python program, please create a flowchart. Source Code: pctr=0 price=['1','2', '3', '4',…
A: Solution: Given, Source Code: pctr=0 price=['1','2', '3', '4', '5', '6', '7', '8','9','0']…
Q: When a fatal error has occurred and been trapped by the except clause, you can use sys.exit() to end…
A: function to exist the code if some fatal error occur and trapped by exception
Q: B See Balance //prints current balance D Make Deposit //get deposit amount from user and adds…
A: The program should ask the user to enter the balance: 4 choices: balance, deposit, withdrawal, Exit…
Q: write a program in Python that will prompt user to enter a score for a test that was out of 100.
A: Approach Input score. Check if score>100 then Print "Invalid value entered." Else if…
Q: 1. Write a program which calculates the monthly Budget of a person. The program will read the…
A: Sample Response: //Java menu-deriven program that cacluates the different monthly bills according to…
Q: A java program that works out the charges for the month. The program should accept the following on…
A: //import the required package import java.util.Scanner; //Definition of the main class public class…
Q: Any integer that is not zero is considered to implicitly convert to false when used in a condition,…
A: answer
Q: C# Use the script below and finish the program which should do the following: After RUN the program…
A: C used to answer this question
Q: A new bank has been established for children between the ages of 12 and 18. For the purposes of this…
A: Here our task is to write pseudocode for an ATM system. It is said that in the question, The ATM is…
Q: The sys.exit() function should always be considered a last resort, when you have no other choice but…
A: sys.exit() function is used to exit from the code. It is good to use compared to quit and this is…
Q: An International Internet phone company has three different subscription packages for its…
A: Given: To write a program that calculates a customer’s monthly bill. It should input the customer…
Q: Code should be in Python, please (1) Prompt the user to input a food item name, price, and…
A: CODE IN PYTHON:- itemName = input("Enter food item name: ")itemPrice = float(input("Enter item…
Q: Question Write a python program that takes a sale amount as an input and print the discount…
A: Here I have first of all asked the user for the sale amount and stored it into a variable. Then I…
Q: // format and display output Number Format number = Number Format.getNumber Inst…
A: The completed code is below:
Q: 1-) Ask user's name and keep it in name variable. 2-) Get a midterm grade from.user(0-100). 3-) Get…
A: The Program in C++ :
Q: Please program in C++
A: Note: As per our guidelines we are supposed to answer only one question. Kindly repost other…
Q: At a certain university, students have to submit their exams online. The administration decides that…
A: Algorithm: Start READ InitialGrade IF InitialGrade<0 AND InitialGrade>100: PRINT "Grades…
Q: Calculate the wages of an employee by engaging the user with the input command to enter their hourly…
A: Below is the required code in MATLAB to calculate the wages of an employee:
Q: A sales event at Trader Jane's is reducing some items by 25%. Store that value to a properly named…
A: Introduction of Program The C++ Program provided with the Reducing Offer and the Sales Tax values of…
Q: Given a pH value, return whether that value is 'alkaline', 'acidic', or 'neutral'. Return…
A: pH = int(input("Enter the pH value: ")) # taking pH value from user if pH < 0 or pH > 14:…
Q: The marks obtained by a student in 5 different subjects are input by the user. The student gets a…
A: Objective: This program reads the marks obtained by a student in 5 different subjects. The division…
Q: program Credit Card Validator - Takes in a credit card number from a common credit card vendor…
A: Here, I add 2 program for credit card validator. may be this is helpful for you. #include…
Q: Digi offer three different subscription packages for its customers: Package A: For RM10 per month,…
A: - The question is to code the provided billing statement in C++.
Q: The user must be able to enter the information for a number of bookings from the keyboard. Ask…
A: Step 1:- Given:- The user must be able to enter the information for a number of bookings from the…
Q: // A standard mortgage is paid monthly over 30 years. // This program is intended to display 360…
A: Answer: for(int i=0; i<30;i++)//this loop is for the year for(int i=0;j<12;j++) printf("the…
Q: A sales event at Trader Jane's is reducing some items by 25%. Store that value to a properly named…
A: #include <iostream>using namespace std;int main() { // Write C++ code here int…
Q: Input a range from user and print all the narcissistiC number in that range. Hint: A number is…
A: #include <stdio.h> #include<math.h> int main(){ //declaing variables int…
Q: Using switch syntax to write a program that calculates and prints the bill for a cellular telephone…
A: Start Prompt the user to enter the account number and service code and store them in proper…
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 1 images
- A mail order house sells five different products whose retail prices areas follows:* product 1: $2.98* product 2: $4.50* product 3: $9.98* product 4: $4.49* product 5: $6.87Write a program that prompts the user to enter the product number and thequantity sold and keeps the running total of products sold until the userinputs -1 for product number. At the end, the program will display the totalretail value of all products sold. C++ please.// A standard mortgage is paid monthly over 30 years.// This program is intended to output 360 payment coupons// for each new borrower at a mortgage company.// Each coupon lists the month number, year number,// and a friendly mailing reminder.start Declarations num MONTHS = 12 num YEARS = 30 string MSG = "Remember to allow 5 days for mailing" num acctNum num yearCounter housekeeping() while acctNUm <> QUIT printCoupons() endwhile finish()stop housekeeping() print "Enter account number or ", QUIT, " to quit " input acctNumreturn printCoupons() while yearCounter <= YEARS while monthCounter <= MONTHS print acctNum, monthCounter, yearCounter, MSG monthCounter = monthCounter + 1 endwhile endwhile output "Enter account number or ", QUIT, " to quit " input acctNumreturn finish() output "End of job"returnA mobile phone service has three different data plans for its customers: PLAN A: For $19.99 per month, 2 gigabytes are provided. Additional usage costs $8.00 per gigabyte. PLAN B: For $59.99 per month, 8 gigabytes are provided. Additional usage costs $8.00 per gigabyte. PLAN C: For $79.99 per month, Unlimited data is provided. Write a program that calculates a customer’s monthly bill. It should input the customer name, which plan was purchased, and how many gigabytes were used. It should then create a bill that includes the input information and the total amount due. It should also display how much money plan A customers would save if they purchased plan B or C, and how much money plan B customers would save if they purchased plan C. If there would be no savings, no message should be printed. Wherever possible, use named constants instead of numbers.
- A sales event at Trader Jane's is reducing some items by 25%. Store that value to a properly named constant. Write a program that functions like a cashier terminal for one item. Some items are subject to 7% sales tax and some are not. Use a constant for the sales tax value, too. Write a program for Trader Jane's that runs as shown next: Enter the ticket price of the item 100 Is this item reduced y/n? y is this item taxable y/n? y Here is your bill Original price $100 Reduction during event $25.00 Final price $75.00 7% Sales tax $5.25 Total amount due $80.25A company of 20 employees wants to find the employee who made the highest commission so he/she can be paid a 10% bonus of the commission he/she earned for that month. The commission an employee makes is calculated by multiplying the sales amount by the commission rate. The commission rates are shown below: Sales Amount Commission Less Than 40000 No commission 40000 to 80000 inclusive 5% Greater than 80000 10% Write a program to: Prompt the user for each employee’s id (an integer value) and the sales amount For each employee, display the commission earned Display the total commission earned by all the employees Display the average commission earned by an employee Display the employee id, the commission and the bonus paid to the employee with the highest commission Must be written in c++, no arrays to be used, only use iostream libraryThe monthly payment for a givenloan pays the principal and the interest. The monthly interest is computed by multiplyingthe monthly interest rate and the balance (the remaining principal). The principalpaid for the month is therefore the monthly payment minus the monthly interest.Write a program that lets the user enter the loan amount, number of years, and interestrate then displays the amortization schedule for the loan. Here is a sample run: Loan Amount: 10000 ↵EnterNumber of Years: 1 ↵EnterAnnual Interest Rate: 7 ↵EnterMonthly Payment: 865.26Total Payment: 10383.21Payment# Interest Principal Balance1 58.33 806.93 9193.072 53.62 811.64 8381.43...11 10.00 855.26 860.2712 5.01 860.25 0.01
- can you help me to correct this 1. Write a program that accepts from the user a unit price of a certain product and the quantity of that product bought by a customer. It should compute and display the amount payable. #include <stdio.h> int main (){float unitPrice, amount;int quantity;printf("Enter the unit price of a product: ");scanf(unitPrice);printf("Enter the quantity of that product: ");scanf(quantity); amount = unitPrice * quantity; prinf("Amount Payable: "amount);return 0;}PROBLEM: When creating account: It should be 6 digit pin. (if there is a letter or not 6 digits were put in, output will say "Please retry. It should be a 6 digit pin."). It should also have an authenticator for the pin and if the inputted pin is wrong show "Invalid Pin. Please try again." and if it is still wrong in 3 tries, it'll say "Too many incorrect tries. Exiting program." CODE: import random import sys class ATM(): def __init__(customer, name, account_number, balance = 0): customer.name = name customer.account_number = account_number customer.balance = balance def account_detail(customer): print("\n-ACCOUNT DETAIL-") print(f"Account Holder: {customer.name.upper()}") print(f"Account Number: {customer.account_number}") print(f"Available balance: Nu.{customer.balance}\n") def deposit(customer, amount): customer.amount = amount customer.balance = customer.balance +…Mobile Service Provider Write a flowgorithm program that will calculate a person’s mobile phone bill based on plan chosen and the data used. The program should perform the following: Ask for customer’s mobile plan Ask for the number of gigabytes of data used Display an error message if the plan choice is invalid or the gigabytes used is less than zero (0) Mobile data plans are: Plan A 19.99/month, with 4 gigabytes data, additional data $10/gigabyte Plan B 29.99/month, with 8 gigabytes data, additional data $5/gigabyte Plan C 39.99/month, unlimited data Remember the following: use clear prompts for your input label each output number or name use comment box for your name, lab name and date at the top of the flowgorithm use other comments where appropriate use appropriate constants
- Write a program that computes how much a customer has to pay after purchasing two items. Make the lower-priced item half price. If the two items have identical prices, you can make one or the other half price. The price is calculated according to the following rules:• Buy one get one half off promotion: the lower price item is half price.• If the customer is club card member, additional 10% off.• Tax is added. Inputs to the program include:• Two items’ prices• Have club card or not (User enters ‘Y’ or ‘y’ for “yes”; ‘N’ or ‘n’ for “no”)• Tax rate (User enters the percentage as a number; for example, they enter8.25 if the tax rate is 8.25%) Program displays:• Base price - the price before the discounts and taxes• Price after discounts - the price after the buy one get one half off promotionand the member’s discount, if applicable• Total price – the amount of money the customer has to pay (after tax)printed with the precision of 2 decimal digits. Hint: In order to print a number in a…Write a C++ program that asks the user to enter the number of books purchased this month and then displays the number of points awarded. An online book club awards point to its customers based on the number of books purchased each month. Points are awarded as follows: Books Purchased Points earned 0 0 1 5 2 15 3 30 4 or more 60Write a program which prompts the user for their age. If they are 19 or younger informthem that qualify for student discounts. If they are between 20 and 65 inform them that theyqualify for no age discounts. If they are 65 or over inform them that they can receive seniordiscounts.(python)