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
What is a drone satellite?​
babymother [125]

Answer:

A satellite that can be controlled where to go.

Explanation:

4 0
3 years ago
How can u get this off us keybored chromme book
WITCHER [35]
Click the icon at the bottom of the screen that says “US” it should go away
5 0
4 years ago
Amaldo is applying for a job as a cashier. He tells the interviewer that he has his bachelor's degree in Marketing and has
alekssr [168]

Answer:

The answer is that he prefers to work alone.

Explanation:

A marketing job comes with a lot of employees. He need to work with alot of people.

7 0
3 years ago
Read 2 more answers
The lack of inventory capability in services is due to which of the following characteristics of services? Select one:
Wittaler [7]

Answer:

Perishability and simultaneous production and consumption

Explanation:

Option C is correct

6 0
4 years ago
A pneumatic drill is commonly used
Ket [755]
A Pneumatic drill, also called a Jackhammer, is a portable machine driven by compressed air. They are normally used for drilling in rocks, breaking pavement, and applications. Hope this helps! :)
6 0
3 years ago
Other questions:
  • Free points! your welcome
    9·2 answers
  • A computer's fqdn is pc42042.east.contoso.corp. which option in the advanced tcp/ip settings dialog box must be enabled to allow
    14·1 answer
  • Your boss wants you to devise a way for remote contractors to be able to access the server desktop. There is one stipulation, ho
    8·2 answers
  • "Most of us know that when we come into a college classroom, we will see desks and chairs, a computer station and a projector. A
    6·1 answer
  • Bob wants to change a single sub heading on a web page to blue color. Which style should Bob apply to the web page?
    5·2 answers
  • Select the correct answer. Which of these statements is an explorer most likely to make?​
    6·1 answer
  • Which example task should a developer use a trigger rather than a workflow rule for?
    11·1 answer
  • Nonword passwords are vulnerable to a ________ attack in which the password cracker tries every possible combination of characte
    9·2 answers
  • You often travel away from the office. While traveling, you would like to use a modem on your laptop computer to connect directl
    5·1 answer
  • Relational operators allow you to ________ numbers
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!