Question 4. C# I have the project done, i’m just not sure if the output is right or not. Help would be appreciated!

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
100%
Question 4. C# I have the project done, i’m just not sure if the output is right or not. Help would be appreciated!
Edit View Git
am.cs X What's New?
dentGradeDemo
1
2
esc
3
4
89 %
5
Y
6
7
GEEFS600
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
-4
Project
using System;
7 references
Eclass Report Card
{
56°F
Clear
Error List Output
Ready
Y
Build Debug Test Analyze Tools Extensions Window Help
StudentGradeDemo▷ -
Y
public string name;
public int midTermGrade;
public int finalTermGrade;
public char grade;
Debug -
}
3 references
public ReportCard(string nam, int mid, int final)
{
Any CPU
name = nam;
midTermGrade = mid;
finalTermGrade = final;
HelloWorld
double avg= (double) (midTermGrade = finalTermGrade) / 2;
if (avg> 90 && avg <= 100)
{
grade = 'A';
}
else if (avg> 80 && avg <= 90)
{
grade = 'B';
}
else if (avg> 70 && avg <= 80)
{
No issues found
#
if (midTermGrade <0 || final TermGrade < 0)
{
throw new ArgumentException(String.Format("Either midTermGrade or final TermGrade is less than 0"));
}
if (midTermGrade > 100 || finalTermGrade > 100)
{
throw new ArgumentException(String.Format("Either midTermGrade or finalTermGrade is greater than 100"));
101
▬▬
Search (Ctrl+Q)
5
L-
- Main()
8
P
Stuc
Transcribed Image Text:Edit View Git am.cs X What's New? dentGradeDemo 1 2 esc 3 4 89 % 5 Y 6 7 GEEFS600 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 -4 Project using System; 7 references Eclass Report Card { 56°F Clear Error List Output Ready Y Build Debug Test Analyze Tools Extensions Window Help StudentGradeDemo▷ - Y public string name; public int midTermGrade; public int finalTermGrade; public char grade; Debug - } 3 references public ReportCard(string nam, int mid, int final) { Any CPU name = nam; midTermGrade = mid; finalTermGrade = final; HelloWorld double avg= (double) (midTermGrade = finalTermGrade) / 2; if (avg> 90 && avg <= 100) { grade = 'A'; } else if (avg> 80 && avg <= 90) { grade = 'B'; } else if (avg> 70 && avg <= 80) { No issues found # if (midTermGrade <0 || final TermGrade < 0) { throw new ArgumentException(String.Format("Either midTermGrade or final TermGrade is less than 0")); } if (midTermGrade > 100 || finalTermGrade > 100) { throw new ArgumentException(String.Format("Either midTermGrade or finalTermGrade is greater than 100")); 101 ▬▬ Search (Ctrl+Q) 5 L- - Main() 8 P Stuc
t
View
CA Microsoft Visual Studio Debug Console
Alex 90 90 F
Either midTermGrade or finalTermGrade is less than e
Either midTermGrade or finalTermGrade is greater than 100
89%
Git Project Build Debug Test Analyze
02
Debug
Any CPU
31
32
33
-16
Error List Output
Ready
56°F
Clear
esc
C:\Users\conle\OneDrive\Documents\Student GradeDemo\StudentGradeDemo\bin\Debug\net6.0\Student GradeDemo.exe (process 12920
) exited with code 0.
Press any key to close this window..
7
1
?
E
else if (avg> 70 && avg <=80)
{
No issues found
12
GN
2
*
fa
#
3
E
4
Tools Extensions Window
StudentGradeDemo ▷
$
4
R
%
LL
5
A
T
Y
6
4
&
Y
Help Search (Ctrl+Q)
T
hp
7
*
8
144
9
MA
P StudentGradeDemo
AB
K
Po
DAI
0 X
↑ Add to Source Contra
P
12
Ln: 68 Ch
Transcribed Image Text:t View CA Microsoft Visual Studio Debug Console Alex 90 90 F Either midTermGrade or finalTermGrade is less than e Either midTermGrade or finalTermGrade is greater than 100 89% Git Project Build Debug Test Analyze 02 Debug Any CPU 31 32 33 -16 Error List Output Ready 56°F Clear esc C:\Users\conle\OneDrive\Documents\Student GradeDemo\StudentGradeDemo\bin\Debug\net6.0\Student GradeDemo.exe (process 12920 ) exited with code 0. Press any key to close this window.. 7 1 ? E else if (avg> 70 && avg <=80) { No issues found 12 GN 2 * fa # 3 E 4 Tools Extensions Window StudentGradeDemo ▷ $ 4 R % LL 5 A T Y 6 4 & Y Help Search (Ctrl+Q) T hp 7 * 8 144 9 MA P StudentGradeDemo AB K Po DAI 0 X ↑ Add to Source Contra P 12 Ln: 68 Ch
Expert Solution
steps

Step by step

Solved in 2 steps

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