Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a Cprogram for a grade calculation to run on ocelot. The source file should have your name & PantherlD included in it and it

image text in transcribed

Write a Cprogram for a grade calculation to run on ocelot. The source file should have your name & PantherlD included in it and it should have an affirmation of originality stating something like: "I affirm that I wrote this program myself without any help form any other people or sources from the internet." Code should be nicely indented using a consistent style and commented appropriately An array should be used for each student's list of courses, but it is not required as long as all values are in variables Course is an array of characters. Credits is an integer . .Grade is a floating point number Grade Points earned should be calculated as you print not stored in a variable. There should be at least 6 courses listed There is no user input, all values should be hard coded in the program Columns should be aligned as shown in the sample below .Course column left justified. Credits centered .Grade right justified with 2 decimals Grade Points Earned right justified with 2 decimals The grade points earned should be calculated in a formula with multiplication right while printing it out. It should not be stored as a variable Create a simple Makefile to compile your program into an executable called gpa. You should submit the source code and your Makefile file compressed into a zip file named FirstNameLastNamel1.zip. The Makefile should be called Makefile with no extension. I should be able to type make at the command line to compile your program. Do not include any other files or folders in the zipfile. This applies even if you are a Mac user Programs that do not compile and do something useful when run will not earn any credit at all. Sample Output: Student Name: YourFirstName YourLastName Panther ID: 9999999 Course COP2210 ENC1101 GradeGrade Points Earned 12.00 8.01 9.00 4.00 2. 67 3.00 Total Current GPA: 3.22

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Probability & Statistics For Engineers & Scientists

Authors: Ronald E. Walpole, Raymond H. Myers, Sharon L. Myers, Keying

7th Edition

9789813131279, 130415294, 9813131276, 978-0130415295

Students also viewed these Databases questions

Question

8. Describe the steps in the development planning process.

Answered: 1 week ago