Writing a pseudocode statement

Assignment Help Software Engineering
Reference no: EM1380002

Assume myCar is the name of a class variable that references an object, and go is the name of a method. (The go method does not take any arguments.) Create a pseudocode statement that uses myCar variable to call method.

In pseudocode, write the first line fo the definition for a Poodle class. The class should extend the Dog class.

Look at the following pseudocode class definitions:
Class Plant
Public Module message()
Display "I'm a plant."
End Module
Class Tree Extends Plant
Public Module message()
Display "I'm a tree."
End Module
End Class
Given these class definitions, what will the following pseudocode display?
Declare Plant p
Set p = new Tree()
Call p.message()

Design a class named Pet, which should have the following fields:
name - The name field holds the name of a pet
type - The type field holds the type of animal. "Dog", "Cat", and "Bird"
age - The age field holds the pet's age

The Pet class should also have he following methods:
setName
setType
setAge
getName
getType
getAge

Design a class and a program that creates an object of the class and prompts the user to enter the name, type, and age of his or her pet. This data should be stored in the object. Use the object's accessor method to retrieve the pet's name, type, and age and display this data on screen.

Design a class that holds the following personal data: name, address, age, and phone number. Write appropriate accessor and mutator methods. Also, design a program that creates three instances of the class. One instance should hold your information, and the other two should hold your friends' or family members' information.

 

Reference no: EM1380002

Questions Cloud

What could the business do to take care of any shortages : What could the business do to take care of any shortages or surpluses? Make sure that your recommendations take the strategic staffing level matters from the case introduction into account.
How much time would it take to make given unit : Based on a, how much time would it take for next 190 units, assuming no loss of learning. How much time would it take to make 1,000th unit.
When there''s bad behaviour by members of a team : This is for a leadership and organizational behaviour class- When there's bad behaviour by members of a team who is responsible - the individuals involved the team members or the team leader or managers?
What are elements for an action based on strict liability : Bob is shopping in Carl's Hardware Store when a nail gun being used by Dan, one of Carl'1 s employees, fires without warning also hits Bob in leg. What are elements for an action based on strict liability.
Writing a pseudocode statement : Assume myCar is the name of a class variable that references an object, and go is the name of a method. Create a pseudocode statement that uses myCar variable to call method.
Trends that significantly affect this company''s future : For several years Gerber has manufactured baby food in small, single sized containers. In conducting an environmental scan classify three trends or factors that might significantly affect this company's future business as well as how Gerber might ..
How can we ensure we influence them : If we find this type of behaviour in our organizations how can we ensure we influence them also stop them without really impacting relationship building piece of action.
Compare the five categories of classroom training : Compare the five categories of classroom training, lecture, discussion, audio-visual media, experiential methods as well as computer-based training
Discuss founder vision for star bucks company : Discuss founder's vision for star bucks company also how it has been realized over years. Identify three characteristics of founder's vision that could be transferred to similar companies to improve their profitability.

Reviews

Write a Review

Software Engineering Questions & Answers

  Draw flowchart to let a user play rounds of head

Draw a flowchart to let a user play 10rounds of head or tail guessing game. Display how many times the player has guessed the outcomes correctly.

  Brainstorming and delphi technique for risk identification

Discuss the difference between using brainstorming and the Delphi Technique for risk identification and determine some of the advantages and disadvantages of each approach?

  Normalizing data base

Normalize to the 3NF the given collections of data attributes, Write the normalized entities in correct format and underline the attributes which form the primary key.

  Re usability in object oriented languages

Re-usability is ability to use code written for another condition. Most languages and programming paradigms support re-usability in some form.

  Finding cause of the bug

The following LMC program is supposed to input two numbers, compare them, and output the higher of the two numbers.

  Draw entity relationship model for project management system

A consultant is not necessarily a project leader, but they can only be project leader for one project. Draw an entity relationship model for the project management System.

  Design a wireframe prototype

Design a wireframe prototype to meet the needs of the personas and requirements.

  Determine its model for attorney of clients for each case

Attorney is retained by one or more clients for each case, a client may have more than one attorney for each case. Determine its model.

  Explain tool used to infer the conceptual model

Another tool used to infer the conceptual model are the end user's forms. The form below will help you identify the entities and relationships.

  Design pseudocode and flowchart for swallowing a pill

Write a solution in pseudocode for swallowing a pill. Translate solution into flowchart. Write about which tool they like best and why? Which tool do they think would be easiest to learn?

  Arithmetic calculator application

Create an application that permits the user to enter a series of numbers and manipulate them. The application should provide users with the option of adding or multiplying numbers.

  Content validation of document

Do you believe that any form of document content validation should be applied to web pages before they are placed in the public domain?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd