CMSC104 Spring 2014

Programming Project 1

Grade Calculator


Out: Wednesday, March 12

Due: Tuesday, March 25, before 11:59 p.m.

The Objective

This project is designed to give you practice writing a C program on your own.

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 10%, each mid-term exam is worth 15%,
and the final exam is worth 20%.

Enter the homework 1 score: 67
Enter the homework 2 score: 78
Enter the homework 3 score: 88
Enter the homework 4 score: 85
Enter the homework 5 score: 90
Enter the project 1 score: 76
Enter the project 2 score: 82
Enter the project 3 score: 84
Enter the mid-term exam 1 score: 80
Enter the mid-term exam 2 score: 75
Enter the final exam score: 90

With an average of 81.77, your course grade is B.

Thank you for using the grade calculator.

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 10%, each mid-term exam is worth 15%,
and the final exam is worth 20%.

Enter the homework 1 score: 95
Enter the homework 2 score: 92
Enter the homework 3 score: 0
Enter the homework 4 score: 84
Enter the homework 5 score: 90
Enter the project 1 score: 75
Enter the project 2 score: 95
Enter the project 3 score: 90
Enter the mid-term exam 1 score: 70
Enter the mid-term exam 2 score: 85
Enter the final exam score: 90

With an average of 81.69, your course grade is B.

Thank you for using the grade calculator.

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:

submit cmsc104_cmarron 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 cmsc104_cmarron proj1