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, 23.06.2019 09:50
Allison and her group have completed the data entry for their spreadsheet project. they are in the process of formatting the data to make it easier to read and understand. the title is located in cell a5. the group has decided to merge cells a3: a7 to attempt to center the title over the data. after the merge, allison points out that it is not centered and looks bad. where would the title appear if allison unmerged the cells in an attempt to fix the title problem?
Answers: 2
question
Computers and Technology, 23.06.2019 22:40
22. sata3 allows for data transfer rates of 600 mb/s. explain why you would likely not be able to copy data from one hard drive to another at anywhere close to this speed. also, what could be upgraded on the computer to achieve transfer speeds closer to 600 mb/s
Answers: 1
question
Computers and Technology, 24.06.2019 09:30
What is the definition of digital literacy?
Answers: 1
question
Computers and Technology, 24.06.2019 21:30
How do i copy and paste equations and pictures like math graphs, to post on this site to get my questions answered?
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: 13722367