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, 22.06.2019 11:30
Communication is the exchange of information. true false
Answers: 2
question
Computers and Technology, 23.06.2019 20:00
What multimedia system creates an immersive, real-life experience that the user can interact with?
Answers: 1
question
Computers and Technology, 24.06.2019 01:30
Suppose a cpu with a write-through, write-allocate cache achieves a cpi of 2. what are the read and write bandwidths (measured by bytes per cycle) between ram and the cache? (assume each miss generates a request for one block.)
Answers: 1
question
Computers and Technology, 24.06.2019 14:00
Fast answer i need for apex ! smartphones should be banned from the classroom in public schools so that students cannot cheat on test so easily? which is an example of a counter argument to the thesis above? a.the classroom is a place for learning not for making phone calls b. smartphones are useful learning tools in the modern classroom c.banning smartphones will not students pay attention to teachers any better d. banning smartphones would decreased incidents of theft
Answers: 2
You know the right answer?
Suppose you write the following program that prompts the user to enter the current year tuition and...
Questions
question
Chemistry, 26.10.2021 02:00
question
Mathematics, 26.10.2021 02:00
question
Mathematics, 26.10.2021 02:00
Questions on the website: 13722367