subject

Given the following code fragment and the input value of 4.0, what output is generated?
double tax;
double total;
system. out. print("enter the cost of the item");
total = scan. nextdouble();
if ( total > = 3.0)
{

tax = 0.10;
system. out. println(total + (total * tax));
}
else
{
system. out. println(total);
}
(a)5
(b)4
(c)4.4
(d) 3

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 19:40
Microsoft introduced active directory with windows 2000. in server 2012, it is in now version 4. what are some new features in the new ad that were not present in windows 2000 ad?
Answers: 1
question
Computers and Technology, 22.06.2019 04:30
Which of the statements below is true? the formatting, standard, and drawing commands are unavailable. the formatting, standard, and drawing commands have been used. the formatting, standard, and drawing toolbars are displayed. the formatting, standard, and drawing toolbars are hidden.
Answers: 1
question
Computers and Technology, 23.06.2019 04:20
Which network media uses different regions of the electromagnetic spectrum to transmit signals through air? uses different regions of the electromagnetic spectrum to transmit signals through air.
Answers: 2
question
Computers and Technology, 23.06.2019 12:40
According to the video what are some tasks petroleum engineers perform check all that apply
Answers: 2
You know the right answer?
Given the following code fragment and the input value of 4.0, what output is generated?
doubl...
Questions
question
English, 27.02.2021 18:50
question
Medicine, 27.02.2021 18:50
question
English, 27.02.2021 18:50
question
Mathematics, 27.02.2021 18:50
question
Advanced Placement (AP), 27.02.2021 18:50
question
Mathematics, 27.02.2021 18:50
question
Mathematics, 27.02.2021 18:50
question
Mathematics, 27.02.2021 18:50
Questions on the website: 13722367