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

  Formal programming languages and natural languages

As we know that there are problems of understanding natural languages as opposed to formal programming languages. As an illustration of the complexities involved in the case of natural languages,.

  Tentative list of requirements for proposed system

Create a tentative list of requirements for the proposed system. possible solution that could meet the business requirements and provide a short description and indicate participating actors and role Context diagram, DFD.

  Discourage vendors from attempting to build products

discourage vendors from attempting to build products add complexity to the purchase, setup and proper operation of peripherals from multiple vendors

  Design algorithm to find clique in graph

Design an O(n9) algorithm to find a 9-clique in G, if such clique exists; answer "no such a clique" if it does not exist. Please describe your algorithm and sketch its correctness. Pseudocode is NOT required.

  Counting test scores

Average the test scores, if it lower than fifty then display the average; otherwise display the student's highest score.

  Draw decision table and draw decision tree

Write structured english for clyde's narrative of the reimbursment policies. Write structure English, draw decision table and draw decision tree.

  Describe the role of the soap

Describe the three entities and three operations that represent the Web Services model defined by SOA. (Support your answer with a diagram) Describe the role of the following three core Web Service standards- i SOAP ii WSDL iii UDDI

  Creating context diagram for new system

Create a context diagram for new system. Create a diagram 0 DFD for new system. Write brief memo that describes the significance of leveling a set of DFDs.

  Identify the principal for viewpoint hierarchy diagram

Identify the principal viewpoints which might be taken into account in the specification of this system and organize these using a viewpoint hierarchy diagram.

  Data flow diagram for new customer support system

A context diagram, also called a Data Flow Diagram (DFD), documents the scope of the new customer support system. It focuses primarily on output from the system.

  Create visual logic flow chart-calculate pay of employees

The user will then be able to continue calculating the pay for additional employees until the user decides to stop or until the maximum number of employees is reached. Create a Visual Logic Flow Chart.

  Draw er diagram that models information of company

Draw an ER diagram that models the information in the following scenario: A manufacturing company has several assembly plants in different cities.

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