Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

please help im lost and could use help on all questions. TING 1 23 4 5 5. Write the pseudocode to declare the following objects.

image text in transcribed
image text in transcribed
image text in transcribed
please help im lost and could use help on all questions.
TING 1 23 4 5 5. Write the pseudocode to declare the following objects. Click here to see a hint. an object belonging to the House class named cityHouse b. an object belonging to the House class named condo a 6. Use the following class diagram to answer the next set of questions. +AutoPart idNumber. String price: Real + getIdNumber(): String + setIdNumber (newldNumber String) + getPrice (): Real + setPrice (new Price: Real) + printPartInfo a What is the name of the class? b. How many attributes does the class have? c. List the names of the attributes. d. What access (visibility) modifier is used for the attributes of this class? What does this access modifier imply for the attributes? e How many methods are listed in this class diagram? f. What access (visibility) modifier is used for the methods of this class? What does this access modifier imply for the methods? & List the accessor methods. Be sure to include the parentheses, parameters and return types! h. List the mutator methods. Be sure to include the parentheses, parameters and return types! 1. Let's practice writing pseudocode for a function. A function contains three parts: a header, a body, and a return statement. The first is a function header which specifies the data type of the value that is to be returned the name of the function, and any parameter variables used by the function to accept arguments. The body is comprised of one or more statements that are executed when the function is called Step 1: Write pseudocode for a function in the spaces labeled below, so the function fulfills the following requirements: a. The return type is an integer. b. The name of the function is addren c. The function body will ask the user to enter a whole number and input that value into the variable named number d. The function will add 10 to the number entered by the user. The answer will be stored in the variable total e. The return statement will return the value of total. Function a. b. Declare Integer number, total Display Enter a whole number: Input a Set d. number + 10 Return e. End Function Step 2: In the following space, write a pseudocode function call to the function you developed in Step 1 Set number = O

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Basics Computer EngineeringInformation Warehouse Basics From Science

Authors: Odiljon Jakbarov ,Anvarkhan Majidov

1st Edition

620675183X, 978-6206751830

More Books

Students also viewed these Databases questions