menu.txt

(8 KB) Pobierz
package kbulzak;
/**
 * @author Karol Bulzak
 * @version 1.1.3
 * lab 3
 * 
*/
public class lab3 {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		int r;
		System.out.println("jaki Program");
		System.out.println("Telegazeta");
		System.out.println("Obraz");
		System.out.println("Dzwiek");
		System.out.println("Internet");
		r = (int) Math.floor(Math.random()*100%5);
		for(int i=0;i<10;i++)
		{
		r = (int) Math.floor(Math.random()*100%5);
		switch(r)
		{
		case 0:
			System.out.println("jaki program");
			r = (int) Math.floor(Math.random()*100%4);
			if(r == 0)
			{
				System.out.println("-> polsat");
				r = (int) Math.floor(Math.random()*100%3);
				switch(r)
				{
				case 0:
					System.out.println("\t-> Film");
				break;
				case 1:
					System.out.println("\t-> Kultura");
				break;
				case 2:
					System.out.println("\t-> Polityka");
				break;
				}
				
			}
		else if(r==1)
			{
				System.out.println("-> Tvn");
				r = (int) Math.floor(Math.random()*100%3);
				switch(r)
				{
				case 0:
					System.out.println("\t-> Film");
				break;
				case 1:
					System.out.println("\t-> Kultura");
				break;
				case 2:
					System.out.println("\t-> Polityka");
				break;
				}
			}
		  else if(r==2)
			{
				r = (int) Math.floor(Math.random()*100%3);
				System.out.println("-> Axn");
				switch(r)
				{
				case 0:
					System.out.println("\t-> Film");
				break;
				case 1:
					System.out.println("\t-> Kultura");
				break;
				case 2:
					System.out.println("\t-> Polityka");
				break;
				}
			}
			else if(r==3)
			{
				r = (int) Math.floor(Math.random()*100%3);
				System.out.println("-> HBO");
				switch(r)
				{
				case 0:
					System.out.println("\t-> Film");
				break;
				case 1:
					System.out.println("\t-> Kultura");
				break;
				case 2:
					System.out.println("\t-> Polityka");
				break;
				}
			}
		break;
		case 1:
			r = (int) Math.floor(Math.random()*100%4);
			System.out.println("Telegazeta");
			if(r == 0)
			{
				System.out.println("-> PROGRAM  NA DZIS");
				r = (int) Math.floor(Math.random()*100%3);
				switch(r)
				{
				case 0:
					System.out.println("\t-> tvp1");
				break;
				case 1:
					System.out.println("\t-> tvp2");
				break;
				case 2:
					System.out.println("\t-> polsat");
				break;
				}
				
			}
			else if(r==1)
			{
				System.out.println("-> og?oszenia");
				r = (int) Math.floor(Math.random()*100%3);
				switch(r)
				{
				case 0:
					System.out.println("\t-> mini og?oszenia");
				break;
				case 1:
					System.out.println("\t-> motoryzacja");
				break;
				case 2:
					System.out.println("\t-> kup sprzedaj");
				break;
				}
				
			}
			else if(r==2)
			{
				System.out.println("-> lotto");
				r = (int) Math.floor(Math.random()*100%3);
				switch(r)
				{
				case 0:
					System.out.println("\t-> mini lotek");
				break;
				case 1:
					System.out.println("\t-> duzy lotek");
				break;
				case 2:
					System.out.println("\t-> twoj szczesliwy numerek");
				break;
				}
				
			}
			else if(r==3)
			{
				System.out.println("-> Motoryzacja");
				r = (int) Math.floor(Math.random()*100%3);
				switch(r)
				{
				case 0:
					System.out.println("\t-> sanochody");
				break;
				case 1:
					System.out.println("\t-> motory");
				break;
				case 2:
					System.out.println("\t-> moto rowery");
				break;
				}
				
			}
		break;
		case 2: 
			r = (int) Math.floor(Math.random()*100%4);
			System.out.println("Obraz");
			if(r == 0)
			{
				System.out.println("-> Rozjasnij");
				r = (int) Math.floor(Math.random()*100%3);
				switch(r)
				{
				case 0:
					System.out.println("\t-> Bardziej");
				break;
				case 1:
					System.out.println("\t-> Mniej");
				break;
				case 2:
					System.out.println("\t-> Przywroc domyslne");
				break;
				}
				
			}
			else if(r==1)
			{
				System.out.println("-> Przyciemnij");
				r = (int) Math.floor(Math.random()*100%3);
				switch(r)
				{
				case 0:
					System.out.println("\t-> Bardziej");
				break;
				case 1:
					System.out.println("\t-> Mniej");
				break;
				case 2:
					System.out.println("\t-> Przywroc domyslne");
				break;
				}
				
			}
			else if(r==2)
			{
				System.out.println("-> Kontrast");
				r = (int) Math.floor(Math.random()*100%3);
				switch(r)
				{
				case 0:
					System.out.println("\t-> Bardziej");
				break;
				case 1:
					System.out.println("\t-> Mniej");
				break;
				case 2:
					System.out.println("\t-> Przywroc domyslne");
				break;
				}
				
			}
			else if(r==3)
			{
				System.out.println("-> Skaluj");
				r = (int) Math.floor(Math.random()*100%3);
				switch(r)
				{
				case 0:
					System.out.println("\t-> zoom");
				break;
				case 1:
					System.out.println("\t-> 16x9");
				break;
				case 2:
					System.out.println("\t-> 4x9");
				break;
				}
				
			}
		break;
		
		case 3:
			r = (int) Math.floor(Math.random()*100%4);
			System.out.println("Dzwiek");
			if(r == 0)
			{
				System.out.println("-> Przycisz");
				r = (int) Math.floor(Math.random()*100%3);
				switch(r)
				{
				case 0:
					System.out.println("\t-> Bardziej");
				break;
				case 1:
					System.out.println("\t-> Mniej");
				break;
				case 2:
					System.out.println("\t-> Przywroc domyslne");
				break;
				}
				
				
			}
			else if(r==1)
			{
				System.out.println("-> Poglos");
				r = (int) Math.floor(Math.random()*100%3);
				switch(r)
				{
				case 0:
					System.out.println("\t-> Bardziej");
				break;
				case 1:
					System.out.println("\t-> Mniej");
				break;
				case 2:
					System.out.println("\t-> Przywroc domyslne");
				break;
				}
					
			}
			else if(r==2)
			{
				System.out.println("-> Zwieksz jakosc");
				r = (int) Math.floor(Math.random()*100%3);
				switch(r)
				{
				case 0:
					System.out.println("\t-> stereo");
				break;
				case 1:
					System.out.println("\t-> surraund");
				break;
				case 2:
					System.out.println("\t-> Przywroc domyslne");
				break;
				}
				
			}
			else if(r==3)
			{
				System.out.println("-> Zmniejsz jakosc");
				r = (int) Math.floor(Math.random()*100%3);
				switch(r)
				{
				case 0:
					System.out.println("\t-> stereo");
				break;
				case 1:
					System.out.println("\t-> mono");
				break;
				case 2:
					System.out.println("\t-> Przywroc domyslne");
				break;
				}
				
			}
		break;
		case 4:
			r = (int) Math.floor(Math.random()*100%4);
			System.out.println("Internet");
			if(r == 0)
			{
				System.out.println("-> Wybierz strone");
				r = (int) Math.floor(Math.random()*100%3);
				switch(r)
				{
				case 0:
					System.out.println("\t-> Strona 1");
				break;
				case 1:
					System.out.println("\t-> Strona 2");
				break;
				case 2:
					System.out.println("\t-> Strona 3");
				break;
				}
				
			}
			else if(r==1)
			{
				System.out.println("-> Tryb polaczen");
				r = (int) Math.floor(Math.random()*100%3);
				switch(r)
				{
				case 0:
					System.out.println("\t-> Tryb 1");
				break;
				case 1:
					System.out.println("\t-> Tryb 2");
				break;
				case 2:
					System.out.println("\t-> Tryb 3");
				break;
				}	
			}
			else if(r==2)
			{
				System.out.println("-> Ogladaj online");
				r = (int) Math.floor(Math.random()*100%3);
				switch(r)
				{
				case 0:
					System.out.println("\t-> Program 1");
				break;
				case 1:
					System.out.println("\t-> Program 2");
				break;
				case 2:
					System.out.println("\t-> Program 3");
				break;
				}
			}
			else if(r==3)
			{
				System.out.println("-> Zamow program");
				r = (int) Math.floor(Math.random()*100%3);
				switch(r)
				{
				case 0:
					System.out.println("\t-> Program 1");
				break;
				case 1:
					System.out.println("\t-> Program 2");
				break;
				case 2:
					System.out.println("\t-> Program 3");
				break;
				}
			}
		break;
			
		}
		}
	}
}
Zgłoś jeśli naruszono regulamin