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
babunello [35]
3 years ago
15

Write a program named Admission for a college’s admissions office. The user enters a numeric high school grade point average (fo

r example, 3.2) and an admission test score. Display the message Accept if the student meets either of the following requirements: A grade point average of 3.0 or higher, and an admission test score of at least 60 A grade point average of less than 3.0, and an admission test score of at least 80 If the student does not meet either of the qualification criteria, display Reject.
Computers and Technology
1 answer:
Gennadij [26K]3 years ago
4 0

Answer:

C++ Example

Explanation:

Code

#include<iostream> //for input and output  

#include<string>

using namespace std;  

int main()  

{  

  float gpa;

  int testScore;

  cout<<"Enter GPA:";

  cin>>gpa;

  cout<<"Enter Test Score: ";

  cin>>testScore;

  if((gpa>=3.2 && testScore>=60) || (gpa>=3.0 && testScore>=80)){

   cout<<"Accept";

  }

  else{

    cout<<"Reject";

  }

}  

Code Explanation

First we need to define a float GPA variable and integer test score variable.

Then prompt user to enter both value.

Once user enter the values then we added if statement to check both accepting criteria. If criteria matches then show Accept otherwise else part will execute and show Reject.

Output

Case 1:

Enter GPA:3.0

Enter Test Score: 80

Accept

Case 2:

Enter GPA:3.2

Enter Test Score: 60

Accept

Case 3:

Enter GPA:3.2

Enter Test Score: 59

Reject

You might be interested in
What controls are available on the ribbon in a contact window
sergij07 [2.7K]

Contact solution is the answer and the work is your brain
8 0
4 years ago
Which 10 gigabit standard uses mmf cabling for distances up to 300 meters and is often used for sonet campus networks?
WITCHER [35]

I guess the correct answer is 10GBase-SW

10GBASЕ-SW mеdia typеs arе dеsignеd fοr usе οvеr shοrt wavеlеngth (850 nm) multimοdе fibеr (MMF). Thе dеsign gοal οf thеsе mеdia typеs is frοm 2 mеtеrs tο 300 mеtеrs οf fibеr distancе, dеpеnding οn thе typе and quality οf thе multimοdе fibеr. Lοngеr distancеs arе pοssiblе dеpеnding οn thе qualitiеs οf thе fibеr οptic cablе usеd. Thе 10GBASЕ-SW mеdia typе is dеsignеd tο cοnnеct tο SΟNЕT еquipmеnt, which is typically usеd tο prοvidе lοng distancе data cοmmunicatiοns.

5 0
3 years ago
NO LINKS
horsena [70]

Answer:

#include <iostream>

#include <string>

#include <regex>

using namespace std;

int main()

{

   cout << "Enter a 5-digit number: ";

   string number;

   cin >> number;

   bool valid = regex_search(number, regex("^\\d{4}[02468]$"));

   if (valid) {

       valid = stoi(number.substr(0, 1)) + stoi(number.substr(1, 1))  

           < stoi(number.substr(3, 1)) + stoi(number.substr(4, 1));

   }

   cout << number << (valid ? " is valid" : " is invalid");

}

Explanation:

Regular expressions can do all of your checking except for the sum of digits check. The checks are i.m.o. easiest if you don't treat the input as a number, but as a string with digits in it.

The regex means:

^ start of string

\d{4} exactly 4 digits

[02468] one of 0, 2, 4, 6 or 8 (this is what makes it even)

$ end of string

3 0
3 years ago
A user has multiple web pages open and is using email. Which layer of the Transmission Control Protocol/Internet Protocol (TCP/I
Fudgin [204]

Answer:

This is the second question like this I've seen. They aren't the greatest.

Explanation:

The question is not good. The answer would be option a, Transport even though it doesn't make a whole lot of sense when you really go into detail.

It could also be option d, Application but I think they're going for the first.

6 0
2 years ago
How to get fast frontend development online job as a beginner?​
mezya [45]

Answer:

hmmm well what is your magager?? every job will ask you what you can do.

3 0
3 years ago
Other questions:
  • Annabeth has been using a public cloud to store and access her documents. Which drawback of a public cloud should she be aware o
    11·1 answer
  • ____________ approach involves trying every possible key until an intelligible translation of the ciphertext into plaintext is o
    7·1 answer
  • Laura is in the middle of making a presentation. On one slide, she includes a heading, three subheadings, and three bullet point
    13·1 answer
  • In a formatted text file, ________ signal(s) the beginning and end of a formatting command.
    12·1 answer
  • The PATH environment variable.
    5·1 answer
  • One factor affecting digital camera quality is the number of pixels, measured in ____, used to store the data for each image.
    8·2 answers
  • Write an instance method in Rational called add that takes a Rational number as an argument, adds it to this, and returns a new
    12·1 answer
  • Indentation is useful to make the document easier to read. To increase the indentation of the paragraph, you press the increase
    10·1 answer
  • What is an Integrated Development Environment (IDE)?
    8·1 answer
  • Years ago when working a helpdesk, the most common question asked, almost daily, was about resetting passwords. What type of kno
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!