C++ PROBLEM You are taking a biology course this semester, and you’re having SO MUCH FUN! The only problem is that you n
Posted: Mon May 02, 2022 12:27 pm
C++ PROBLEM
You are taking a biology course this semester, and you’re having
SO MUCH FUN! The only problem is
that you need to determine your overall average in the course,
letter grade, and whether you have
passed/failed to determine if you are still eligible for your
scholarships.
You refer to the syllabus for the course in Canvas and find that
the teacher has divided the course into
the following types of learning activities:
In order to determine your average for each learning activity in
the course, you will need to sum the
grades on each type of learning activity, divide by the number of
activities, and then multiply by the
weight for the learning activity (i.e. .50 for 50%, .05 for 5%,
etc.).
Please note that the lowest grade is dropped.
In order to find your overall average, you will need to sum your
average for each type of learning
activity.
Your program should use a single array to store the grades for each
learning activity. Therefore, you
should have 5 arrays in this assignment: one for examgrades, one
for practice activity grades, one for
lab grades, one for miscellaneous grades, and one for project
grades.
Your program may assume the number of activities based on the table
on Page 1. In other words, your
program should not ask the user how many grades need to be entered
for each type of learning activity.
However, it should be easy for a programmer to change the number of
activities in your program.
Your program should allow integer or floating point grades to be
entered without issue.
Your program should do the following:
1. Ask the user for the grades for each type of learning activity.
This output should be readable on
the screen (i.e. do not make me “guess” what I need to do). Create
meaningful prompts.
2. Determine the weighted average for each group of activities.
Remember that the lowest examgrade is dropped so you will need to
handle this appropriately.
3. Determine the overall student average in the course.
4. Determine the student’s letter grade in the course using the
standard grade scale:
a. A: 90-100
b. B: 80-89.9
c. C: 70-79.9
d. D: 60-69.9
e. F: 0-59.9
5. Determine if the student passed or failed the course.
6. Display a report with the following information:
a. Weighted ExamAverage
b. Weighted Practice Average
c. Weighted Lab Average
d. Weighted Miscellaneous Average
e. Overall Average
f. Letter Grade
g. Status (Pass or Fail)
You must use functions and 1D arrays (no 2D arrays) in this
assignment.
Special Considerations:
Make your solution generalizable. Do not make similar functions
to do the same thing. Additionally,
avoid functions that are extremely long. No single function
(excluding main) should be more than
15 lines of code. Additionally, your main should not have code that
should be put inside a
function/routine.
Break your program into logical tasks and design your functions
based on these tasks to fulfill the
end goal of the program. Your program should use a minimum of 4
functions (excluding main).
Make all prompts readable (i.e. if you are asking for examgrades,
make sure the user knows which
grades you are prompting for).
Make sure to drop the lowest examgrade as this will affect your
grade report’s validity.
Constants should be used appropriately.
SAMPLE OUTPUT
Weight 50% Number of Activities 4 Learning Activity Exams (lowest dropped) Practice Activities Labs Miscellaneous Projects 5% 15% 5% 25% 5 5 5 7
You are taking a biology course this semester, and you’re having
SO MUCH FUN! The only problem is
that you need to determine your overall average in the course,
letter grade, and whether you have
passed/failed to determine if you are still eligible for your
scholarships.
You refer to the syllabus for the course in Canvas and find that
the teacher has divided the course into
the following types of learning activities:
In order to determine your average for each learning activity in
the course, you will need to sum the
grades on each type of learning activity, divide by the number of
activities, and then multiply by the
weight for the learning activity (i.e. .50 for 50%, .05 for 5%,
etc.).
Please note that the lowest grade is dropped.
In order to find your overall average, you will need to sum your
average for each type of learning
activity.
Your program should use a single array to store the grades for each
learning activity. Therefore, you
should have 5 arrays in this assignment: one for examgrades, one
for practice activity grades, one for
lab grades, one for miscellaneous grades, and one for project
grades.
Your program may assume the number of activities based on the table
on Page 1. In other words, your
program should not ask the user how many grades need to be entered
for each type of learning activity.
However, it should be easy for a programmer to change the number of
activities in your program.
Your program should allow integer or floating point grades to be
entered without issue.
Your program should do the following:
1. Ask the user for the grades for each type of learning activity.
This output should be readable on
the screen (i.e. do not make me “guess” what I need to do). Create
meaningful prompts.
2. Determine the weighted average for each group of activities.
Remember that the lowest examgrade is dropped so you will need to
handle this appropriately.
3. Determine the overall student average in the course.
4. Determine the student’s letter grade in the course using the
standard grade scale:
a. A: 90-100
b. B: 80-89.9
c. C: 70-79.9
d. D: 60-69.9
e. F: 0-59.9
5. Determine if the student passed or failed the course.
6. Display a report with the following information:
a. Weighted ExamAverage
b. Weighted Practice Average
c. Weighted Lab Average
d. Weighted Miscellaneous Average
e. Overall Average
f. Letter Grade
g. Status (Pass or Fail)
You must use functions and 1D arrays (no 2D arrays) in this
assignment.
Special Considerations:
Make your solution generalizable. Do not make similar functions
to do the same thing. Additionally,
avoid functions that are extremely long. No single function
(excluding main) should be more than
15 lines of code. Additionally, your main should not have code that
should be put inside a
function/routine.
Break your program into logical tasks and design your functions
based on these tasks to fulfill the
end goal of the program. Your program should use a minimum of 4
functions (excluding main).
Make all prompts readable (i.e. if you are asking for examgrades,
make sure the user knows which
grades you are prompting for).
Make sure to drop the lowest examgrade as this will affect your
grade report’s validity.
Constants should be used appropriately.
SAMPLE OUTPUT
Weight 50% Number of Activities 4 Learning Activity Exams (lowest dropped) Practice Activities Labs Miscellaneous Projects 5% 15% 5% 25% 5 5 5 7