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, 22.06.2019 00:40
If you arrive at the same time as another user straight across from you yield if a. they flash your headlights at you b. you can’t see their turn signals c. you’re going street and they’re running d. you’re turning they’re going straight plz
Answers: 1
question
Computers and Technology, 23.06.2019 07:30
What is the penalty for violating section 1201 of title 17 chapter 21 of the us code
Answers: 1
question
Computers and Technology, 23.06.2019 20:30
What are some settings you can control when formatting columns?
Answers: 1
question
Computers and Technology, 23.06.2019 21:40
Draw the resistor’s voltage and current phasors at t=15ms. draw the vectors with their tails at the origin. the orientation of your vectors will be graded. the exact length of your vectors will not be graded.
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
Questions on the website: 13722361