Question: You will complete a program to demonstrate the skills presented in this lesson using C# . Please keep in mind that with all the assignments

You will complete a program to demonstrate the skills presented in this lesson using C#. Please keep in mind that with all the assignments in this course, any given scenarios are hypothetical and intended solely to demonstrate specific skills.
Assignment Requirements
The program for this assignment will consist of four sections, each headed by the three-line comment below:
//*********************************************************
//****Assignment 2 Section X
//*********************************************************
(where X stands for the portion of the assignment to follow)
Section 1:
Enter the comment with the section title.
Request the user to enter two whole numbers and store those whole numbers in two appropriately defined variables.
Using separate and independent IF statements, compare the two whole numbers with each of the following comparison operators. ==,!=,<,>,<=,>=
Each IF statement that proves true should print to the console the numbers compared and the comparison made. e.g.,5>=2
Hint: If the user enters the numbers 5 and 2 then the expected output would be:
5<>2
5>2
5>=2
Section 2:
Enter the comment with the section title.
Request the user to enter a grade.
Using an if statement with an else clause, compare the user input with the number 60.
If the grade entered is greater than or equal to 60 then print to the console, Congratulations, you passed.
If the grade is below 60 then print to the console, Sorry, you failed.
Section 3:
Enter the comment with the section title.
Request the user to enter a number, 1 through 12, which will represent the month of the year.
Using an if statement with a series of else if statements, determine which month was entered.
Write the name of the month to the console.
Write an error message if the number proves to be invalid.
Section 4:
Enter the comment with the section title.
Request the user to enter a number, 1 through 7, which will represent the day of the week.
Using a switch statement, determine which day of the week was entered.
Write the name of the day of the week to the console.
Write an error message if the number proves to be invalid.
POSSIBLE EXPECTED OUTPUT
Enter first integer: 3
Enter second integer: 9
3<>9
3<9
3<=9
Enter grade and determine whether you passed: 60
Congratulations, you passed
Enter the number of the month: 7
The Month is July.
Enter the number of the day of the week: 1
Sunday

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!