AP Com Sci Project

AP Com Sci Project
  Copy


More Options: Make a Folding Card




Storyboard Description

This storyboard does not have a description.

Storyboard Text

  • public static void sandwich() {boolean sandwich, chips;sandwich = true; chips = true;if (sandwich = true) {System.out.println ("eat the sandwich"); }}
  • That'll be $4.00.
  • If Felicia has a sandwich, she will eat it!
  • 'Nom nom nom'
  • Felicia: I'd like to order a sandwich please.
  • In this case, Felicia gets the sandwich so the sandwich is true.
  • Why is she telling me this, I just want to be paid.
  • Nested statement inside of if (sandwich = true) statement: if (sandwich && chips == true) {System.out.println ("pay extra 2 dollars"); }else { System.out.println ("eat the sandwich") }}
  • If you want chips as well, that will cost you $6.00 dollars.
  • If Felicia has a sandwich AND wants chips, she will pay 2 more dollars.
  • I don't have any money left!! I'm broke. I owe some bad people a lot of money.
  • A******!
  • Felicia is eating the sandwich because she is acting out the else statement. Here, she has not ordered the chips and thus, eats the sandwich.
  • But...but my money!
  • 'Back to eating her sandwich happily'
  • 'Nom nom nom'
More Storyboards By ikudapa22
Explore Our Articles and Examples

Business Resources

All Business ArticlesBusiness Templates

Film Resources

Film ResourcesVideo Marketing

Illustrated Guides

BusinessEducation
Try Our Other Websites!

Photos for Class   •   Quick Rubric   •   abcBABYart   •   Storyboard That's TpT Store