subject

You should fill in the blank in the following code with class test {public static void main(string[] args) {system. out. print("the grade is "); printgrade(78.5); system. out. print("the grade is "); printgrade(59.5); }public static printgrade(double score) {if (score > = 90.0) {system. out. println('a'); }else if (score > = 80.0) {system. out. println('b'); }else if (score > = 70.0) {system. out. println('c'); }else if (score > = 60.0) {system. out. println('d'); }else {system. out. println('f'); }}}a. int. b. double. c. boolean. d. char. e. void.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 19:30
Entering key dates from your course syllabi test and quiz dates, assignments due dates in your planner can you manage your schedule by allowing you to see commitments ahead of time.
Answers: 3
question
Computers and Technology, 22.06.2019 04:00
Acetylene is a gas which burns rapidly on its own, and is considered highly explosive. a) true b) false
Answers: 2
question
Computers and Technology, 22.06.2019 19:20
Consider the following code snippet: #ifndef cashregister_h#define cashregister_hconst double max_balance = 6000000.0; class cashregister{public: cashregister(); cashregister(double new_balance); void set_balance(double new_balance); double get_balance() const; private: double balance[12]; }; double get_monthly_balance(cashregister bk, int month); #endifwhich of the following is correct? a)the header file is correct as given.b)the definition of max_balance should be removed since header files should not contain constants.c)the definition of cashregister should be removed since header files should not contain class definitions.d)the body of the get_monthly_balance function should be added to the header file.
Answers: 1
question
Computers and Technology, 22.06.2019 22:00
What is a distinguishing feature of today’s graphic application software?) graphic applications are used today on a variety of devices, including touch-screen kiosks and mobile phones.
Answers: 3
You know the right answer?
You should fill in the blank in the following code with class test {public static void main(string[...
Questions
question
Computers and Technology, 27.02.2021 09:00
question
Engineering, 27.02.2021 09:00
question
Mathematics, 27.02.2021 09:00
question
Mathematics, 27.02.2021 09:00
question
Chemistry, 27.02.2021 09:00
question
History, 27.02.2021 09:00
question
Mathematics, 27.02.2021 09:00