To declare boolean variables and write Boolean expressions using relational
To implement selection control using one-way if statements (3.3).
To implement selection control using two-way if-else stateme
The Basics of Java
the preceding chapter, you learned how
to create, compile, and run a Java program.
Starting from this chapter, you will learn
how to solve practical problems
Characters, Strings, and
To solve mathematics problems by using the methods in the Math class (4.2).
To represent characters using the char type (4.3).
To encode characters using ASCII and Unicode (4.3.1).
King Abdulaziz University
Faculty of Computing and Information Technology
Computer Science Department
CPCS202, 1st Term 2017 (Fall 2017)
Program 2: Ticket buying System
Assigned: Thursday, October 27th, 2016
Due: Thursday, November 10th, 2016
1-prompt the user to enter the number for three kind of rented vehicle for 5 days
-Declare a constant of three kind of cars: 2
SEDAN=74, LUXURY=37, SUVs=44#
Compute number of Vehicles unrented of sedan cars by subtract the number of ranted -3
sedan cars f