Unformatted text preview:

CIS-113 INTRODUCTION TO PROGRAMMING LOGIC 2007 USING THE C++ LANGUAGE PROJECT #2 (25 points) ********************************************** * * * * * Have your materials available in a * * folder on the due date. (~2 weeks) * * * ********************************************** Program # 2 is an extension of program # 1. This project willbuild on your first set of code. The easiest way to get started is tosimply make a copy of program # 1 and call it program # 2. By workingwith a copy of the previous project (Program # 1), the time required totype in new code for the program # 2 will be reduced.New concepts in Program # 2 include the use of a simple loop, interactivedata entry and a short summary report. A sample of the output is included. Your output does not have to look exactly like the sample but it should include all of the basic information. As in Program # 1, 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 in your folder: (1) a listing of your source code (right side of folder) (2) the results of your program (right side of folder) (3) your data dictionary (4) pseudocode and a program flowchart (5) a print spacing chart (6) hand calculationsCIS-113 Program # 2 PROGRAM SPECIFICATIONSINPUT: The INPUT RECORD layout for Program # 2 is listed below. Each record has three(3) fields: CAR MODEL STICKER PRICE AMOUNT CUSTOMER PAID Mustang 33026 28836 Escort 13386 11336 Mercedes 42036 38336Note: Use the above numbers in your propram. Since the data is entered via the keyboard, you will need to includeseveral "user prompts" before you enter in each field of data. Unlike program # 1 where your input data was initialized within the program itself, this program allows the user to enter in information about each automobile from the keyboard as the program executes a simple "loop". Listed below is a sample of what your screen may look like as you execute (run) your program: PGCC FORD DEALERSHIP WEEKLY INVENTORY SALESPERSON: PUT YOUR NAME HERE Please Enter Model Sold: Mustang Please Enter Sticker Price: 22022 Please Enter what the Customer Paid: 18882 Was There Another Car Sold Today -- Answer (y or n): y Please Enter Model Sold: Escort Please Enter Sticker Price: 12082 Please Enter what the Customer Paid: 10352 Was There Another Car Sold Today -- Answer (y or n): y Please Enter Model Sold: Mercedes Please Enter Sticker Price: 42072Please Enter what the Customer Paid: 36362 Was There Another Car Sold Today -- Answer (y or n): nCIS-113 Program # 2FORMULAS: In addition to your input data, there are several "formulas" that you must include in your source code to produce the "Summary Report". They are as follows: DEALER COST = STICKER PRICE X 82% 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 PROFITOUTPUT: After you have processed all three (3) input records, put out a small summary report that includes a header, the number of cars sold by you this week and the profit the PGCC Ford Dealership made from your transactions. Use either the PRINT SCREEN key (Turbo C++ V3.0) or the print selection from the DEBUG/RUN option (Borland C++ V4.52) to obtain a copy of your output.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 PGCC FORD DEALERSHIP PROFIT : $ nnnn.nn(Refer to the handout for a more complete sample of what your outputmay look


View Full Document

PGCC CIS 1130 - Study Notes

Documents in this Course
Load more
Download Study Notes
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Study Notes and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Study Notes 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?