Question
For all 3 program use switch and case structure: flawchart (no codes) 1. Design a program that prompt the user to enter number of the
For all 3 program use switch and case structure: flawchart (no codes) 1. Design a program that prompt the user to enter number of the month of the year, then program should print the number of the days in that month. If user entered 1 the program should print there are 31 days in the month and if the user enters 2 for February check to see if it is a leap year or not when the program prints the number of the day in the month. 2. Design a program that prompts the user to enter vehicle type: 1 for passenger car and the tool charge is 0.50 cents, 2 for bus and the tool charge is 1.50 cents , 3 for truck and the tool charge is 2.00, 4 for motorcycle and the tool charge is 0.75. Program should print the type of vehicle and the toll charge. 3. Design a program that allows the user to enter a character, if user entered a, e, I, o, u then the Program should print the character entered was vowel otherwise print you entered a consonant. Hint, be aware that if you enter a number program will print consonant which is okay.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started