Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace ConsoleApplication3
- {
- class Program
- {
- static void Main(string[] args)
- {
- Wiza wiza = new Wiza();
- Console.ReadKey();
- wiza.wypelnienieWniosku();
- }
- }
- class Klient
- {
- protected int IDKlienta;
- protected string imieNazwisko, adresZamieszkania, dataUrodzenia, Obywatelstwo, kodPocztowy, Miasto;
- }
- class RezerwacjaHotelu
- {
- string NazwaHotelu;
- int NumerRezerwacji;
- int IloscMiejsc;
- string DataPrzyjazdu;
- string DataWyjazdu;
- }
- class RezerwacjaLotu
- {
- int NumerLotu;
- string NazwaLiniiLotniczych;
- int IloscMiejsc;
- string DataLotu;
- int NumerZlecenia;
- string MiejsceWylotu;
- string MiejsceDocelowe;
- }
- class Agent
- {
- int IDAgenta;
- string imieNazwisko;
- string nrTelefonu;
- }
- class Sekretarka
- {
- int IDSekretarki;
- string imieNazwisko;
- }
- class Wiza : Klient
- {
- bool paszport = true;
- int iloscWymaganychDokumentow = 1;
- //
- string[] Rodzaje = {"turystyczna", "biznesowa", "prywatna", "tranzytowa", "pracownicza", "naukowa", "sportowa", "dziennikarska"};
- string RodzajWizy;
- string Kraj;
- string CelPodrozy;
- string dataPrzyjazdu;
- string dataWyjazdu;
- //
- int nrZlecenia;
- public bool kompletnoscDokumentow()
- {
- if (iloscWymaganychDokumentow == 1)
- {
- Console.WriteLine("Dokumenty kompletne.");
- return true;
- }
- else
- Console.WriteLine("Dokumenty nie są kompletne.");
- return false;
- }
- public bool czyDostarczonoDokumenty()
- {
- if (paszport == true)
- {
- Console.WriteLine("Dostarczono dokumenty.");
- return true;
- }
- else
- {
- Console.WriteLine("Nie dostarczono dokumentów.");
- return false;
- }
- }
- public void wypelnienieWniosku()
- {
- if ((czyDostarczonoDokumenty()) && (kompletnoscDokumentow()))
- {
- Console.WriteLine("Podaj imie i nazwisko: ");
- imieNazwisko = Console.ReadLine();
- Console.WriteLine("Podaj adres zamieszkania: ");
- adresZamieszkania = Console.ReadLine();
- Console.WriteLine("Podaj date urodzenia: ");
- dataUrodzenia = Console.ReadLine();
- Console.WriteLine("Podaj obywatelstwo: ");
- Obywatelstwo = Console.ReadLine();
- Console.WriteLine("Podaj kod pocztowy: ");
- kodPocztowy = Console.ReadLine();
- Console.WriteLine("Podaj miasto: ");
- Miasto = Console.ReadLine();
- }
- }
- public Wiza()
- {
- Console.WriteLine("Wpisz kraj, do którego chcesz otrzymać wizę: ");
- Kraj = Console.ReadLine();
- Console.WriteLine("Wybierz rodzaj wizy: ");
- foreach (string show in Rodzaje)
- Console.WriteLine(show);
- RodzajWizy = Console.ReadLine();
- Console.WriteLine("Podaj cel podróży: ");
- CelPodrozy = Console.ReadLine();
- Console.WriteLine("Podaj date przyjazdu: ");
- dataPrzyjazdu = Console.ReadLine();
- Console.WriteLine("Podaj date wyjazdu: ");
- dataWyjazdu = Console.ReadLine();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement