Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

* *please don't use handwriting 1. Create a class Course to describe a course according to the following requirements: A course has three attributes: courseName,

image text in transcribed

* *please don't use handwriting

1. Create a class Course to describe a course according to the following requirements: A course has three attributes: courseName, courseCode, fees. a. Create a constructor without parameters to initialize all the instance variables to default values ( 0 for numbers and "" for a string). b. Create a constructor to initialize all the attributes to specific values. c. Add all setter and getter methods 2. Create a tester class with the main method. The tester class must be named using your first and last name. In this class performs the following: a. Create a course object c1 using the default constructor. b. Create a course object c2 with the following information: courseName = " object oriented programing", courseCode = "CS230", fees = a value from your choice. c. Change the course fees of c2 to your age. d. Print the course information of c2 using getter methods Note: - Your answer should have the code as text as well as the screenshot of the program output (using your own name) as a part of your answer. Otherwise, zero marks will be awarded. Typical run of the program

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

Database And Expert Systems Applications Dexa 2021 Workshops Biokdd Iwcfs Mlkgraphs Al Cares Protime Alsys 2021 Virtual Event September 27 30 2021 Proceedings

Authors: Gabriele Kotsis ,A Min Tjoa ,Ismail Khalil ,Bernhard Moser ,Atif Mashkoor ,Johannes Sametinger ,Anna Fensel ,Jorge Martinez-Gil ,Lukas Fischer

1st Edition

3030871002, 978-3030871000

More Books

Students also viewed these Databases questions

Question

What are the functions of a warehouse?

Answered: 1 week ago