CISY 125 - Project # 4

PLEASE SCROLL ALL THE WAY TO THE BOTTOM

The SGA (Student Government Association) is preparing for its yearly fund-raising awards. SGA members raise money by selling M&Ms. Each box of Plain M&Ms cost $3.00 and each box of Peanut M&M's cost $5.00. Each SGA member who raises at least $1000 receives an award plaque and a $50 gift certificate to the RVCC Book store. Each member who sells less than $1000 but at least $500 gets only an award plaque. Those whose sales are less than $500 receive only a certificate thanking them for their participation.


A program is needed to prompt for the member's name, number of boxes of plain M&M's sold, and the number of boxes of peanut M&M's sold. The total sales for the member should be calculated. The program should display the total sales along with the type of award(s) that the member should receive.

Sample run

Enter Name? John Doe Enter Plain Boxes Sold? 99 Enter Peanut Boxes Sold? 40 Plain sales are: 297.00 Peanut sales are: 200.00 Total sales are: 497.00 John Doe gets a nice certificate of appreciation

Another Sample run

Enter Name? Jane Doe Enter Plain Boxes Sold? 100 Enter Peanut Boxes Sold? 40 Plain sales are: 300.00 Peanut sales are: 200.00 Total sales are: 500.00 Jane Doe gets a nice Plaque









Another Sample run

Enter Name? Jane Smith Enter Plain Boxes Sold? 199 Enter Peanut Boxes Sold? 80 Plain sales are: 597.00 Peanut sales are: 400.00 Total sales are: 997.00 Jane Smith gets a nice Plaque

Another Sample run

Enter Name? John Smith Enter Plain Boxes Sold? 200 Enter Peanut Boxes Sold? 80 Plain sales are: 600.00 Peanut sales are: 400.00 Total sales are: 1,000.00 John Smith gets a nice Plaque & a $50 RVCC Gift Certificate

You are to do the following:

  1. Structure Chart (10 %)
  2. Flow Chart (20 %)
  3. Write the Pseudo Code (5 %)
  4. Write the QBasic Program IN QBASIC(75 %)

Requirements

  1. The Structure Chart, Flow Chart, Pseudo Code and QBasic code must match
  2. The output produced must match the sample runs above
  3. You must use meaningful variable names

Submitting the program

  1. Submit the QBasic code electronically (either hand in the In-Class Floppy, or e-mail the QBasic code)
  2. Submit the QBasic code on paper.

You must work alone on these Computer Projects. Cheating in any form will not be tolerated.