3. Write a program named Admission for a college's admissions office. The user enters a numeric high school grade point average (for 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.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

Question 3. Help would be appreciated! I'm having trouble getting both scores to show  on output. Not sure what I am doing wrong! If anyone can help me or show images with input and output.

 

1.
20.
2.
19.
add TAX to price?
Which of the following C# expressions means, "If itemNumber is 5 and zone is 1 or 3.
price
if(itemNumber -
b. if(itemNumber - 5 && (zone -- 1 || zone -- 3))
price - price + TAX;
price + TAX;
5 && zone -1 11 zone -- 3)
d. two of these
Exercises
if(itemNumber - 5 && (zone --1 || 3))
price - price + TAX;
integer itemNumber is not 100?
Which of the following C# expressions results in TAX being added to price if the
a. if(itemNumber != 100)
price
price + TAX;
b. if(! (itemNumber -- 100))
price = price + TAX;
price
c. if(itemNumber <100 || itemNumber > 100)
price + TAX;
d. all of these
181
Programming Exercises
Write a program named CheckCredit that prompts users to enter a purchase price
for an item. If the value entered is greater than a credit limit of $8,000, display an error
message; otherwise, display Approved.
Write a program named Twitter that accepts a user's message and determines
whether it is short enough for a social networking service that does not accept
messages of more than 140 characters.
3.
Write a program named Admission for a college's admissions office. The user enters
a numeric high school grade point average (for 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.
Transcribed Image Text:1. 20. 2. 19. add TAX to price? Which of the following C# expressions means, "If itemNumber is 5 and zone is 1 or 3. price if(itemNumber - b. if(itemNumber - 5 && (zone -- 1 || zone -- 3)) price - price + TAX; price + TAX; 5 && zone -1 11 zone -- 3) d. two of these Exercises if(itemNumber - 5 && (zone --1 || 3)) price - price + TAX; integer itemNumber is not 100? Which of the following C# expressions results in TAX being added to price if the a. if(itemNumber != 100) price price + TAX; b. if(! (itemNumber -- 100)) price = price + TAX; price c. if(itemNumber <100 || itemNumber > 100) price + TAX; d. all of these 181 Programming Exercises Write a program named CheckCredit that prompts users to enter a purchase price for an item. If the value entered is greater than a credit limit of $8,000, display an error message; otherwise, display Approved. Write a program named Twitter that accepts a user's message and determines whether it is short enough for a social networking service that does not accept messages of more than 140 characters. 3. Write a program named Admission for a college's admissions office. The user enters a numeric high school grade point average (for 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.
00 File Edit View
1-2
Toolbox
= More
esc
What's New?
C# Admission
100%
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
27
Git Project Build Debug Test Analyze Tools
|--
80°F
Mostly sunny
Q
T
}
No issues found
Program.cs + X Form1.cs [Design]
O references
static void Main()
{
Debug
}
Any CPU
if (grade >= 3.0 && score >= 60)
if (grade < 3.0 && score >= 80)
{
else
C# Interactive (.NET Framework 64-bit) Error List Output
Ready
3
Admission.Program
Start
Console.Write("Enter grade point average: ");
double grade = Convert.ToDouble(Console.ReadLine());
Console.Write("Enter the Test Score point: ");
double score = Convert.ToDouble(Console.ReadLine());
Console.WriteLine("Reject");
R
Extensions
11
Console.WriteLine("Scores: + grade + + score);
Console.WriteLine("Accept");
%
P
5
1
<
Not YourAverageFlight viewers als
6
Window Help
Output
Show output from: Debug
'Admission.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C:\windows\Microsoft.Net\assembly\GAC_32\mscorlib\v4.0_4.0.0.0 b77a5c561934e089\mscorlib.c
The program '[2064] Admission.exe has exited with code 0 (0x0).
'Admission.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C:\Users\conle\source\repos\Admission\Admission\bin\Debug\Admission.exe'. Symbols loaded.
ab.
&
Search (Ctrl+Q)
?
hp
這习习习,
*
Main()
8
Ln: 27
110.
Admission
Ch: 13
SPC CRLF
- X
P
↑ Add to Source C
E
$12
Transcribed Image Text:00 File Edit View 1-2 Toolbox = More esc What's New? C# Admission 100% 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 27 Git Project Build Debug Test Analyze Tools |-- 80°F Mostly sunny Q T } No issues found Program.cs + X Form1.cs [Design] O references static void Main() { Debug } Any CPU if (grade >= 3.0 && score >= 60) if (grade < 3.0 && score >= 80) { else C# Interactive (.NET Framework 64-bit) Error List Output Ready 3 Admission.Program Start Console.Write("Enter grade point average: "); double grade = Convert.ToDouble(Console.ReadLine()); Console.Write("Enter the Test Score point: "); double score = Convert.ToDouble(Console.ReadLine()); Console.WriteLine("Reject"); R Extensions 11 Console.WriteLine("Scores: + grade + + score); Console.WriteLine("Accept"); % P 5 1 < Not YourAverageFlight viewers als 6 Window Help Output Show output from: Debug 'Admission.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C:\windows\Microsoft.Net\assembly\GAC_32\mscorlib\v4.0_4.0.0.0 b77a5c561934e089\mscorlib.c The program '[2064] Admission.exe has exited with code 0 (0x0). 'Admission.exe' (CLR v4.0.30319: DefaultDomain): Loaded 'C:\Users\conle\source\repos\Admission\Admission\bin\Debug\Admission.exe'. Symbols loaded. ab. & Search (Ctrl+Q) ? hp 這习习习, * Main() 8 Ln: 27 110. Admission Ch: 13 SPC CRLF - X P ↑ Add to Source C E $12
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 3 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY