forked from pdeitel/JavaHowToProgram11e_EarlyObjects
-
Notifications
You must be signed in to change notification settings - Fork 0
PMP20007 Presentation
adrianopporto edited this page Apr 17, 2021
·
1 revision
//YeppoonCaravanPark //Booking Program
import java.util.Scanner; //package java that enables the program to read numbers and strings for use in the program
public class YeppoonCaravanPark { public static void main(String [] args)
{
double standardPrice1 = 14_50;
double standardGuestPrice1 = 4_95;
double dicountPrice5 = 12_50;
double discountGestPrice5 = 3_95;
double dicountPrice10 = 10_50;
double discountGuestPrice10 = 2_95;
int numberNights = 0;
final int FAIL = 0;
}
Scanner input = new Scanner(System.in); // Declare a Scanner that reads from the standard input object - normally keyboard.
int bookingCounter = 1;
int i = 0;
final int N = 8; // Assigment loop = Student
while(bookingCounter <= N)
{