Answered step by step
Verified Expert Solution
Question
1 Approved Answer
in java please Given main0, define a Course base class with metredCourse with methods to set and get instructorName, term, and classTime. Ex. If the
in java please
Given main0, define a Course base class with metredCourse with methods to set and get instructorName, term, and classTime. Ex. If the input is: ECE287 Digital Systems Design BCE387 Embedded Systems Design Mark Patterson Fall 2018 WE: 23:30pm the output is: Course information: Course Number: ECE287 Course Title: Digital systems Design Courae Information: Course Number: ECE387 Course Title: Embedded Systems Design Instructor Name: Mark Patterson Termt Fall 2018 Class Time: F: 2-3:30 pm File is marked as read only Current file: Courseinformation.java oCourseNumber = scnr. nextLine(); oCourseTitle = scnr. nextLine(); instructorName = scnr. nextLine(); term = scnr. nextLine(); classTime = scnr InextLine(); myCourse.setCourseNumber(courseNumber); myCourse. setCourseTitle(courseTitle); myCourse.printInfo(); myOfferedCourse. setCourseNumber(oCourseNumber); myOfferedCourse. setCourseTitle(oCourseTitle); myOfferedCourse.setInstructorName(instructorName); myOfferedCourse. setTerm(term); myOfferedCourse.setClassTime(classTime); myOfferedCourse. setClassTime(classTime); myofferedCourse.printInfo(); System.out.println(" Instructor Name: " + myOfferedCourse.getInstructorName()); System,out.println(" Term: " + myofferedCourse.getTerm()); System.out.println(" Class Time: " + myOfferedCourse.getClassTime()); Current file: Course.java Current file: OfferedCourse.java * 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