subject

Create a class coffee with data members listed below.

roasttype, which is string representing whether your coffee is light, medium, or dark roast (initialize to an empty string)
temp, which is a floating point value representing the temperature of your coffee in fahrenheit (initialize to 180.0)
include the following member functions:
default constructor,
a constructor with parameters for each data member (in the order given above),
getters and setter methods for each data member named in camel-case. for example, if a class had a data member named mydata, the class would require methods named in camel-case: getmydataand setmydata.
string drinkability(): the function should return how "drinkable" the coffee is based on the temperature. (too cold: < 100.0, just right: > = 100.0 & < 160.0, hot: > = 160.0 & < 180.0, too hot: > = 180.0).

you only need to write the class definition and any code that is required for that class.

note: you must not use the implicit "private" for class data types and methods. include public or private explicitly.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 15:00
Barbara is interested in pursuing a career in the science and math pathway. which qualifications will her reach that goal? a.an advanced knowledge of physics and math b.an advanced knowledge of engineering and math c. an advanced knowledge of physics and robotics an d. advanced knowledge of machinery and math
Answers: 2
question
Computers and Technology, 23.06.2019 18:00
Ramona enjoys her job because she is able to kids in an after school program. the work value ramona feels strongest about is a. leadership b. risk c. independence d. work with people select the best answer from the choices provided a b c d
Answers: 1
question
Computers and Technology, 24.06.2019 05:50
What all vehicles has tesla inc. created over the years
Answers: 3
question
Computers and Technology, 25.06.2019 08:20
In the following table, column a is column b is and column c is
Answers: 1
You know the right answer?
Create a class coffee with data members listed below.

roasttype, which is string represe...
Questions
question
Mathematics, 02.12.2019 20:31
question
Computers and Technology, 02.12.2019 20:31
question
Computers and Technology, 02.12.2019 20:31
Questions on the website: 13722367