Question
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started