1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
VMariaS [17]
3 years ago
9

Write a C++ program to calculate the course score of CSC 126. 1. A student can enter scores of 3 quizzes, 2 exams, and a final e

xam. The professor usually keeps 1 digit after the point in each score but the overall course score has no decimal places. 2. The lowest quiz score will not be calculated in the quiz average. 3. The weight of each score is: quiz 20%, exams 30%, and the final 50%. 4. The program will return the weighted average score and a letter grade to the student. 5. A: 91 - 100, B: 81 - 90, C: 70 - 80, F: < 70.
Computers and Technology
1 answer:
miss Akunina [59]3 years ago
8 0

Answer:

In C++:

#include <iostream>

using namespace std;

int main(){

   double quiz1, quiz2, quiz3, exam1, exam2, finalexam,quiz;

   cout<<"Quiz 1: "; cin>>quiz1;

   cout<<"Quiz 2: "; cin>>quiz2;

   cout<<"Quiz 3: "; cin>>quiz3;

   cout<<"Exam 1: "; cin>>exam1;

   cout<<"Exam 2: "; cin>>exam2;

   cout<<"Final Exam: "; cin>>finalexam;

   if(quiz1<=quiz2 && quiz1 <= quiz3){        quiz=(quiz2+quiz3)/2;    }

   else if(quiz2<=quiz1 && quiz2 <= quiz3){        quiz=(quiz1+quiz3)/2;    }

   else{         quiz=(quiz1+quiz2)/2;     }

   int weight = 0.20 * quiz + 0.30 * ((exam1 + exam2)/2) + 0.50 * finalexam;

   cout<<"Average Weight: "<<weight<<endl;

   if(weight>=91 && weight<=100){        cout<<"Letter Grade: A";    }

   else if(weight>=81 && weight<=90){        cout<<"Letter Grade: B";    }

   else if(weight>=70 && weight<=80){        cout<<"Letter Grade: C";    }

   else{        cout<<"Letter Grade: F";    }

   return 0;

}

Explanation:

See attachment for complete program where comments were used to explain difficult lines

Download cpp
You might be interested in
A career action plan is used to:
Ede4ka [16]

A career action plan is typically used to: A. organize career-related thoughts and goals.

<h3>What is a career action plan?</h3>

A career action plan can be defined as a planning document which is developed, owned and managed by an individual, so as to help him or her to organize and reflect on his or her increased career development learning.

This ultimately implies that, a career action plan is typically used by an individual to organize career-related thoughts, clear vision and goals.

Read more on career action plan here: brainly.com/question/6947486

#SPJ1

8 0
2 years ago
What do you call the specific format that is used to give credit to someone else’s work, words or ideas?
Deffense [45]
It would be called a citation.
6 0
3 years ago
Read 2 more answers
Plz help me I need this doneee
Vladimir79 [104]
Answer: I think it’s true
5 0
3 years ago
Business ethics are the standards of right conduct in the workplace. True or False
Kipish [7]

True I would think, because ethical standards guide individuals and the company to act in an honest and trustworthy manner in all interactions.

5 0
4 years ago
Non verbal communication includes what?
adoni [48]

facial expressions , eye contact

4 0
3 years ago
Read 2 more answers
Other questions:
  • Which statement below is incorrect when discussing communication in the online community?
    15·1 answer
  • This diagram shows a number of computing devices connected to the Internet with each line representing a direct connection.
    11·1 answer
  • Within a major students can choose to study a specific area within major. For example a journalism student may study military jo
    8·1 answer
  • HELP WILL GIVE BRAINLIEST
    5·1 answer
  • 1. Write a SELECT statement that returns these columns: The count of the number of orders in the Orders table The sum of the Tax
    12·1 answer
  • Which statement best describes 'abstraction'? *
    5·1 answer
  • Provide TWO reasons to explain why humans and animals need clean wat​
    9·2 answers
  • Which is an advantage of using a flat file instead of a relational database?
    9·1 answer
  • Use the drop-down menus to complete each statement. Two main versions of Outlook are the desktop app and the app. The has limite
    15·2 answers
  • Where can you apply the hand wire splicing technique
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!