Write a Java program that checks the course availability and instructors of programming courses, as shown...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Write a Java program that checks the course availability and instructors of programming courses, as shown in Table 1. Other programming courses which are not listed in Table 1 are considered not available. Table 1. List of Programming Courses Course Name Java, Python C++, C# R, Go Instructor Availability Status Dr. Zaidatol Haslinda Available Dr. Goh Say Leng Available Dr. Carolyn Salimun Available The program must include at least TWO (2) methods, excluding the main() method. Name the two methods as coursePref() and courseInfo(). The program starts by reading the user's | name via the console. Once a user's name is typed in on the console, call the coursePref() method to read FIVE (5) course names from user input via the console and call courseInfo() method to check on the availability and instructor of each course. Convert the user's name and course names into uppercase letters. Test data: Student name: Alana Olumis Jon www Course No.1: Java Course No.2: c++ ww Course No.3: Go Course No.4: JavaScript Course No.5: swift Expected output: Hi ALANA OLUMIS JON 1. JAVA course is available The instructor is Dr. Zaidatol Haslinda 2. C++ course is available The instructor is Dr. Goh Say Leng 3. GO course is available The instructor is Dr. Carolyn Salimun 4. JAVASCRIPT course is not available 5. SWIFT course in not available Write a Java program that checks the course availability and instructors of programming courses, as shown in Table 1. Other programming courses which are not listed in Table 1 are considered not available. Table 1. List of Programming Courses Course Name Java, Python C++, C# R, Go Instructor Availability Status Dr. Zaidatol Haslinda Available Dr. Goh Say Leng Available Dr. Carolyn Salimun Available The program must include at least TWO (2) methods, excluding the main() method. Name the two methods as coursePref() and courseInfo(). The program starts by reading the user's | name via the console. Once a user's name is typed in on the console, call the coursePref() method to read FIVE (5) course names from user input via the console and call courseInfo() method to check on the availability and instructor of each course. Convert the user's name and course names into uppercase letters. Test data: Student name: Alana Olumis Jon www Course No.1: Java Course No.2: c++ ww Course No.3: Go Course No.4: JavaScript Course No.5: swift Expected output: Hi ALANA OLUMIS JON 1. JAVA course is available The instructor is Dr. Zaidatol Haslinda 2. C++ course is available The instructor is Dr. Goh Say Leng 3. GO course is available The instructor is Dr. Carolyn Salimun 4. JAVASCRIPT course is not available 5. SWIFT course in not available
Expert Answer:
Answer rating: 100% (QA)
Heres a Java program that fulfills your requirements import javautilScanner public class CourseAvail... View the full answer
Related Book For
Quantitative Methods for Business
ISBN: 978-0840062345
12th edition
Authors: David Anderson, Dennis Sweeney, Thomas Williams, Jeffrey Cam
Posted Date:
Students also viewed these programming questions
-
Predictive text entry systems are familiar on touch screens and mobile phones. This question asks you to consider how the same principles might be used in a programming editor for creating Java code....
-
Design a Java class that represents a cache with a fixed size. It should support operations like add, retrieve, and remove, and it should evict the least recently used item when it reaches capacity.
-
Under Public Law 480, the United States sells surplus grains to developing countries, which pay in local currencies. Since the United States rarely spends all of these currencies, much of this grain...
-
What steps are commonly used by unions to organize a workplace?
-
Account analysis method. Gower, Inc., a manufacturer of plastic products, reports the following manufacturing costs and account analysis classification for the year ended December 31, 2009. Gower,...
-
Between February 2020 and April 2020, the labor force participation rate for people ages 20 to 24 declined by 8.7 percentage points. The labor force participation rate for people ages 25 to 54...
-
The City of Manhattan, Kansas, prepares an annual Budget Book, a comprehensive document that includes a citywide budget, as well as departmental budgets. The city has received the GFOA Distinguished...
-
1.XYZ Corp. just paid an annual dividend of $3 per share on its common stock. This dividend is expected to grow at a 10 percent annual rate for two years, after which it is expected to grow at a 6...
-
explain what is tariff rate quotas
-
A \(5.0-\mathrm{kg}\) solid cylinder of radius \(0.25 \mathrm{~m}\) is free to rotate about an axle that runs along the cylinder length and passes through its center. A thread wrapped around the...
-
For each of the car loans described in Problems 51-54, give the following information. a. Amount to be paid b. Amount of interest c. Interest rate d. APR (rounded to the nearest tenth of a percent) A...
-
A \(2.0-\mathrm{kg}\) solid cylinder of radius \(0.45 \mathrm{~m}\) rolls without slipping down a ramp inclined at an angle of \(60^{\circ}\) to the vertical. Calculate (a) the acceleration of the...
-
Suppose you have an annuity from an insurance policy and you have the option of being paid \(\$ 250\) per month for 20 years or having a lump-sum payment of \(\$ 25,000\). Which has more value if the...
-
You deliver a horizontal impulse to a cue ball with a cue stick while playing pool. If the ball is to roll without slipping, at what height \(h\) above its center (in terms of its radius \(R\) ) must...
-
Read and analyze the lyrics of the song, "Oyayi sa Mundo" by Buklod. Answer the following questions. Oyayi sa Mundo 1. What do you feel when you read/ hear the lyrics of the song? ng: Buklod Aking...
-
a. Determine the domain and range of the following functions.b. Graph each function using a graphing utility. Be sure to experiment with the window and orientation to give the best perspective of the...
-
For two events A and B, P(A) = 0.5, P(B) = 0.60, and P(A ( B) = 0.40. a. Find P(A | B). b. Find P(B | A). c. Are A and B independent? Why or why not?
-
Preliminary plans are underway for construction of a new stadium for a major league baseball team. City officials question the number and profitability of the luxury corporate boxes planned for the...
-
The following payoff table shows the profit for a decision problem with two states of nature and two decision alternatives: a. Use graphical sensitivity analysis to determine the range of...
-
Identify the sources and discuss the consequences of bank runs, bank panics, and financial crises.
-
Explain why and how the government intervenes in the financial system, and the problems the government safety net creates.
-
In the absence of limits on the behavior of large intermediaries, how might the perception of institutions being too-big-to-fail lead to increased concentration in the banking industry?
Study smarter with the SolutionInn App