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 03:30
Hashtags serve to identify the topic of a given tweet true false
Answers: 2
question
Computers and Technology, 24.06.2019 00:40
To maintain clarity and focus lighting might be needed
Answers: 2
question
Computers and Technology, 24.06.2019 01:00
Verify each identity[tex] \frac{csc}{cot \: x \: + \: tan \: x} = cos \: x[/tex]
Answers: 1
question
Computers and Technology, 24.06.2019 14:30
Alison is having a hard time at work because hee inbox is flooded with emails every day. some of these emails are unsolicited. some of other she don’t need. which action should she take to better manager her emails?
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
Social Studies, 20.12.2020 22:00
question
Chemistry, 20.12.2020 22:00
question
Mathematics, 20.12.2020 22:00
question
Mathematics, 20.12.2020 22:00
question
Mathematics, 20.12.2020 22:00
Questions on the website: 13722365