Skip to content

Commit

Permalink
maj
Browse files Browse the repository at this point in the history
  • Loading branch information
flaw03 committed Feb 26, 2023
1 parent 6db7d71 commit c03a15a
Show file tree
Hide file tree
Showing 8 changed files with 44 additions and 8 deletions.
Binary file added .DS_Store
Binary file not shown.
8 changes: 8 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions ILU2-POO-TP2.iml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager">
<output url="file://$MODULE_DIR$/bin" />
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>
1 change: 0 additions & 1 deletion src/frontiere/BoundaryAfficherMarche.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ public class BoundaryAfficherMarche {
public BoundaryAfficherMarche(ControlAfficherMarche controlAfficherMarche) {
this.controlAfficherMarche = controlAfficherMarche;
}

public void afficherMarche(String nomAcheteur) {

}
Expand Down
11 changes: 4 additions & 7 deletions src/frontiere/BoundaryPrendreEtal.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ public class BoundaryPrendreEtal {
private Scanner scan = new Scanner(System.in);

public BoundaryPrendreEtal(ControlPrendreEtal controlChercherEtal) {

this.controlPrendreEtal = controlChercherEtal;
}

Expand Down Expand Up @@ -37,17 +38,13 @@ private void installerVendeur(String nomVendeur) {
System.out.println(
"Il me faut quelque renseignenments : \n"
);
StringBuilder question = new StringBuilder();
question.append("Quel Produit souhaitez-vous vendre ?\n");
StringBuilder question2 = new StringBuilder();
question2.append("Combien souhaitez-vous en vendre ?");
System.out.println(question.toString());
System.out.println("Quel Produit souhaitez-vous vendre ?\n");
String nomProduit = scan.nextLine();
int nbProduit = Clavier.entrerEntier(question2.toString());
int nbProduit = Clavier.entrerEntier("Combien souhaitez-vous en vendre ?");
int numEtal = controlPrendreEtal.prendreEtal(nomVendeur, nomProduit, nbProduit);
if (numEtal != -1){
System.out.println(
"Le vendeur "+ nomVendeur +"s\'est bien installé à l'etal n°"+numEtal+".");
"Le vendeur "+ nomVendeur +"s'est bien installé à l'etal n°"+numEtal+".");
}
}
}

0 comments on commit c03a15a

Please sign in to comment.