Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Not Java please, Just a normal Psuedocode. +Container // Fields/data members/attributes - material: String capacity: Integer content: String // Methods - actions //Constructors + Container

Not Java please, Just a normal Psuedocode.

image text in transcribed

+Container // Fields/data members/attributes - material: String capacity: Integer content: String // Methods - actions //Constructors + Container (): void //default constructor + Container (String new Material, Int newCapacity, String newContent):void // second constructor //Mutators + setMaterial (String new Material): void + setCapacity (Integer new Capacity): void + setContent (String newContent): void //Accessors + getMaterial(): String material + getCapacity(): Integer capacity + getContent(): String content //other methods + inputFields(): void //prompts and gets values from the keyboard and up dates the field values Problem: Design and create the pseudo-code for an application named Laboratory: Using the Container Service Class given above - Instantiate 3 objects using service class Container. testTube object using the default constructor beaker object using the second constructor to initialize the values material to glass and capacity to 500 (i.e. 500 ml) and content to sulfuric acid flask object using the second constructor to initialize the values material to steel and capacity to 1000 (i.e. 1000 ml) and content to liquid nitrogen Next perform the following tasks: 1. Set the values of test tube object - material to glass, capacity to 20 (i.e. 20 ml) and content to calcium hydroxide. 2. Create a module to print the contents of the testTube and beaker object 3. Change all the attributes of the flask object. Supply all the values via the keyboard

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

Step: 3

blur-text-image

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

More Books

Students also viewed these Databases questions

Question

Discuss the various types of leasing.

Answered: 1 week ago

Question

Define the term "Leasing"

Answered: 1 week ago

Question

What do you mean by Dividend ?

Answered: 1 week ago

Question

What is database?

Answered: 1 week ago