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
This method of advertising is expensive but can be the most effective method.
egoroff_w [7]

<u>Answer:</u>

<em>Newspapers</em>

<u>Explanation:</u>

<em>The process of giving advertisement is one way to promote product. A product become famous only because of advertisement only. </em>

Business people spend lots of money in advertisements so that in turn it would give good returns. <em>It is not necessary that always advertisement has to be given for all the product</em>.

Mostly new products needs mobilization, next during festivals the dress <em>purchase will be heavy so people will get attracted towards it and buy in the shop which advertises, etc.</em>

8 0
3 years ago
Which feature of a blog marks a unique link to each post through which it can be recalled anytime?
astra-53 [7]
The awnser would be a permalink
5 0
4 years ago
Read 2 more answers
What are the task performed by window media player<br> ​
OLEGan [10]

Answer:

Windows Media Player (WMP) is a media player and media library application developed by Microsoft that is used for playing audio, video and viewing images on personal computers running the Microsoft Windows operating system, as well as on Pocket PC and Windows Mobile-based devices.

4 0
2 years ago
based on your completed tables for ping requests and replies, which field do you think helps the network identify the appropriat
Ilia_Sergeevich [38]

Ping, a computer network management tool, is used to determine whether a host is reachable on an IP network. ARP protocols To begin, launch Wireshark and the ecet-375 Web Browsing. Pcap capture file. This capture file was created while browsing the Internet.

<h3>What does ping operates mean?</h3>
  • Ping sends an ICMP Echo Request to a predefined network interface and then waits for a response. A ping signal is sent to the specified address when a ping command is issued.
  • The destination host sends the echo reply packet in response to receiving the echo request.
  • A ping is the time it takes for a small data set to be communicated from your device to an Internet server and back to your device (latency is the more accurate technical word). Ping times are measured in milliseconds.
  • Ping is the most commonly used TCP/IP command for troubleshooting connectivity, reachability, and name resolution.
  • This command displays Help content when run without any parameters. You can also use this command to verify the computer's name as well as its IP address.

To learn more about ping operates, refer to:

brainly.com/question/14366813

#SPJ4

7 0
2 years ago
The strategy in which you periodically look away from the text and ask yourself about the material is called the
Monica [59]
<span>The strategy in which you periodically look away from the text and ask yourself about the material is called the look-away method.</span>
8 0
3 years ago
Read 2 more answers
Other questions:
  • what would happen if a large number of computer users are attempting to access a web site at the same time that you are
    15·2 answers
  • One of the main purposes of special effects is to accomplish shots that would be too expensive, too dangerous or just plain impo
    9·2 answers
  • Python: Write a program that asks the user how many Fibonnaci numbers to generate and then generates them.
    10·1 answer
  • Operational feasibility, which refers to user acceptance and support, as well as management acceptance and support, is also know
    9·1 answer
  • _____ are independent and not associated with the marketing efforts of any particular company or brand.​
    9·1 answer
  • What is c also write it's features
    8·2 answers
  • My brainly isnt working it isnt showing and answers wats going on? wat do i do
    14·2 answers
  • In the previous project, you are storing the first name of the gamer. Write a phrase to the game right before the first word wit
    6·1 answer
  • Write a python program to check whether the number is divisible by 7. If its divisible, print its divisible otherwise find previ
    5·1 answer
  • Write the necessary preprocessor directive to enable the use of the stream manipulators like setw and setprecision Additional No
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!