Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

fix below code. In the code, I wrote For loop and Switch but those are not executed. I want it to be executed like below



 fix below code.

In the code, I wrote For loop and Switch but those are not executed.

I want it to be executed like below pics.


* Below pics, from "Enter your name: to "Phone number: is OK but after Phone number, I want it to be executed like 2nd pic

imageimageimageimageimageimage

Enter your Name: Midori W Enter your Email: kimidori70@gmail.com Enter your Phone number: 4157778888 Enter your Birthday (e.g dd, mm, yyyy): 05,29, 2009 Are you over 21 (y/n): n Name: Midori W Email: kimidori70@gmail.com Phone number: 4157778888 You didn't indicate if you are over 21 or not with y/n Invalid year After "Phone number: 4157778888", I want it to be executed like below pic, Not "you didn't indicate if you are over 21 or not with y/n" and "Invalid year" You were born on happy < < < >> Too bad!!! You are under 21 years <

Step by Step Solution

There are 3 Steps involved in it

Step: 1

import javautilScanner public class BakingBis public static void mainString args Scanner sc new Scan... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Income Tax Fundamentals 2013

Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill

31st Edition

1111972516, 978-1285586618, 1285586611, 978-1285613109, 978-1111972516

More Books

Students also viewed these Programming questions