subject

Write the definition of a class that has the following properties:
a. the name of the class is secrettype .
b. the class secrettype has four instance variables: name of type string, age and weight of type int , and height of type
double.
c. the class secrettype has the following member functions:
print— outputs the data stored in the instance variables with the appropriate titles
setname— function to set the name
setage— function to set the age
setweight— function to set the weight
setheight —function to set the height
getname— value-returning function to return the name
value-returning function to return the age
getage
getweight —value-returning function to return the weight
getheight —value-returning function to return the height
default constructor—sets name to the empty string and age , weight , and height to o
constructor with parameter—sets the values of the instance variables to the values specified by the user
d. write the definition of the member functions of the class secrettype as described in part c.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 09:30
Given a link with a maximum transmission rate of 32.8 mbps. only two computers, x and y, wish to transmit starting at time t = 0 seconds. computer x sends filex (4 mib) and computer y sends filey (244 kib), both starting at time t = 0. statistical multiplexing is used, with details as follows packet payload size = 1000 bytes packet header size = 24 bytes (overhead) ignore processing and queueing delays assume partial packets (packets consisting of less than 1000 bytes of data) are padded so that they are the same size as full packets. assume continuous alternating-packet transmission. computer x gets the transmission medium first. at what time (t = ? ) would filey finish transmitting? give answer in milliseconds, without units, and round to one decimal places (e.g. for an answer of 0.013777 seconds you would enter "13.8" without the quotes)
Answers: 3
question
Computers and Technology, 23.06.2019 18:30
Janice recently received her college degree and is looking for a job. she is worried that since she just finished school, she will be required to repay her perkins and direct subsidized loans immediately. janice pulls out the paperwork she signed and reviews it again for repayment information. after reading all of the information, janice discovers that
Answers: 2
question
Computers and Technology, 23.06.2019 22:30
The output voltage of a power supply is assumed to be normally distributed. sixteen observations are taken at random on voltage are as follows: 10.35, 9.30, 10.00, 9.96, 11.65, 12.00, 11.25, 9.58, 11.54, 9.95, 10.28, 8.37, 10.44, 9.25, 9.38, and 10.85
Answers: 1
question
Computers and Technology, 24.06.2019 04:30
How do you share someone else’s tweet with your own twitter followers?
Answers: 1
You know the right answer?
Write the definition of a class that has the following properties:
a. the name of the class...
Questions
question
English, 11.03.2020 00:02
question
Mathematics, 11.03.2020 00:02
question
History, 11.03.2020 00:02
question
Mathematics, 11.03.2020 00:02
Questions on the website: 13722360