write a program that computes the power loss by entering miles. The formula is power loss=3200*miles. When the user enter 70 miles, the program should print out 20 miles 30, 40, 50, 60 miles, respectively.

profileCSpro
 (Not rated)
 (Not rated)
Chat

write a program that computes the power loss by entering miles. The formula is power loss=3200*miles. When the user enter 70 miles, the program should print out 20 miles 30, 40, 50, 60 miles, respectively.
It looks like this
Enter a distance in miles 60:
powerloss for 20 miles is 64000 w.
powerloss for 30 miles is 96000 w.
powerloss for 40 miles is 128000 w.
powerloss for 50 miles is 160000 w.
powerloss for 60 miles is 192000 w.

 

Language: C++

    • 10 years ago
    A+ Answer
    NOT RATED

    Purchase the answer to view it

    blurred-text
    • attachment
      powerloss.c