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 threeline comment below:
Assignment Section X
where X stands for the portion of the assignment to follow
Section :
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. eg
Hint: If the user enters the numbers and then the expected output would be:
Section :
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
If the grade entered is greater than or equal to then print to the console, Congratulations you passed.
If the grade is below then print to the console, Sorry you failed.
Section :
Enter the comment with the section title.
Request the user to enter a number, through 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 :
Enter the comment with the section title.
Request the user to enter a number, through 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:
Enter second integer:
Enter grade and determine whether you passed:
Congratulations, you passed
Enter the number of the month:
The Month is July.
Enter the number of the day of the week:
Sunday
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
