WaiterFinch

Targeted Concept(s): 
Variables
Supported Language(s): 
Java

Program Name: WaiterFinch.java
Objective: The purpose of this program is to learn how to do calculations as well as using the Finch commands.

Write a program that computes the tax and tip on the restaurant bill. The program should ask the user for their name, amount of bill, and color they want the beak. The tax is 6.75% of the bill. The tip should be 20% of the total after adding the tax. Display the amount of bill, tax, tip, and total amount. Have the Finch be the waiter by saying your name and the amount you owe. The Finch should be facing you and be some distance away. Have the Finch move toward you and play a clip, tell you the amount you owe, and return to its original position.

Commands:
Initiating the Scanner: Scanner keyboard = new Scanner(System.in);
Variable: dataType variableName;
Output to the screen: System.out.print("This will output on the screen.");
Finch Pause: myFinch.sleep(1000); // in milliseconds (1000 = 1 second)
Finch Beak Color: myFinch.setLED(red,green,blue); // 0 to 255
Finch Speak: myFinch.saySomething("The Finch will say this.");
Finch Moves: myFinch.setWheelVelocities(left,right,time)
// -255 to 255 & time is in milliseconds
Finch Play Sound Clip: myFinch.playClip("filepath_goes_here");
Get Keyboard String Input: variableName = keyboard.nextLine();
Get Keyboard Double Input: variableName = keyboard.nextDouble();

Comments

WaiterFinch

How fun & useful! Great math tie-in! Thanks for the idea!