Define a flowchart and a pseudocode for the program

Assignment Help Computer Engineering
Reference no: EM1336914

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 that is the pet. Example values are "Dog", "Cat", and "Bird".
- Age - The age field holds the pet's age.

The Pet class should also have the following methods:

- setName - The setName method stores a value in the name field.
- setType - The setType method stores a value in the type field.
- setAge - The setAge method stores a value in the age field.
- getName - The getName method returns the value of the name field.
- getType - The getType method returns the value of the type field.
- getAge - The getAge method returns the value of the age field.

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

Give a flowchart and a pseudocode for the program.

Reference no: EM1336914

Questions Cloud

The negative aspects of game programming as a career choice : What would you say the negative and positive aspects of Game Programming as a career choice are?
Explain use of competitive intellgence by organizations : Explain USE OF COMPETITIVE INTELLGENCE BY Organizations and In your own words, draft a reply 2-3 page e-mail to your colleague and focusing on strategies and tools and technologies you would recommend to build up a knowledge base and spot trends
Proportions of debt and equity financing : The required return on debt (before taxes) is 7.5%, the required return on equity is 15%, and the cost of capital is 10%. What are the proportions of debt and equity financing?
Government places a price floor on milk which is below : The government places a price floor on milk which is below the current equilibrium price of milk. The number of children who drink milk and the number of farmers who produce milk increase at the same time.
Define a flowchart and a pseudocode for the program : After designing the class, design a program that creates an object of the class and prompts the user to enter the name, type, and age of his pet. This data must be stored in the object. Use object's accessor methods to retrieve the pet's name, typ..
Data mining : How might a retailer use data mining?
Risk management component of successful project management : Risk management is a major component of successful project management.
Personal jurisdiction issue for websites : Why is personal jurisdiction an issue for those who post Websites? What are some reasons that a website owner might be concerned with whether a court is able to obtain 'personal jurisdiction' over them?
Components of capital structure : Critically discuss and describe the three major components of the capital structure of enterprise.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Time and space complexity

Express the following five loosely explained problems carefully in the form as used in the "Computers and Intractability".

  Using the models in system design

In the System Analysis and Design: Models are used extensively in the wide variety of the technical occupations beyond the information technology.

  Define difference between a shallow copy and a deep copy

Overload the operator += for the class newString to perform the following string concatenation; suppose that s1 is "Hello" and s2 it "there". Then the statement s1 += s2; should assign "Hello there" to s1, where s1 and s2 are newString objects.

  The advantages and disadvantages of using functions

Show how you might write the "case" statement using only the "if" statement in its place an actual case statement. Hint: Nested if statements. Explain your code.

  What are the errors

What are the errors

  How to store ten floating-point values into vector

How to store ten floating-point values into vector. Write down a program that declares a vector of ten floating-point values

  Write down fucntion defintion for the line class constructor

write down fucntion defintion for the Line class constructor.

  Create m-file to calculate the future value

Write down M-file to calculate the future value of an initial investment, or the amount that needs to be deposited annually to reach future investment goal.

  Commercialization of business

Whenever it comes time to commercialize an invention, specify the options that are available to an inventor in order to navigate the business side of commercialization.

  Define the idea of a context as it relates to hci design

Interactive computer systems could be categorized both in terms of interaction styles and interaction paradigms. This helps us to understand the problems and potential value of any interactive system design. We must also pay attention to the conte..

  Small companies should often execute several functions

IT administrators in small companies must often execute several functions at the equal time like network administrator, database administrator, user consultant and others.

  Analyzing the business case

We require a corporate goal for SCR which refers to our new training activity. Construct a draft to show Jesse. Jesse wants my opinion on whether or not SCR requires a systems review committee. Need to prepare a recommendation and the reasons.

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