Gestione eccezione opzione 3
This commit is contained in:
parent
a880e849e7
commit
5deed24c30
@ -93,7 +93,7 @@ class Cliente {
|
||||
Console.WriteLine($"Cognome: {this.GetCognome()}");
|
||||
Console.WriteLine($"Età: {this.GetEta()}");
|
||||
Console.WriteLine($"Codice fiscale: {this.GetCodiceFiscale()}");
|
||||
Console.WriteLine($"Numero prenotazioni: {this.prenotazioni.Length}");
|
||||
Console.WriteLine($"Numero prenotazioni: {this.prenotazioni.Length}\n");
|
||||
}
|
||||
|
||||
public void StampaPrenotazioni() {
|
||||
|
||||
@ -79,6 +79,6 @@ class Prenotazione {
|
||||
Console.WriteLine($"Giorni prenotati: {this.GetGiorniPrenotati()}");
|
||||
Console.WriteLine($"Costo: {this.GetCosto()}");
|
||||
Console.WriteLine($"Numero persone: {this.GetNumeroPersone()}");
|
||||
Console.WriteLine($"COdice fiscale a cui è intestata la prenotazione: {this.GetCodiceFiscalePrenotante()}");
|
||||
Console.WriteLine($"Codice fiscale a cui è intestata la prenotazione: {this.GetCodiceFiscalePrenotante()}");
|
||||
}
|
||||
}
|
||||
@ -276,9 +276,11 @@ class Program {
|
||||
break;
|
||||
case 3:
|
||||
for (int i = 0; i < numeroClienti; i++) {
|
||||
if (clienti[i] != null) {
|
||||
clienti[i].StampaDatiCliente();
|
||||
clienti[i].StampaPrenotazioni();
|
||||
}
|
||||
}
|
||||
Pausa();
|
||||
break;
|
||||
case 4:
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@ -13,7 +13,7 @@ using System.Reflection;
|
||||
[assembly: System.Reflection.AssemblyCompanyAttribute("agenzia_viaggi")]
|
||||
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
||||
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+ec1388ecb1b5b5cfc1973c4e5e8873d52feea5eb")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+a880e849e7d4a2978791c0c134799d7ea0c79c90")]
|
||||
[assembly: System.Reflection.AssemblyProductAttribute("agenzia_viaggi")]
|
||||
[assembly: System.Reflection.AssemblyTitleAttribute("agenzia_viaggi")]
|
||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||
|
||||
@ -1 +1 @@
|
||||
b0ce948d3f63d6c8af0fbb7ea9973b300f4bf335f64417c3bc8aa5381b7d3088
|
||||
86d553a2206a24066a2f2a887f4f9259aca91589cd91382116965530ddf5b584
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user