Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

IN C# - Problem #1 Logical Operators: Making The Grade In this program we are going to ask the user for 2 grades. You should

IN C# - Problem #1 Logical Operators: Making The Grade In this program we are going to ask the user for 2 grades. You should validated both grades to make sure they are numbers and store the converted number values in 1 array with 2 elements.

Then create a single conditional that would determine if both grades are both 70 or above. If they are, tell the user that both grades are passing. If one or both of the grades are lower than 70, tell them to try harder next time. Make sure to use the array value inside of the conditional tests.

User Inputs: o Prompt for (2) test grades one at a time.

Storetheconvertednumbervaluesinsideofanarraythatyoucreate.

Result To Print Out:

o Congrats, both grades are passing! Or One or more grades are failing, try harder next time!

Data Sets To Test:

o Grade 1 95 Grade 2 85 Results Congrats, both grades are passing!o Grade 1 82 Grade 2 68 Results One or more grades are failing, try

harder next time! o Grade 1 Eighty Computer should Re-prompt , Grade1 80 Grade 2 - 91

Results Congrats, both grades are passing!

o Test One Of Your Own & Write all 4 of these tests in a multi-lined comment in your code.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

SQL Server T-SQL Recipes

Authors: David Dye, Jason Brimhall

4th Edition

1484200616, 9781484200612

More Books

Students also viewed these Databases questions

Question

What is Change Control and how does it operate?

Answered: 1 week ago

Question

How do Data Requirements relate to Functional Requirements?

Answered: 1 week ago