Question: / / Start with a penny / / double it every day / / how much do you have in x number of days? import
Start with a penny
double it every day
how much do you have in x number of days?
import java.util.Scanner;
public class DebugSix
public static void mainString args
Scanner keyboard new ScannerSystemin;
int days;
double money ;
int day ;
System.out.printEnter number of days
days keyboard.nextInt;
whiledays day
money money;
day;
System.out.printlnAfter day days
you have money;
The files provided in the code editor contain syntax andor logic errors. In each case, determine and fix the problem, remove all syntax and coding errors, and run the program to ensure it works properly.
An example of the program is shown below:
Enter number of days
After day you have
After day you have
After day you have
After day you have
After day you have
After day you have
After day you have
After day you have
After day you have
After day you have
After day you have
After day you have
After day you have
After day you have
java
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
