How Do You Write Pseudo Code For Java?

i have no idea how to write a pseudo code!
for the one below!!! how would you write the pseudo code?
import java.util.Scanner;
public class LeisureCentre
{
private static Scanner scan;
public static void main(String[] args) {
int Age = 0;
String Category;
int discount= 0;
scan = new Scanner(System.in);
System.out.println(“Enter the category you are in i.e. bronze, silver,gold:”);
Category = scan.next();
System.out.println(“Enter your age:”);
Age = scan.nextInt();
if(“gold”.equalsIgnoreCase(Category)…
{
System.out.println(“Your gold category allows you 25% discount”);
discount = 25;
}
else if(“bronze”.equalsIgnoreCase(Category)){
System.out.println(“Your bronze category allows you 10% discount”);
discount = 10;
}
else if (“silver”.equalsIgnoreCase(Category)){
System.out.println(“Your silver category allows you 15% discount”);
discount = 15;
}
else
{
System.out.println(“Invalid input”);
}
if ((Age60)){
System.out.println(“You are also eligible for 10% extra discount”);
discount = discount + 10;
}
System.out.println(“Your total discount is:”+discount+”%”);
}
}

Both comments and pings are currently closed.

Comments are closed.

Powered by WordPress | Designed by: free css template | Thanks to hostgator coupon and web hosting reviews