Question Description
I’m working on a computer science exercise and need an explanation to help me study.
Goals:
unit testing with hardwired test values |
||
Analysis and Design |
||
Arithmetic expression |
||
Writing a C++program |
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). |
|||
Understand the problem
- Plan the logic (pseudocode)
- Code the program
- Translate the program into machine language
- Test program
- Release the program to the user
DESIGN IS AN ITERATIVE PROCESS DONE BY A PERSON
IF YOU CAN’T SAY IT IN ENGLISH, YOU CAN’T SAY IT IN C++
WRITE THE TEST FIRST CODE TEST-ABILITY MUST BE PART OF YOUR DESIGN
"Place your order now for a similar assignment and have exceptional work written by our team of experts, guaranteeing you A results."