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

  Indirect port addressing capability

Determine how many ports can the Z8000 address in each I/O addressing mode?

  Suggestions for viable guidelines

Do you think that variations in company and societal culture could pose a significant problem when coordinating or scheduling large assignments,

  Draw a class diagram of structure of monitoring station

Printer, on which the readings from these three sensors are shown. Readings are taken checkpoint. Draw a class diagram summarizing the structure of the monitoring station.

  Draw uml diagram for classes quiz and question

Consider a quiz grading system that grades student responses to quizzes. Draw a UML diagram for classes Quiz, Question, EssayQuestion, MultipleChoiceQuestion, Student, and Submission.

  Create a complete limited entry decision table

Create a complete limited entry decision table

  Explain the syntax of programming languages

BNF is used extensively in the computing field to describe the syntax of programming languages. Give an example of where and how BNF might be used to solve real-world problems

  Discuss the importance of saving work

Access saves database values as they are added eliminating the need to save every time a record is added, edited, or deleted. Discuss and explain the importance of protecting your work.

  Gui based program to write data to a sequential data file

Design a GUI Based program with a WriteButton used to write data to a sequential information file. Then make another ReadData button to read information from the file created and display it in a JTable on the GUI.

  Write down critical success factors for project manager

Write down the critical success factors for project manager? what skills must managers look for when hiring someone who would be successful in this job?

  Key drawbacks of the numbered code

Think about the flashlight-messaging (ABC=123); Determine the key drawbacks of the Numbered Code?

  Application over udp or tcp

Think about the  streaming stored audio. Does it make sense to run the application over UDP or TCP? Which transport protocol does Real Networks use?

  Sketch flowchart to print average for student

Sketch a flowchart to print average for each student in class.Input. Input consists of student records each containing student's name(STUDENT-NAME), score for first test(TEST), score for second test(TEST2), and score for third test(TEST3).

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