Question: Write and call a method which uses a switch statement to solve the following questions: Q 1 : Check if the user name contains the
Write and call a method which uses a switch statement to solve the following questions: Q: Check if the user name contains the letter r or not. the name is entered by the user Q: Determine whether a number entered by the user is odd or even. Q: Check whether an entered number is a multiple of or not. Q: Compute the net salary of an employee based on the number of family members, as follows: You have to input the basic salary and the number of family members count or : add to the salary. count : add to the salary. count or : add to the salary. otherwise: add to the salary. Q: Prompt the user to enter hisher name, and prints "your name is too short" if the length of the name is less than or equals characters, otherwise, it prints "your name has more than characters
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
