Discount Get CIS 170 ALL WEEKS Solution ONLY $68.95 $91.93
CIS 170 Week 1 - C# [$7.99]
CIS 170 Week 2 - Calculate Shipping Charge, TV Channel to Call Si... [$15.99]
CIS 170 Week 3 - Dive Scoring Program [$9.99]
CIS 170 Week 4 - Phone Dialing Program [$9.99]
CIS 170 Week 5 - Tournament Stats Alphabetical Order [$15.99]
CIS 170 Week 6 - Password Program , Number Guessing Game [$15.99]
CIS 170 Week 7 - Contact Program [$15.99]
CIS 170 CIS 170B C# - Final Exam [$21.99]
Get Selected Weeks Solution with ONLY NOT Add Selected Tutorials To Cart
CIS 170 CIS/170 CIS170 C# - Week 6 - Lab 6 - iLab 6 - Password Program , Number Guessing Game
    CIS 170 CIS/170 CIS170 C# - Week 6 - Lab 6 - iLab 6 - Password Program , Number Guessing Game CIS 170 CIS/170 CIS170 C# - Week 6 - Lab 6 - iLab 6 - Password Program , Number Guessing Game

CIS 170 CIS/170 CIS170 C# - Week 6 - Lab 6 - iLab 6 - Password Program , Number Guessing Game

$15.99

iLab Steps

Part A: Password Program

Requirements

Write a Windows application that simulates entering a password. The user enters a password and clicks Next. Then, the user types the password again and clicks Continue. The program will display a Message Box that displays either that the passwords match or that they don’t match.

Sample output:

I type in Bob in the password field and click Next.

I type in Bob in the second password field and click Continue.

Message displayed if the passwords match:

Message displayed if the passwords are different:

Tips

Best practice: First make sure to read through this week’s lecture and try it yourself! Then, you’ll be in good shape for this exercise.

Pseudocode:

Next Button Event Handler Method

If the first password textbox is not blank

Make visible the second password textbox, the Done button, and the labels

Else

Put “You must enter a password” in the label

End-If

Done Button Event Handler Method

If the first password text box is not empty

If the first password text box equals the second password textbox

 

   Display the message “Passwords are the same”§

Else

   Display the message “Passwords are different”§

End-If

Else

Display the message “You must enter a password”

End-If

END OF PART A

Part B: Number Guessing Game

Requirements

Write a Windows application that randomly generates a number from 0 through 100. Prompt the user to guess the number. Let the user know if the guess is too low, too high, or is the correct number. Give the user another chance to guess the number. The user keeps guessing until he or she gets it correct.

Sample output:

I entered a number and pressed the button.

I pressed the button and the box and message are cleared.

I entered a number and pressed the button.

After entering several numbers, I got the following:

The following message is displayed when the guess is right.

Tips

Pseudocode:

Form constructor method

Randomly pick a target number between 0 and 100

Evaluate Button Click Event Handler Method

If the guess text box is not blank

Pull the guess from the text box

Add 1 to the number of guesses

If the guess is less than the target

   Make the Evaluate button invisible

   Change the label message to “Too Low!!”

   Make the label message visible

   Change the background color of the form to LightSeaGreen

   Make the Try Again button visible

Else if the guess is greater than the target

   Make the Evaluate button invisible

   Change the label message to “Too High!!”

   Make the label message visible

   Change the background color of the form to SlateBlue

   Make the Try Again button visible

Else

   Display a message indicating the user guessed correctly and display the number of guesses it took.

End-If

End-If

Try Again Button Click Event handler

Clear the guess text box

Make the label message and Try Again buttons invisible

Make the Evaluate button visible

END OF PART B

END OF LAB

My tutorial contains Visual Studio C# 2010 Project and Word Document and Detailed comments

If you have more questions, please contact me via email support@extutorials.com

I will help you any time

Thank you !

Attached Files

Move over [ preview ] file name to preview content in it!

Write a review

Your Name:


Your Review: Note: HTML is not translated!

Rating: Bad           Good

Enter the code in the box below:



PURCHASE SAVE
2 Tutorials 10%
3 Tutorials 13%
4 Tutorials 16%
5 Tutorials 19%
6 Tutorials 22%
7 Tutorials 25%
8 Tutorials 28%
9 Tutorials 31%
10 Tutorials 34%
add url more

9MZQASHWN73B