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

  Describe the mechanics of Buffer overflows

Prepare a complete tutorial, including an analogy to describe the mechanics and a graphic to support your analogy, on one of the subsequent areas

  What could possibly be used as a key field

I need help with doing some web search research on relational databases and define briefly how such a database works, and basic components.

  How it would increase or lower the protocol processing load

This solution explores and defines the requirement for routers to support both IPv4 and IPv6 protocol stacks and explains the various types of connections a dual stack router can support, and why such connections are necessary.

  Algorithm for generating list of customers

Develop an algorithm in order to generate a list of customers from Glad Rags Clothing Company’s customer master file.

  Define what a branch hazard is,what causes a branch hazard

Give a relevant example using the MIPS instruction set architecture. Compare and contrast how the code would  proceed it the branch is taken, vs if the branch is not taken, and explain how this affects the pipeline.

  Define between erp configuration and customization

How does this guide or limit the scope of an enterprise system implementation project.

  Java application that indicates invalid ticket number entrie

Ticket numbers are designed so that if you drop last digit of the number, then divide the number by 7, the remainder of the division would be identical to the last dropped digit.

  Why compression algorithms are frequently used in forensics

why Compression algorithms are frequently used in forensics.how they can potentially affect evidence, paying particular attention to algorithms implemented by forensic tools. You need to be clear yet concise.

  How can sophie use applocker

How can Sophie use AppLocker.

  How to using the prompt and alert functions

compute the average (mean) of the 5 marks as a rounded integer or a floating point number.

  Why employees may leave the company

Do you think that it is acceptable for organizations to try to lock employees into a work term after training? In other words, if they send an employee on the training course that could have tremendous benefit to the organization, should they be a..

  Make a non-gui based java application

make a non-GUI based Java application that calculates weekly pay for an employee. The application should display text that requests the user input the name of the employee, the hourly rate, and the number of hours worked for that week.

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