Ask Question
13 April, 01:41

Write an application that stores at least five different college courses (such as CIS101), the time it first meets in the week (such as Mon 9 am), and the instructor (such as Johnson) in a two-dimensional array.

+4
Answers (1)
  1. 13 April, 05:06
    0
    The solution code is written in Java

    String unit [] [] = {

    {"CIS101", "Mon 9 am","Johnson"},

    {"CIS102", "Mon 11 am","Mike"},

    {"CIS103", "Tues 9 am","Sherry"},

    {"CIS104", "Tues 12 pm","Jeff"},

    {"CIS105", "Tues 3 pm","Larry"},

    };

    Explanation:

    To create a two-dimensional array, we can declare a variable named it as unit and followed with two square brackets [ ]. The 2D array shall have five rows of record that entail each subject code, time first meet and instructor.

    To get the first subject code, we can use the syntax as follow

    unit [0] [0]

    To get the instructor name for the second subject, we can write

    unit[1] [2]
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “Write an application that stores at least five different college courses (such as CIS101), the time it first meets in the week (such as Mon ...” in 📙 Engineering if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers