CIS-111 INTRODUCTION TO PROGRAMMING LOGIC Semester/Year USING THE C LANGUAGE
After you have entered your source code, compile it to make certain there are no syntax errors. If syntax errors occur, and remember they will, they need to be corrected before you resubmit your program. Do this over and over again until you get a "clean compile". ("COMPILE SUCCESSFUL").
When your program is properly compiled, run your program to see whether your output is correct. Because the input for the program is entered from the keyboard, you must use the input data given to you in class. There are three(3) records that you must process.
After you have executed (run) your program, you need to hand in the following items:
CAR MODEL STICKER PRICE AMOUNT CUSTOMER PAID Mustang 12540 11258 Escort 10380 9650 Probe 15470 13565
Listed below is a sample of what your screen may look like as you execute (run) your program:
UMBC FORD DEALERSHIP WEEKLY INVENTORY SALESPERSON: PUT YOUR NAME HERE Please Enter Model Sold: Mustang Please Enter Sticker Price: 12540 Please Enter what the Customer Paid: 11258 Was There Another Car Sold Today -- Answer (y or n): y Please Enter Model Sold: Escort Please Enter Sticker Price: 10380 Please Enter what the Customer Paid: 9650 Was There Another Car Sold Today -- Answer (y or n): y Please Enter Model Sold: Probe Please Enter Sticker Price: 15470 Please Enter what the Customer Paid: 13565 Was There Another Car Sold Today -- Answer (y or n): n
DEALER COST = STICKER PRICE X 79% SINGLE CAR PROFIT = AMOUNT CUSTOMER PAID - DEALER COST TOTAL NUMBER OF CARS SOLD = TOTAL NUMBER OF CARS SOLD + 1 TOTAL DEALER PROFIT = TOTAL DEALER PROFIT + SINGLE CAR PROFIT
A sample of the report portion of your output is listed below.
REPORT SUMMARY NUMBER OF CARS SOLD THIS WEEK BY (PUT YOUR NAME HERE): n UMBC FORD DEALERSHIP PROFIT: $ nnnn.nn