CMSC 104 : Problem Solving and Computer Programming =================================================== Project #4 (Book Ordering System) Due: April 7, 2004, before midnight Name: STUDENT, A. Login ID: astuden1 Section # : 0101 Submit date and time: 20:33 4-4-2004 Specific points values for Project 4: Correctness - Section 1 - (40 points) 3 points - a) Calculates correct subtotal 3 points - b) Calculates correct tax 3 points - c) Calculates correct shipping 2 points - d) Prints "FREE" if shipping is free 3 points - e) Calculates correct final total 3 points - f) Calculates correct number of books 3 points - g) Calculates correct average price 3 points - h) Calculates correct minium price 3 points - i) Calculates correct maximum price 4 points - j) Uses #defines specified (SHIP_COST, FREE_SHIP_LIMIT) 2 points - k) Prints all monetary values to 2 decimal places 4 points - l) Program works correctly with Unix redirection 4 points - m) Program exits when sentinel value of -1 is read Style - Section 2 - (20 points) 5 points - Use of adequate whitespace a) Separates logical sections of code with blank lines b) Blank spaces around operators c) Identation is only 3 to 4 spaced deep per level 5 points - Indentation of comments evenly with the surrounding code d) Comments should line up exactly above the code being commented e) Endline comments should only be used for variables or #defines 5 points - Use of either Student or Bell Labs indentation style as per Indentation styles found on 201 web pages f) Uses one acceptable style consistently g) Uses braces for if/while/for clauses even if only 1 statement -5 5 points - Use of naming conventions per CS201 Style sheet i) Uses meaningful variables names j) Separate "words" within identifiers with underscores or mixed upper and lower case k) Variable names begin with lowercase m) #defines and typedefs all uppercase Documentation - Section 3 - (20 points) 2 points a) Filename given in file header comment 2 points b) Author's name given in file header comment 2 points c) Date written given in file header comment 2 points d) Section number given in file header comment 2 points e) UMBC Email address given in file header comment 3 points f) Adeq. file/prog. descrip. given in file header comment 7 points g) Adequate descriptive comments within the code Execution (program compiles) 20 points ---------------------------------------------------------------------------- Pts. lost: -5 Score: 95/100 ---------------------------------------------------------------------------- Comments: 2k) For example, AveragePrice should be averagePrice.