Question: C programming why isn't this program working right / SuperCalcV 1 . c by Sarah Place 9 / 2 2 / 2 4 #include int
C programming
why isn't this program working right
SuperCalcVc by Sarah Place
#include
int mainvoid
printfJayhawk Supercomputer Usage Calculator by Sarah Place
;
int hoursUsed minutesUsed secondsUsed;
printfEnter hours used as a whole number ;
scanfd&hoursUsed;
printf
Enter minutes used as a whole number ;
scanfd&minutesUsed;
printf
Enter seconds used as a whole number ;
scanfd&secondsUsed;
int totalSeconds hoursUsed minutesUsed secondsUsed;
printf
Total Seconds of Usage d
totalSeconds;
float totalHours floathoursUsed floatminutesUsedfloatsecondsUsed;
printf
Total Hours of Usage f
totalHours;
float totalDays floathoursUsedfloatminutesUsedfloatsecondsUsed;
printf
Total Days of Usage f
totalDays;
float rate f;
if totalSeconds
printf
Rate Per Second f;
else if totalSeconds
printf
Rate Per Second f;
else if totalSeconds
printf
Rate Per Second f;
else if totalSeconds
printf
Rate Per Second f;
else
printf
Rate Per Second f;
printf
Thanks for Using Jayhawk Supercomputer!";
return ;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
