00:02
So, hello, today we'll write a program for the sweet dreams travel agency that calculates the cost of trip to argentina.
00:10
Let's get started.
00:11
First, we'll need to import some necessary classes including scanner for user input, decimal format for formatting currency and random for generating a confirmation code.
00:48
Yes.
00:48
So, let's define our main method.
00:51
We'll create a scanner object.
00:58
I'll just highlight it for you.
01:00
Just a sec.
01:01
Haan.
01:02
We'll create a scanner object to read user input.
01:10
We usually do that so that they can read the user input and a decimal format for currency formatting.
01:28
We start by asking the customer their last name which we convert to uppercase.
01:34
Now we ask for the number of people participating in the trip.
01:49
We also ask for number of nights, that is the duration of the stay.
02:05
And finally we ask the amount of money the customer wants to take with them for the expenses so that it can be converted into the required currency...