[SOLVED] Assignment #10 [Simple Classes]

30.00 $

Programming resource
Digital learning resource
Category:
✓ Practical programming resource
✓ Suitable for guided study and reference
✓ Tutor guidance available when needed

Description

5/5 - (1 vote)

 

  • Design a class named Account. The Account class should have 3 properties; an AcctNo, an owner, and a balance. Determine the data types for each property, then create the class diagram and write the pseudo-code that defines the class.
  • Design a class named Pizza. Data fields include a string field for toppings (such as pepperoni) and num fields for diameter in inches (such as 12) and price (such as 13.99). Include methods to get and set values for each of these fields. Create the class diagram and write the pseudo-code that defines the class.
  • Design a class named Book that holds a ISBN number, author, title, price, and number of pages for the book. Include methods to get and set the values for each data field. Write the pseudo-code that defines the class.
  • Design a class named Student. The Student class should have a Firstname, a Lastname, an Address, an email address, a major and a GPA. Determine the data types for each property, then create the class diagram and write the pseudo-code that defines the class.

 

 

Resource details

Understand the Task Before You Use the Resource

Review the requirements, identify the programming concepts involved, study the implementation and test your understanding with your own examples and modifications.