CMSC104 Fall 2012

Programming Project 1

Grade Calculator


Out: Tuesday, October 23

Due: Wednesday, October 31st, before 11:59 p.m.

The Objective

This project is designed to give you practice writing a C program on your own. You will also gain experience taking pseudocode you have written and writing the corresponding code. You should practice the incremental programming technique we discussed in class.

The Task

Tips and Hints

Sample Output

linux2[14]% gcc -ansi -Wall proj1.c

linux2[15]% a.out

Welcome to the CMSC104 grade calculation program. This
program will calculate the final average and course
grade for a student in CMSC104. Each homework is
worth 4%, each project is worth 8% and each exam is
worth 20%.

Enter the homework 1 score: 100
Enter the homework 2 score: 80
Enter the homework 3 score: 100
Enter the homework 4 score: 75
Enter the project 1 score: 75
Enter the project 2 score: 90
Enter the project 3 score: 99
Enter the exam 1 score: 92
Enter the exam 2 score: 80
Enter the exam 3 score: 81


With an average of 85.92, your course grade is a B.

Thank you for using the grade calculation program!

linux2[16]% a.out

Welcome to the CMSC104 grade calculation program. This
program will calculate the final average and course
grade for a student in CMSC104. Each homework is
worth 4%, each project is worth 8% and each exam is
worth 20%.

Enter the homework 1 score: 100
Enter the homework 2 score: 50
Enter the homework 3 score: 75
Enter the homework 4 score: 95
Enter the project 1 score: 75
Enter the project 2 score: 70
Enter the project 3 score: 75
Enter the exam 1 score: 80
Enter the exam 2 score: 70
Enter the exam 3 score: 65


With an average of 73.40, your course grade is a C.

Thank you for using the grade calculation program!

linux2[17]%

Submitting the Program

For this assignment, you just submit your source code file, proj1.c (make sure you use this name). To submit your project, type the following at the Unix prompt. Note that the project name starts with uppercase 'P'. submit cs104_park Proj1 proj1.c To verify that your project was submitted, you can execute the following command at the Unix prompt. It will show the file that you submitted in a format similar to the Unix 'ls' command. submitls cs104_park Proj1