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]
2 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]2 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 technology concept uses computer resources from multiple locations to solve a common problem?
kramer

Answer: Sounds like you are talking about “Distributed memory systems” which use multiple computers to solve a common problem, with computation distributed among the connected computers (nodes) and using message-passing to communicate between the nodes.

8 0
3 years ago
im past 1000 pts and it still hasnt up my rank from VIRTUOSO to EXPERT can someone explain and yes i have brainly plus
FromTheMoon [43]

Answer:

GREAT!

Explanation:

give me crown please

6 0
3 years ago
Read 2 more answers
You would like the user of a program to enter a customer’s last name. Write a statement thaUse the variables k, d, and s so that
mojhsa [17]

Answer:

1st question:

Use the variables k, d, and s so that they can read three different values from standard input an integer, a float, and a string respectively. On one line, print these variables in reverse order with exactly one space in between each. On a second line, print them in the original order with one space in between them.

Solution:

In Python:

k = input()  #prompts user to input value of k i.e. integer value

d = input()  #prompts user to input value of d i.e. float value

s = input()  #prompts user to input value of s i.e. a string

print (s, d, k)  #displays these variable values in reverse order

print (k, d, s)#displays these variable values in original order

In C++:

#include <iostream>    // to use input output functions

using namespace std;   //to identify objects like cin cout

int main() {    //start of main function

  int k;   //declare int type variable to store an integer value

  float d; //  declare float type variable to store a float value

  string s;   //  declare string type variable to store an integer value

  cin >> k >> d >> s;    //reads the value of k, d and s

  cout << s << " " << d << " " << k << endl;     //displays these variables values in reverse order

  cout << k << " " << d << " " << s << endl;   } // displays these variable values in original order

Explanation:

2nd question:

You would like the user of a program to enter a customer’s last name. Write a statement that asks user "Last Name:" and assigns input to a string variable called last_name.

Solution:

In Python:

last_name = input("Last Name:")

# input function is used to accept input from user and assign the input value to last_name variable

In C++:

string last_name;  //declares a string type variable named last_name

cout<<"Last Name: ";  // prompts user to enter last name by displaying this message Last Name:

cin>>last_name; // reads and assigns the input value to string variable last_name

The programs alongwith their outputs are attached.

6 0
4 years ago
A computer memory that acts as the main storage available to user for programs and data
Gelneren [198K]

Answer:

Primary storage. Primary storage (also known as main memory, internal memory, or prime memory), often referred to simply as memory, is the only one directly accessible to the CPU.

3 0
2 years ago
Which number is the smallest? 4.4 ⋅ 10^-5, 3.99 ⋅ 10^-6, 2.6 ⋅ 10^3
tiny-mole [99]
3.99 • 10^3 is the smallest
8 0
3 years ago
Other questions:
  • "The fact that we could create and manipulate an Account object without knowing its implementation details is called"
    9·1 answer
  • Which access control principle specifies that no unnecessary access to data exists by regulating members so they can perform onl
    11·1 answer
  • Many software makers provide free downloadable updates, sometimes called a(n) ______ to users who have registered and/or activat
    5·1 answer
  • A common technique for masking contents of messages or other information traffic so that opponents can not extract the informati
    14·1 answer
  • There are _______ bits to every byte.
    14·2 answers
  • Which of the following technologies is the best choice to convey urgent and highly sensitive information?a. Telephone b. Fax Let
    12·1 answer
  • Reading log of any book with page numbers​
    5·1 answer
  • Alguien me puede ayudar a arreglar mis auriculares que mi perro rompió en el conector
    5·1 answer
  • What is bug in computer?​
    12·1 answer
  • David plays racing games on his way to work. He uses the analog stick to navigate his vehicle through other artificial intellige
    7·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!