AVI K.

asked • 05/21/21

C++ question Pritty’s Program

Pritty’s Program

After going through the problem-solving process

Pritty finally arrived at this stage; the one just before she begins to write the code.

PLAN 1,

Write a message politely asking the user to enter values for ResONE, ResTWO and ResTHREE

2. Enter the corresponding values for those variables.

3. Set InvResONE to 1/ResONE (Inverse of ResONE)

4. Set InvResTWO to 1/ResTWO (Inverse of ResTWO)

5. Set InvResTHREE to 1/ResTHREE (Inverse of ResTHREE)

6. Set InvResTOT to (InvResONE + Inv ResTWO + InvResTHREE)

7. Set ResTOT to 1/InvResTOT

8. Print ResTOT


TASK

a) Draw a possible Structure Chart for the Plan (1-8) above

b) Write a C++ program based on Pritty’s Plan (1-8) above

c) Compile, Run and check using different values.

1 Expert Answer

By:

Patrick B. answered • 05/21/21

Tutor
4.7 (31)

Math and computer tutor/teacher

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.