Intro to Programming c#
Weekly challenges
Week - 2
Chapter 4
Chapter 5
Email me if you need help--
Happy Programming!
*Day 1 -
Create a form app –
Let’s you input you name and age – use tryParse as needed –
Give a message weather you are old enough to vote or not. If not tell the use how many years they have to wait to vote-
*Day 2
Create a windows application that lets a user enter a number (double) and the application will Test if the number is divisible by 5. Use error checking. Give appropriate messages to show if it is divisible by 5.
Have Fun with it!
*Day 3 –
Write a program in C# Sharp to read any day number in integer and display day name in the word.
Use a Switch Case - and
int.tryParse for error checking
Test Data : 4 Expected Output : Thursday
*Day 4
Create a windows application that lets a user enter a number (double) and the application will Test if the number is divisible by 5. and if it is also divisible by 10. Use error checking. Give appropriate messages to show if it is only divisible by 5, but not by 10 or if it is divisible by both 5 and 10 or if it is not divisible by both 5 and 10.Use
Have Fun with it!
Day 5-
Write a C# program to get three numbers from the user and display the greatest one.
Day 6 -
Create a program to display on the screen the odd numbers from 15 to 7 (downwards), using "while".
Day 7- (a little harder)
Display the multiplication tables from 2 to 6, using nested "do...while" statements.
Have FUN - let me know if you need any help
Copyright 2018 RPP TRAINING. all rights reserved. |