RATIONAL NUMBER CLASS IN JAVA AIM To write a program to find the rational form of rational number. ALGORITHM 1. Start the program. 2. Declare the class name as rational and assign num, den as two parameters. 3. Declare constructor as rational and numerator and denominator as parameter. 4. Then write to string () method to print the rational class object as a string. 5. To get the GCD value using static method use GCD (int m, int n) method. 6. Get the num and den from the user by using string[]. 7. The error by using try, catch blocks. 8. Stop the program. DATE CLASS IN JAVA AIM To develop a date class in java similar to the one in java.util.package using java doc commands. ALGORITHM 1. Start the …show more content…
ALGORITHM 1. Create the class calculator that extends JApplet class to display the buttons and obtain input from the user. 2. The init () method is the module gets executed first. This makes a call to the display panel for calculator like structure/ 3. Represent all the numbers and operators as button and use ActionListener to Listed to the User’s input. 4. Whenever click operation is performed on operators store the value in Textbox as the first value and obtain the second value from the Textbox on click is performed on equals operator. 5. Display the result in the Textbox. OBJECT SERIALIZATION AIM To write a java program for performing object serialization. ALGORITHM 1. Start the program. 2. Serialization id obtained by implementing the serializable interface to the currency. 3. Get the randomly generated values and store it an Rupee and Dollars inside a file. 4. Serialize the value from the file and convert all dollar values into rupees by checking the presence of ‘$’ symbol. 5. Display all the values till all the elements in the file are read. 6. Stop the program. JCHECK BOX SWING AIM To write a program to illustrate checkbox control by using java. ALGORITHM 1. Open a notepad. 2. Create a class name as CheckBoxDemo. 3. Declare the TextFile as jtf. 4. Declare the jt cb1, cb2 as JCheckBox and C as container. 5. Create a Icon object. 6. Import Quit and event and
2. Before you make the note in Question 1, you decide to determine Friday’s date, so that you can include it in your note. What Linux command can you use to quickly determine the Friday’s date?
The exchange rates risk that is associated with economic, transaction, and translation exposure in Indian market. From the analysis, anticipate the fluctuations that seem to occur in the next 24 months
FINAL PROJECT Peter Walkoviak IT 210 SEPTEMBER 10 2011 CASANDRA RICHARDSON FINAL PROJECT Application level requirements INPUT | PROCESS | OUTPUT | Main options | Display main | Main options | Main choose currency to be converted | Get users input | Display currency rate | Input total amount of currency to be converted | Calculate foreign currency into US dollars | Display total amount of currency in US dollars | Enter another currency amount or quit program | Return user to menu | Another conversion or quit program | Display results module Display module Foreign currency module Convert currency module Main module Currency Conversion Design Main Module Declare CurrencyType as string
List all variables you will use (use valid variable names). Indicate whether the data type is string, integer, or double, and so on.
A(n) Combo box control provides the features of a text box and a list box.
Once calculated the program must be able to compare the students answer and the systems answer to be able to show whether the students answer was correct or incorrect.
ArrayList object in your main() function and pass it to any JPanels that require it (i.e., pass to
So, I went back to the book and looked in chapter two for a while then I went on to chapter three and found on pg. 91 -97 about the if and else statements to create a module. After I played with it for a while and kept getting error messages. I finally realized when I typed if I would type the condition which needed to be int(number) % 2 == 0 : because int is for integer that way the program would know it would be a whole number. The “%” is used in this program because it means remainder or module and I used it for the module part. The double == signs just bean equal I found this on pg. 92. Next on pg. 93 it shows to indent and type your sequence of statements and mine is print(“This si even”). I did this to so when the user types in any even number it will tell they user that it is an even number. Next, when I typed else I hit enter and indented again to type my sequence of statements, which is print(“this is odd”). This is so when the user types in an odd number the program will tell them that it is odd. From our notes I saw how to include the random library which is to type random = random.randint (0, 20000). The first time I entered this I spelled it wrong and immediately received an error message. I went back and changed the spelling and it ran
1) You can call the module several times instead of writing it out each time.
Goal: Frieda will name and give values to units of money for 3/3 trials over 3 consecutive days with random
If ACI were to accept payment in rupee, it would be incurring substantial currency risk. If the payments were to occur on schedule, 20% advance payment upon contract signing and the 80% balance settled 180 days following invoice for completed work in 360 days (180 + 360 = 540 days from the present, contract signing), and no current devaluation were to take place, the present value of the sale was estimated at $18 million. However, if the rupee suffered a 20% devaluation after the advance payment but before
} void refill(int count) { this.count = count; state = noCoinState; } public void setCoin(int c) { coin = c; } public int getCoin() { return coin; } public State getState() { return state; } public State getSoldOutState() { return soldOutState; } public State getNoCoinState() { return noCoinState; } public State getHasCoinState() { return hasCoinState; } public State getSoldState() { return soldState; } public String toString() { StringBuffer result = new StringBuffer(); result.append(" Mighty Gumball, Inc."); result.append(" Java-enabled Standing Gumball Model #2004"); result .append(" Inventory: " + count + " gumball"); if (count !
1. Take the PV of these yen cash flows at 7.1% This equals Yen 24,258,824,814.179
Symbolic representation using base-ten and expanded algorithms is a way to show students the written connection to the visual models used. The partial-products algorithm is a more detailed step-by-step process and therefore more advisable to avoid errors in students learning to grasp the procedure (Reys ch.11.4). This process allows students to visualise the distributive property more easily. However, the standard multiplication algorithm is quicker and acceptable for students, if the teacher feels they have complete understanding of the steps in the partial-products algorithm.
As even after partial convertibility of rupee, foreign exchange value of rupee remained stable. Full convertibility on current account was announced in the budget 1993-94. From March 1993,