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
SVETLANKA909090 [29]
3 years ago
10

Create a program that a professor can use to display a grade for any number of students. Each student's grade is based on four t

est scores, with each test worth 100 points. The program should total the student's test scores and then assign the appro priate grade using the information shown in Figure 8-27. Display the student's number and grade in a message, such as "Student 1's grade: AIf necessary, create a new proj ect named Introductory13 Project, and save it in the Cpp8 Chap08 folder. Enter the C++ instructions into a source file named Introductory13.cpp . Also enter appropriate comments and any additional instructions required by the compiler. Save, run, and test the program .

Computers and Technology
1 answer:
chubhunter [2.5K]3 years ago
3 0

Using the knowledge in computational language in C++ it is possible to write a code that organizes a student's grades in some subjects

<h3>Writing the program in C++</h3>

<em>#include<iostream.h></em>

<em>#include<conio.h></em>

<em>void main()</em>

<em>{</em>

<em>int i,n,sub1,sub2,sub3,sub4,totaltestscore; </em>

<em>cout<<"Enter the number of students : ";</em>

<em>cin>>n; </em>

<em>for(i=1;i<=n;i++) </em>

<em>{</em>

<em>cout<<" Enter the test score of subject 1 out of 100: ";</em>

<em>cin>>sub1; </em>

<em>cout<<" Enter the test score of subject 2 out of 100: ";</em>

<em>cin>>sub2; </em>

<em>cout<<" Enter the test score of subject 3 out of 100: ";</em>

<em>cin>>sub3; </em>

<em>cout<<" Enter the test score of subject 4 out of 100: ";</em>

<em>cin>>sub4; </em>

<em>totaltestscore=sub1+sub2+sub3+sub4;</em>

<em>if(totaltestscore>=372&&totaltestscore<=400) </em>

<em>cout<<" The grade of the student is : A "; </em>

<em>else</em>

<em>if(totaltestscore>=340&&totaltestscore<=371) </em>

<em>cout<<" The grade of the student is : B "; </em>

<em>else</em>

<em>if(totaltestscore>=280&&totaltestscore<=339) </em>

<em>cout<<" The grade of the student is : C "; </em>

<em>else</em>

<em>cout<<" The student fail "; </em>

<em>}</em>

<em>}</em>

See more about C++ at brainly.com/question/19705654

#SPJ1

You might be interested in
Which of the following is part of the cycle of dating violence
katen-ka-za [31]

Dating violence is a pattern of behavior where one person threatens or actually use

Physical, sexual, emotional, or verbal abuse to control his or her dating partner.

Examples of physical abuse are

Hitting, shoving, kicking

Examples of sexual abuse are

touches you when you don't want them to, forces you to watch dirty things,  

intercourse, fondling, exhibitionism, voyeurism, exploitation, prostitution & exposure to body parts.

Examples of verbal and emotional abuse

Insults, belittling, name calling, blaming, humiliation & false accusations.

Abuse is a

The deliberate infliction of harm or the threat of harm to a vulnerable person

Abusers in teen dating relationships, use behaviors of

Fear and intimidation

The only person that can choose to stop the violence is the

Abused.

Signs of an abused teen

Do poorly in school, have low self-esteem, may cry frequently, & may have trouble learning.

Abused teens even contemplate or attempt

Suicide

1 in 11 teens report being victims

Physical dating violence each year.

6 0
4 years ago
How should you decide what to wear to an interview? What kind of things should be considered?
Anon25 [30]
You should wear something professional. A tie, suit, classy dress, heels. You are more likely to be hired if you make it look like you take pride in your appearance. Also, depending on what kind of job you are applying for, the outfits can vary as well.
5 0
3 years ago
What types of standards are developed by the Electronics Industries Alliance (EIA)?
vladimir1956 [14]

Answer:

It comprises individual organisation that together have agreed on certain data transmissions standards such as EIA/TIA -232 formerly known as RS- 232

5 0
3 years ago
Read 2 more answers
Fire stick optimizing system storage and applications
vivado [14]

Answer:

IN MY PROFILE

Explanation:

I HAVE AWNSERED THIS QUESTION THROUGHOUT MY BEING HERE PLEASE DO NOT BE AFRAID TO CLICK ON MY PROFILE AND FIND THE ANSWER

5 0
3 years ago
Whats the recommended amount of dedodated wam<br>i can have in a server
Scorpion4ik [409]
Hi! The recommended amount of RAM that you should have is 6gb and above.
5 0
3 years ago
Other questions:
  • As the team leader, John ensures that all his teammates are clear in the team goals they need to achieve. He demonstrates the qu
    12·2 answers
  • What is meaning of reboot
    7·2 answers
  • Do you think technology and social media have made it easier or more difficult to make connections and find a job? Explain.
    12·1 answer
  • _____ supplement operating system software in ways that increase the security or capabilities of the computer system. firewalls,
    15·1 answer
  • Which Call of Duty game is the best?
    6·1 answer
  • Write a program to enter a number and test if it is greater than 45.6. If the number entered is greater than 45.6, the program n
    8·1 answer
  • Is the address 7b invalid regarding cell references?
    8·1 answer
  • 8.7 lesson practice question 1
    13·1 answer
  • Danny wants to create a web page for her friends dog walking service. Which coding language should she use
    12·1 answer
  • What is a . com in a web address mean<br>​
    10·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!