ClSB 2 06
Business Application Programming
Project 05
To be placed in your Projects folder on the K: drive
Due Date:
Due Thursday, March 9 by 9:3oam
Solution name: [lastname] [first initial] -Proj5
Problem 1 (25 points)
Write a WinForms app that contains a DateTimePicker that allows the user to enter
a date. When the “Date in Words” button is pressed, put the date into a label in the
formate:
March 2, 2017 is a Thursday.
Do not use a format string to accomplish this. Use a switch statement to
determine the month name. Concatenate the month name, day number, space, year,
is a “, and day name into a string that is placed in the appropriate property of a
Label for display. Note: You can use the DayOfl/Veek property of a DateTime to help
determine the day of week. Look it up and figure out how to get the word
“Thursday” if the date is 3/2/2017.
Problem 2 (25 pain ts)
Write a WinForms app to play Rock, Paper, Scissors, Lizard, Spock (Big Bang Theory
look it up). Place an appropriately labeled ComboBox that contains items: Rock,
Paper, Scissors, Lizard, Spock as items in the dropdown. Change the DropDownStyle
to DropDownList, which prevents a user from typing in the ComboBox. A user
selects one ofthe options in the ComboBox. Next, the user should click the Play
button.
When the Play button is clicked, create a new instance of the Random class and get a
number between 0 and 4. Use the Selectedlndex property of the ComboBox to
determine the number between 0 and 4 that the user selected.
In Labels, display what the use selected and what the computer selected as follows:
You selected: Rock
Computer selected: Paper
Paper covers Rock: You lose!
PLACE THIS ORDER OR A SIMILAR ORDER TODAY AND GET AN AMAZING DISCOUNT 🙂