Instructions Previously, you wrote a program named Admission for a college admissions office in which the user enters a numeric high school grade point average and an admission test score. The program displays Accept or Reject based on those values. Now, create a modified program named Admission Modularized in which the grade point average and test score are passed to a method that returns a string containing Accept or Reject. Grading When you have completed your program, click the Submit button to record your score. Admission Modularize... + 1 using System; 2 using static System.Console; 3 class Admission 4 { 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 static void Main() { double gpa; int testScore; const double MINGPA = 3.0; const int ADMIN1 = 60, ADMIN2 = 80 string inputString; WriteLine("Enter grade point avera; inputString = ReadLine(); gpa = Convert.ToDouble(inputString WriteLine("Enter test score "); inputString = ReadLine(); test Score = Convert.ToInt32 (inputS- if(gpa >= MINGPA) if(test Score >= ADMIN1) WriteLine("Accept"); WriteLine("Reject"); if(testScore >= ADMIN2) WriteLine("Accept"); else else

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter7: Using Methods
Section: Chapter Questions
Problem 7E
icon
Related questions
Question
Instructions
Previously, you wrote a program named
Admission for a college admissions office
in which the user enters a numeric high
school grade point average and an
admission test score. The program
displays Accept or Reject based on those
values. Now, create a modified program
named Admission Modularized in which
the grade point average and test score are
passed to a method that returns a string
containing Accept or Reject.
Grading
When you have completed your program,
click the Submit button to record your
score.
Admission Modularize... +
1 using System;
2 using static System.Console;
3 class Admission
4 {
LO
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
static void Main()
{
double gpa;
int testScore;
const double MINGPA = 3.0;
const int ADMIN1 = 60, ADMIN2 = 80
string inputString;
WriteLine("Enter grade point averag
inputString = ReadLine();
gpa = Convert.ToDouble(inputString
WriteLine("Enter test score ");
inputString = ReadLine();
test Score = Convert.ToInt32(inputS-
if (gpa > MINGPA)
if(test Score >= ADMIN1)
WriteLine("Accept");
WriteLine("Reject");
if(test Score >= ADMIN2)
WriteLine("Accept");
else
else
Transcribed Image Text:Instructions Previously, you wrote a program named Admission for a college admissions office in which the user enters a numeric high school grade point average and an admission test score. The program displays Accept or Reject based on those values. Now, create a modified program named Admission Modularized in which the grade point average and test score are passed to a method that returns a string containing Accept or Reject. Grading When you have completed your program, click the Submit button to record your score. Admission Modularize... + 1 using System; 2 using static System.Console; 3 class Admission 4 { LO 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 static void Main() { double gpa; int testScore; const double MINGPA = 3.0; const int ADMIN1 = 60, ADMIN2 = 80 string inputString; WriteLine("Enter grade point averag inputString = ReadLine(); gpa = Convert.ToDouble(inputString WriteLine("Enter test score "); inputString = ReadLine(); test Score = Convert.ToInt32(inputS- if (gpa > MINGPA) if(test Score >= ADMIN1) WriteLine("Accept"); WriteLine("Reject"); if(test Score >= ADMIN2) WriteLine("Accept"); else else
Expert Solution
steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Knowledge Booster
void method
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT