Question: Please answer question 4.14 in java! codes in New York state. Write an equivalent fragment of code using if-else statements instead. 4.14 Every member of

Please answer question 4.14 in java!
 Please answer question 4.14 in java! codes in New York state.

codes in New York state. Write an equivalent fragment of code using if-else statements instead. 4.14 Every member of your secret club has an ID number. These ID numbers are between 1 and 1,000,000 and have two special characteristics: They are multiples of 7 and all end with a 3 in the one's place. For example, 63 is the smallest such value, and 999,943 is the largest such value. Write a program that prompts the user for an int value, read it in, and then say whether or not it could be used as an ID number. Note: You need to use the % operator in two different ways to test the value correctly. 4.15 According to the North American Numbering Plan (NANP) used by the United States, Canada, and a number of smaller countries, a legal telephone number takes the form XYY-XYY-YYYY, where X is any digit 2-9 and Y is any digit 0-9. Write a program that reads in a String from the user and verifies that it is a legal NANP phone number. The length of the entire String must be 12The fourth and eight characters in the String (with indexes 3 and 7) must be hyphens (-), and all the remaining digits must be in the correct range. Use the charAt () method of the String class to get the char value at each index. Note: There are several ways to structure the if statements you need to use, but the number of conditions may become large. (23 or more!) 4.16 Re-implement the solution to the Monty Hall program given in Section 4.4 using JOptionPane to GUI generate GUls for input and output

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!