
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Material Type: Lab; Class: INTRO-COMPUTER CONCEPTS; Subject: Computer Science & Engineering; University: University of South Carolina - Columbia; Term: Spring 2009;
Typology: Lab Reports
1 / 1
This page cannot be seen from the preview
Don't miss anything!

Programming Lab 10 The semester is finally over and you want to find out whether you received at least a C in CSCE 101. You have received all of your grades from your instructor and you also know the following weights for each grade and the letter grade distribution: Tests 1 & 2 15% each, lab 25%, quizzes 25%, and final exam 20% A = 90-100, B = 80-89, C = 70-79, D = 60-69, F < Write a program to print out your numeric final course grade and a message to indicate whether you received at least a B in the course. Save your Ch program file as lab10.ch in your H: drive. You may use the following steps as a guide. Declare six integer variables called test_1 , test_2 , lab , quiz , final , and course. For each of the variables excluding course , output a phrase asking the user to input the grade and then write an input statement to input the grade. Write a formula for course based on the aforementioned weights and declared variables. The course grade is the sum of each grade multiplied by its fractional weight. Do not use exact numbers in the formula. Output the numeric value of your course grade. Use an if statement to determine if you received a B or better in the course. If you did, output the phrase “Well done!” If you did not, output the phrase “Sorry! You didn’t make it”. Transfer a copy of your finalized program to your Submissions folder.