Question: HW3 EGN_SPR2020.pdf 01: (Find the Errors) (15 points) The only way to get good at finding errors is lots of practice, and with each chapter

 HW3 EGN_SPR2020.pdf 01: (Find the Errors) (15 points) The only way

HW3 EGN_SPR2020.pdf 01: (Find the Errors) (15 points) The only way to get good at finding errors is lots of practice, and with each chapter there are more kinds of syntax errors to look for. Find all the errors in the code below so that it produces the correct output. Code: #include int Main (void) { int salesAmount; // Get First Sales Amount puts(""); printf("%s", "Enter sales in dollars (-1 to end) : $"); scanf("%d", &sales Amount); while (salesAmount == - 1); { printf ("Salary is: $8.2f ", 200.0 + (.09 * salesAmount)); printf("%s", "Enter sales in dollars (-1 to end) : $"); scanf("%f", salesAmount); return 0; // Add comments at the end of your program identifying what your changed 1/ Changed ... // Changed ... Sample Input and Output: Enter sales in dollars (-1 to end) : $1234.56 Salary is: $311.11 Enter sales in dollars (-1 to end) : $9587.25 Salary is: $1062.85 Enter sales in dollars (-1 to end) : $-1 o Ei 9 a n = N = =

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!