Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Need help with this Java lab exercise please. ***SAMPLE OUTPUT*** Please enter the name of user 1: Billy Smith Please enter the userID for Billy

Need help with this Java lab exercise please.

image text in transcribed

***SAMPLE OUTPUT***

Please enter the name of user 1: Billy Smith

Please enter the userID for Billy Smith: bSmithSATX

Please enter the name of user 2: Estelle Geddis

Please enter the userID for Estelle Geddis: gGeddisLACA

USER INFORMATION

User Name: Billy Smith

User ID: bSmithSATX

User Name: Estelle Geddis

User ID: gGeddisLACA

Lab Exercise 6.3 Instructions: Code a program that stores user information in a 2D array where the 1st row contains the user names and the 2nd row the user IDs. Once the array is populated, print the information. Code everything in the main). Use printf(). Code your program according to the specifications below. Use the looping structure generally associated with array processing. There will be embedded for loops and an embedded if...else. The if.. .else is in the for loops that populate the array. Name the program YourLastNameFirstinitialLE63.java bSmithsATX Billy Smith Estelle Geddis eGeddisLACA 1st Input Prompt: where 9 represents 1 or 2 or 3, etc. Please enter the name of user 9: 2nd Input Prompt where the Xs represent the user's name. In the nested for, to reference the user name subtract 1 fronm the column index. Please enter the userlD for Xxxxxxxx Xxxxxxxx Output Specifications: Where the Xs represent the names of your users and their user IDs. The print for the header has to be outside of the for loops because it's printed only once. To successfully print the output, you will loop through the rows with the outer for, but in the nested for, you'll only loop through the first column, then use the column index plus 1 to access the user ID in the 2nd column

Step by Step Solution

There are 3 Steps involved in it

Step: 1

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

More Books

Students also viewed these Databases questions

Question

Market generated distribution of income may be unfair

Answered: 1 week ago