Purpose
The purpose of this assignment is to provide the student an opportunity to demonstrate knowledge of the various decision structures such as the if, else if, and switch statements.
Assignment Instructions
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:
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.
If the grade entered is greater than or equal to 60 then print to the console, “
Congratulations, you passed
.”
Section 3:
Section 4:
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
Directions for Submitting Your Assignment
The source code file is the file in your project that contains the code you wrote. You will only need to submit the source code file for your program and not the entire project folder or any additional project files.
Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.
You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.
Read moreEach paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.
Read moreThanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.
Read moreYour email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.
Read moreBy sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.
Read more