Write a program to ask the user to enter 5 student names


Create two arrays with 5 elements each: one will hold Strings and the second will hold integers.

Write a program to ask the user to enter 5 student names and their ages. Output the data from the parallel arrays.

Sample Run: Program must run exactly like the example below.

Enter a student name: Joe

Enter a student name: Mark

Enter a student name: Mary

Enter a student name: Michelle

Enter a student name: Aaron

Enter Joe's Age: 25

Enter Mark's Age: 24

Enter Mary's Age: 35

Enter Michelle's Age: 19

Enter Aaron's Age: 65

Joe 25

Mark 24

Mary 35

Michelle 19

Aaron 65

 

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Write a program to ask the user to enter 5 student names
Reference No:- TGS0661643

Expected delivery within 24 Hours