Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create 05.05 Assignment project in the Mod05 Assignments folder. Carefully read the instructions before you attempt the assignment. Before you begin coding, use a word

  1. Create 05.05 Assignment project in the Mod05 Assignments folder.
  2. Carefully read the instructions before you attempt the assignment.
  3. Before you begin coding, use a word processor to create class diagram.
  4. Refer back to your submission for the Getting Started with Objects assignment and carefully choose an object to implement for a new class.
  5. In the 05.05 Assignment project, create new class that should be named for your object - this is the implementation or object class. Number it as V3 to match the PlanetV3 sample. For example, if you implement a student object, the class name would be StudentV3.
    1. Provide a default constructor for your object.
    2. Write two methods to perform an action or calculation for your object. Determine the return type and parameter list.
  6. Create new tester class with a main() method - this is the client class. Use the PlanetTesterV3 sample as a guide. For example, if you are using a student object, the client class name would be StudentTesterV3.
    1. Create instance of your class using the default constructor (no parameters).
    2. Declare variables to pass to the methods.
    3. Invoke (or call) all methods with your new object using dot notation.
  7. Print the results in a user-friendly format. (see Expected Output).

Note: You will update this program in lesson 5.08 and add more features. Make sure you choose something that can have multiple objects created from the same blueprint.

Expected Output: The following screen shot is an example of output for a StudentV3 object. The class contains two methods to calculate the average of two grades and the difference between the grades. Your output will differ based on the object you define.

image text in transcribedimage text in transcribed
S Messages | Schoology X S Computer Science A, AP: Section X 05.05 Default Constructors | Scho x Home - Replit X + X -> C accessvl.schoology.com/external_tool/2398628911/launch Computer Science Materials MENU GLOSSARY PRINT JAVA API HOME Updates Instructions: Using your notes as a reference, define an implementation class for an object of your choice. Grades 1. Create a 05.05 Assignment project in the Mod05 Assignments folder. Mastery 2. Carefully read the instructions before you attempt the assignment. Members 3. Before you begin coding, use a word processor to create a class diagram. 4. Refer back to your submission for the Getting Started with Objects assignment and carefully choose an object to Information implement for a new class 5. In the 05.05 Assignment project, create a new class that should be named for your object - this is the Grading periods Traditional (22-23), 51, 52 implementation or object class. Number it as V3 to match the PlanetV3 sample. For example, if you implement a student object, the class name would be StudentV3. A. Provide a default constructor for your object. B. Write two methods to perform an action or calculation for your object. Determine the return type and parameter list. 6. Create a new tester class with a main() method - this is the client class. Use the PlanetTesterV3 sample as a guide. For example, if you are using a student object, the client class name would be StudentTesterV3. A. Create an instance of your class using the default constructor (no parameters). B. Declare variables to pass to the methods. C. Invoke (or call) all methods with your new object using dot notation. X Type here to search 99+ ST WE 10:47 AM O 11/29/2022S Messages | Schoology X S Computer Science A, AP: Section X 05.05 Default Constructors | Scho x Home - Replit X + X -> C accessvl.schoology.com/external_tool/2398628911/launch Computer Science cloIon DELIAS JADIA CAICA Materials MENU GLOSSARY PRINT JAVA API HOME Updates C. Invoke (or call) all methods with your new object using dot notation. Grades 7. Print the results in a user-friendly format. (see Expected Output). Mastery Note: You will update this program in lesson 5.08 and add more features. Make sure you choose something that can have multiple objects created from the same blueprint. Members Expected Output: The following screen shot is an example of output for a StudentV3 object. The class contains two Information methods to calculate the average of two grades and the difference between the grades. Your output will differ based on Grading periods the object you define. Traditional (22-23), 51, 52 Blue): Terminal Window - 5.05 APCS X Options Grades : Grade 1 Grade 2 Average Difference 85 92 88.5 Can only enter input while your programming is running X 10:47 AM Type here to search O 99+ WE 11/29/2022

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

Modern Dental Assisting

Authors: Doni Bird, Debbie Robinson

13th Edition

978-0323624855, 0323624855

Students also viewed these Programming questions

Question

II.Define an integer array data[6], and store number: 1,3,5,7,9,11.

Answered: 1 week ago