Programming Assignment 3

Do the following programming projects from An Introduction to Programming Using Visual Basic 2010:

1. Programming project no. 2, p. 155.

2. Programming project no. 3, p. 155.

To submit your assignment, first create a ZIP file of the application folder for each project (see Note on Submitting Programming Assignments). Then upload and submit both ZIP files to the assignment link provided in the Submit Assignments area of the course Web site. Consult the course Calendar for the assignment's due date.

2. 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 amount of fat per serving,
they often do not give the percentage of calories from fat. This percentage can be calcu-
lated by multiplying the number of grams of fat in one serving by 9 and dividing that num-
ber by the total number of calories per serving. Write a 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. A sample run is shown
in Fig. 4.21.
3. Write a program to analyze a mortgage. See Fig. 4.22. The user should enter the amount of
the loan, the 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 payment  = p*r/11  - 11  + r2¿1 -n22,
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 percent) and 1 (for 100 percent), and n is the duration
of the loan in months. The formula for the total interest paid is total interest  = n*payment  - p.

 Subject Computer Due By (Pacific Time) 04/30/2013 12:00 am
TutorRating
pallavi

Chat Now!

out of 1971 reviews
amosmm

Chat Now!

out of 766 reviews
PhyzKyd

Chat Now!

out of 1164 reviews
rajdeep77

Chat Now!

out of 721 reviews
sctys

Chat Now!

out of 1600 reviews

Chat Now!

out of 770 reviews
topnotcher

Chat Now!

out of 766 reviews
XXXIAO

Chat Now!

out of 680 reviews