Programming - Introduction to Computer Concepts - Lab 10 | CSCE 101, Lab Reports of Computer Science

Material Type: Lab; Class: INTRO-COMPUTER CONCEPTS; Subject: Computer Science & Engineering; University: University of South Carolina - Columbia; Term: Spring 2009;

Typology: Lab Reports

Pre 2010

Uploaded on 10/01/2009

koofers-user-ocq
koofers-user-ocq 🇺🇸

10 documents

1 / 1

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
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 <60
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.

Partial preview of the text

Download Programming - Introduction to Computer Concepts - Lab 10 | CSCE 101 and more Lab Reports Computer Science in PDF only on Docsity!

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.