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 21:00
It is not a good idea in a cover letter to mention another person whom the employer knows.
Answers: 1
question
Computers and Technology, 23.06.2019 10:00
Install and use wireshark program ( send back screen shots and other vital information) case project 3-2: decode a tcp segment in a wireshark capture in this chapter, you walked through tcp segment to interpret the data included in its header. in this project, you use wireshark to capture your own http messafes, examine the tcp headers, and practice interpreting the data you'll find there. 1. open wireshark and snap the window to one side of your screen. open a browser and snap that window to the other side of your screen so you can see both windows.
Answers: 2
question
Computers and Technology, 24.06.2019 11:00
In three to five sentences, describe how you can organize written information logically and sequentially
Answers: 1
question
Computers and Technology, 24.06.2019 15:30
During the software planning process, rick, a project manager, finds that his team has made an incorrect estimation of funds. what kind of risk has rick identified? rick has identified a risk.
Answers: 1
You know the right answer?
Given the following code fragment and the input value of 4.0, what output is generated?
doubl...
Questions
question
Social Studies, 04.05.2021 09:30
question
Mathematics, 04.05.2021 09:30
question
Mathematics, 04.05.2021 09:30
question
Social Studies, 04.05.2021 09:30
question
Mathematics, 04.05.2021 09:30
question
Mathematics, 04.05.2021 09:30
question
Advanced Placement (AP), 04.05.2021 09:30
question
Mathematics, 04.05.2021 09:30
question
Social Studies, 04.05.2021 09:30
Questions on the website: 13722363