subject

Suppose you write the following program that prompts the user to enter the current year tuition and finds out how many years the tuition will be doubled. there is an error in the highlighted line. fix it. you don't need to write the complete new program, just circle the affected code and replace it with the new code.   import java. util. scanner; public class test { public static void main( string[] args) { scanner input = new scanner(system. in); system. out. print("enter the current year tuition: "); double tuition = input. nextdouble();   int year = 0;   while (tuition < 2 * tuition) { tuition = tuition * 1.07; year++; }   system. out. println("tuition will be doubled in " + year + " years"); system. out. printf("tuition will be $%.2f in %1d years ", tuition, year);   } }     fyi: highlighted line is [while (tuition < 2 * tuition)]

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 08:00
Michael has written an e-mail to his employees that describes a new product special that will be introduced to the customers next week. by taking time to make sure the e-mail is well written, logical, and organized, michael has made sure his message has the characteristics of a) effective communicationb) ineffective communicationc) barriers to communicationd) workplace communication
Answers: 2
question
Computers and Technology, 23.06.2019 09:00
The first screen you see when you open word2016 what is called?
Answers: 1
question
Computers and Technology, 23.06.2019 15:00
To check whether your writing is clear , you can
Answers: 2
question
Computers and Technology, 23.06.2019 22:30
What would be the address of the cell, which is at the intersection of the second row and the third column in a worksheet?
Answers: 1
You know the right answer?
Suppose you write the following program that prompts the user to enter the current year tuition and...
Questions
question
Computers and Technology, 12.11.2020 05:30
question
Mathematics, 12.11.2020 05:30
question
Mathematics, 12.11.2020 05:30
question
Mathematics, 12.11.2020 05:30
question
Biology, 12.11.2020 05:30
question
Mathematics, 12.11.2020 05:30
question
Mathematics, 12.11.2020 05:30