Imaginary Number Calculator Version 1
- create an imaginary number calculator reducer.
- Use this template file imaginary-number starter
- The user should type the “power of i” and you should alert to the user the simplified version
Imaginary Number Calculator Version 1
We are going to write a class that sorts some of the classes we have already written –namely : the Account and Student classes that we wrote in the past. Specifically, this class is going to sort Student and accounts by their grade point averages and their account balances , respectively..
Organizer Skeleton class (You only have to fill in 1 method)
The Constructor
Accessor Methods
What if we wanted to sort the PlayList class and add the method void sort(PlayList[] lists)?
|
1) Centigrade to Fahrenheit Modification: Modify the Fahrenheit to centigrade project as follows.
2) Miles Per Gallon Modification: Modify the miles per gallon projec. In this one, ask the user how many times they want the MPG program to run and use a loop like this. .Due wed/Thurs the 17th/18th
3) Sea Plane Loop-the-Loop : Create a world with a sea plane (from the Vehicles
collection).Create an infinite loop that causes the sea plane to do a circular loop the loop. Adjust the style and duration editing tags to make the animation fast, and as smooth as possible.
EOU) Open assignment. Your open project must have each of the following criteraDue before Winter vacation
1 2 3 4 |
public String toString() { return "Class[var1 : " + this.var1 + ", var2: "+this.var2 +"]"; } |
Objects && ArrayList
Assignment ): Tutorial 4-2 Gum Drop Fish Assignment will be graded (2 points) from packet #13 will be graded. Download the GumdropBigFish world
Assignment 1 ) Miles Per Gallon: Create a world in which the
1 |
MPG = miles/gallons |
Assignment 3) Fahrenheit to Centigrade :
First, watch the animated gifs on this web page that explain how to use math in Alice
1 |
degreesCentigrade = (5/9) * (degreesFahrenheit − 32) |
People
collection to say the centigrade temperature.
Assignment 4) Modification of MPG
reopen the miles per gallon project
Assignment 5) Modification of Fahrenheit to Centigrade
reopen the Fahrenheit to Centigrade project and add
Assignment 6) Circle’s Area and Circumference: Create a world with your choice of person from the People
collection. When you play the world, it should
Assignment 8
Roman Numeral translator
Here’s a gif showing partial code and what the finished project should look like
Objective : to let the user type in a number between 1 and 10 and then have a character “translate” that into Roman Numerals ( I, II, III, IV, V, VI, VII, VIII, IX, X)
We are going to use the roman Numeral Translator file again, so it’s important that you don’t lose the file and give it a good name that you can easily recognize in the future.
Assignment 7-extra credit ). Look up the formulas for the volume and surface area of a cylinder . Ask the user for the height of the cylinder and the radius, which should be stored in variables. Then calculate the surface area and volume of the cylinder . See if there is a cylinder shape in the gallery to use as a visual aid.
Assignment 8 ) Open Assignment
Create an Alice world that
Objects && ArrayList
Part I
import java.util.ArrayList
1 2 3 4 5 |
ArrayList<String>; al = new ArrayList<String>(); al.add("first"); al.get(0) ; //-> 'first' ArrayList<Integer> ints = new ArrayList<Integer>(); |
Use A Stack Class to create a RPN calculator
Part I : RPN Math Class
Input: String representing RPN syntax
Parse the String (Maybe a separate method)
Calculate the return value of the RPN syntax.
Examples of Syntax
“3 -5 * “ | -15 |
IF invalid syntax is entered, your method should throw an ArrithmeticException
Things to Support
Part II: The GUI
Part III: **EC : Infix to postfix (allow users to enter numbers in infix)
Send me the jar file.
Intro to CS 2015-16
Recommended extra credit problems from project Euler
Project Euler
Coding Bat extensions
Other Mr. M Challenges
Binary Search
from http://www.mathwarehouse.com/programming/gifs/binary-vs-linear-search.php
From Programming Animated Gifs
Best Case Binary Search
From Programming Animated Gifs
http://
mrmonline.org/wp-content/uploads/2014/02/binary-search-wikepedia.gif
Other good links