Computer Science

Submitted by: Submitted by

Views: 361

Words: 332

Pages: 2

Category: Other Topics

Date Submitted: 01/04/2014 07:32 PM

Report This Essay

Empty Work

Empty work Empty work

Shannon and Jasmine bowl as a team. Each of them bowls three games in a tournament. They would like to know their individual averages for their three games and the team score (the total of the six games). Allow the user to input the scores for each player. Output Shannon’s average, Jasmine’s average, and the team score. You will need the following variables:

Score1 (a Float) sumShannon (a Float) avgJasmine (a Float)

Score2 (a Float) Score3 (a Float) sumJasmine (a Float) avgShannon (a Float) total (a Float)

Kim wants to buy a car. Help Kim compute the monthly payment on a loan, given the loan amount, the annual percentage rate of interest, and the number of monthly payments. The program should allow Kim to input the loan amount, interest rate, and how many payments she wants to make. It should then compute and display the monthly payment.

You will need the following variables:
Payment (a Float) LoanAmt (a Float) InterestRate (a Float)

MonthlyRate (a Float) NumberMonths (a Float) You will need the following formulas: MonthlyRate = InterestRate/1200

1. The owners of the Super Supermarket would like to have a program that computes the monthly gross pay of their employees as well as the employee’s net pay. The input for this program is an employee ID number, hourly rate of pay, and number of regular and overtime hours worked. Gross pay is the sum of the wages earned from regular hours and overtime hours; overtime is paid at 1.5 times the regular rate. Net pay is gross pay minus deductions. Assume that deductions are taken for tax withholding (30 percent of gross pay) and parking ($10 per month). You will need the following variables: 
EmployeeID (a String) HourlyRate (a Float) RegHours (a Float) GrossPay (a Float) Tax (a Float) Parking (a Float) OvertimeHours (a Float) NetPay (a Float) 
You will need the following formulas: 
GrossPay = RegularHours * HourlyRate + OvertimeHours * (HourlyRate * 1.5) NetPay = GrossPay –...