Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PLEASE MAKE IT IN JAVA, THANK YOU!!!! Write a method computeStats() that takes one parameter: courseList, an array of strings, where each string represents a

PLEASE MAKE IT IN JAVA, THANK YOU!!!!

Write a method computeStats() that takes one parameter:

courseList, an array of strings, where each string represents a course eg. CS123. Each course has the format XXYYY, where XX represents the major (eg. CS, IS) and YYY the course number eg. 327.

The method returns the number of first year CS courses in the array. A first year CS course is any course in the format CS1YY, eg. CS142, CS100, CS147, etc.

Assume every major contains capital letters.

For example, if the data bellow shows the courses in the array:

CS183, CS133, IT194, CS124, CS274, IT193, IT273, CS383

the method will return 3

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_2

Step: 3

blur-text-image_3

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

Murach's SQL Server 2012 For Developers

Authors: Bryan Syverson, Joel Murach, Mike Murach

1st Edition

1890774693, 9781890774691

More Books

Students also viewed these Databases questions

Question

=+professionalism and competency in handling global HR issues?

Answered: 1 week ago

Question

=+3 In what ways can an MNE improve or change its approach to IHRM?

Answered: 1 week ago