Coding of a problem.

Specification:

Write a program to compute the amount of nacho slim jims a son must eat to be considered 1% nacho. Your input is the initial weight of the son. The output is the weight of the son, the amount of nacho slim jims the son must eat, and the weight of the son combined with the nacho slim jims.

To calculate how much nacho slim jims is needed to be 1% nacho, take 1/99th of the son’s initial weight (i.e. nachoweight = (1/99)*sonweight).

SAMPLE ASSIGNMENT

Sample-2

Powered by WordPress