Lesson 1.H – Day 01 Homework Assignment
C# Course for Absolute Beginners – Lesson 1.H
Next Lesson
Introduction
This is the most important lab of Day 01 – This is your first homework assignment. We feel so strongly about this that we strongly encourage you to not continue on to Day 02, unless you finish this homework project. If you can’t solve the assignment, review the solution lab. Remember, you’re only cheating yourself if you don’t practice the code on a daily basis.
Consider the following scenario:
You work for the Brahma Initiative, a university-sponsored government-funded research project. For the sake of argument, imagine that it observes psychological behavior. At one of your observation stations there was an incident a few years ago, and now every 108 minutes someone needs to type in a specific sequence of numbers into a program that you write so that the world doesn’t end.
Step 1: User Successful

Observe a prototype we’ve created for this. You can see that it’s a Console Application. The window will direct the user to type in the correct numbers and press Return.
In the second line the user has entered the correct numbers – the numbers have to be this specific sequence of numbers : 4 8 15 16 23 42 and then press Return
The Console Window replies with "Recalibrating energy core … Complete"
Step 2: User Unsuccessful

Now observe the second possibility, where the user does not enter the sequence correctly. In this instance the program returns “Failure!”
Conclusion
This assignment should be pretty straightforward. If you need assistance, review the previous labs – those labs should contain all the information you require to complete this excercise.
As a bonus challenge, try to make the application beep if the user enters incorrect values. There’s a method for that; use IntelliSense to discover it. Hint: It is part of the console class.
As an additional challenge, make the text appear red in the application.
These challenges make the assignment significantly more difficult, but see if you can solve the challenges. It not, they will be discussed in the next lab. We didn’t discuss either challenge in the labs, but through IntelliSense and possibly some help and the tool tips, you might be able to figure it out on your own. Consider this as a way to stretch your abilities and to force you to think a little bit harder outside the box.

