-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f0f351e
commit 1e2c9e9
Showing
4 changed files
with
43 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,13 @@ | ||
package tp03; | ||
|
||
public class Convidado { | ||
import java.util.Random ; /* utilizado para randomizar se o convidado está confirmado ou não */ | ||
|
||
public class Convidado extends Pessoa { | ||
|
||
private boolean confirmado;; | ||
convidado1 = new pessoa; | ||
|
||
|
||
/* classe de convidados- confirmados-nome */ | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package tp03; | ||
|
||
import java.util.Scanner; | ||
|
||
public class Orçamento { | ||
|
||
private static float orçaTotal; | ||
private static Gastos gastos; | ||
|
||
public static final void lerOrç(){ | ||
|
||
Orçamento orç1 = new Orçamento(); | ||
|
||
Scanner ler = new Scanner(System.in); | ||
System.out.println("informe o Orçamento para o evento"); | ||
orçaTotal = ler.nextFloat(); | ||
System.out.println("Saldo do Evento é = " + (orçaTotal - gastos.getGastos())); | ||
|
||
} | ||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
package tp03; | ||
|
||
public class Usuario { | ||
|
||
public class Usuario extends Pessoa{ | ||
|
||
private String nomeUs; | ||
|
||
} |