UMBC CMSC 104
UMBC CMSC 104 Spring 2001 CSEE | 104 | current 104

CMSC 104, Spring 2001

Project 3 - Algorithms Using Control Structures

Due Date:

Midnight, Thursday March 8

IMPORTANT NOTE: Due date extended to midnight, Tuesday, March 13

Note that late projects will NOT be accepted.

Point Value:

This project is worth 25 points.

Objectives:

Assignment:

Solve each of the problems below for their specific solutions. Just do this on a piece of paper (do not hand it in). Then determine the generic solutions to the problems. Write the generic solutions in pseudocode. Type the pseudocoded solutions in to a single text file using the pico editor. Send the file as an e-mail attachment to Evelyn (cwang3@cs.umbc.edu). Make the subject of your e-mail "Project 3 - Algorithms Using Control Structures".

Make sure that your pseudocoded solutions:

Problem 1 (10 points)

A manufacturer sells a certain article to dealers at a rate of $10.00 each if less than 20 are ordered. If 20 or more are ordered, the price of each and every article is reduced by 50 cents. What is the total cost of 100 units?

The generic algorithm should allow for changes in the $10.00 price and for changes in the 50 cent reduced rate. All input should be retrieved from the user. The number of articles ordered and the total price should be displayed.

Problem 2 (15 points)

Sarah's grades on her CMSC 104 projects so far are 94%, 82%, 75%, and 96%. She wants to compute the average of her projects so far and then determine the corresponding letter grade based on the following scale:

90.0 <= average <= 100.0 A 80.0 <= average < 90.0 B 70.0 <= average < 80.0 C 60.0 <= average < 70.0 D 0.0 <= average < 60.0 F

What is Sarah's letter grade for the average of her projects so far?

The generic algorithm must allow for any number of projects. The grades should be retrieved from the user one at a time. The number of projects, their numeric average, and corresponding letter grade should be displayed.



Sunday, 04-Mar-2001 22:42:47 EST