Reference no: EM131006098
1. Repair Bill: Suppose automobile repair customers are billed at the rate of $35 per hour for labor. Also, suppose costs for parts and supplies are subjected to a 5% sales tax. Write a program to display a simplified bill. The customer's name, the number of hours of labor, and cost of parts and supplies should be entered into the program via text boxes. When a button is clicked, the customer's name and the three costs should be displayed in a list box, as shown in fig.
2. Write a program to make change for an amount of money from 0 through 99 cents input by the user. The output of the program should show the number of coins from each denomination used to make change. See fig
3. Nutrition: The American heart association suggests that at most 30% of the calories in our diet come from fat. Although food labels give the number of calories and the amount of fat per serving, they often do not give the percentage of calories from fat. This percentage can be calculated by multiplying the number of grams of fat in one serving by 9 and dividing that number by the total number of calories per serving. Write the program that requests the name, number of calories per serving and the grams of fat per serving as input, and tells whether the food meets the American heart association recommendation.
4. Write a program to analyze a car loan. The user should enter the amount of the loan, annual percentage rate of interest, and the duration of the loan in months. When the user clicks on the button, the information that was entered should be checked to make sure it is reasonable. If bad data have been supplied, the user should be so advised. Otherwise, the monthly payment and the total amount of interest paid should be displayed. The formula for the monthly payment is:
Monthly payment= p.rl - (l+r) -n
where p is the amount of the loan, r is the monthly interest rate (annual rate divided by 12) given as a number between 0 (for 0%) and 1(for 100%), and n is the duration of the loan in months. The formula for the total interest paid is
total interest= n . [monthly payment] - p
5. Restaurant bill: A fast food vendor sells pizza slices ($1.75), fries ($2.00) and soft drinks ($1.25). Write a program to compute a customer's bill. The program should request the quantity of each item ordered in a Sub procedure, calculate the total cost with a function procedure, and use Sub procedure to display an itemized bill.
6. Rule of 72: This rule is used to approximate the time required for prices to double due to inflation. If inflation rate is r%, then the rule of 72 estimates that prices will double in 72/r years. For instance, at an inflation rate of 6%, prices double in about 72/6 or 12 years. Write a program to test the accuracy of this rule. For each interest rate from 1% to 20%, the program should display the rounded value of 72/r and the actual number of years required for prices to double at an r% inflation rate. (assume prices increase at the end of each year).
Can the present value of minimum lease payments
: Can the present value of minimum lease payments differ between the lessor and lessee? If so, how?
|
Business law case study
: Business Law case study - In the Lee case, there was a losing side. That side will look for an error in the rules the judge applied in order to appeal. The winning side will attempt to defend the judge's use of the rules that produced the winning ..
|
What is a trading bloc and a trade concentration ratio
: What is a trading bloc and a trade concentration ratio, and does it make sense that trade concentration ratios should be greater than +1? What kind of trading bloc is NAFTA and how has it influenced trade within the bloc? What is multilateralism and ..
|
Write a program to display a simplified bill
: Write a program to display a simplified bill. The customer's name, the number of hours of labor, and cost of parts and supplies should be entered into the program via text boxes. When a button is clicked, the customer's name and the three costs sh..
|
What is difference between specific tariff-ad valorem tariff
: Submit answers to the following questions in the unit drop box. You must explain your answer and provide your supporting computations. Yes/No answers or simple numbers are not acceptable and will not receive full credit. Why does a sales tax shift a ..
|
Compare the way a bargain purchase option
: Compare the way a bargain purchase option and a residual value are treated by the lessee when determining minimum lease payments.
|
Interest rate during the great depression
: Use the IS-LM model to illustrate graphically the impact of the Pigou effect on the equilibrium level of income and interest rate during the Great Depression, when prices were falling.
|
Find an equation of the planes tangent to the given surfaces
: Find an equation of the planes tangent to the following surfaces at given points, x2 - 2y2 + z2 / 4 = 3, at (√2, 0, 2). z = xy - 25 at (1, 16, -9).
|