Free Essay

Java Programming

In:

Submitted By slimeminem
Words 1321
Pages 6
Activity 1: Numbers

I. Problem
Create an application that will input a start value and end value. The application will start value all the members from the start to end value and all the odd and even.

II. Analysis
Input Variable Data Type Description SV Integer Starting Value EV Integer End Value

Output Variable NOS Integer Numbers OD Integer Odd numbers EV Integer Even numbers

III. Output Layout

IV. Codes import java.util.Scanner; public class EvenOdd
{
public static void main (String[]args) { int a; int b; Scanner in = new Scanner (System.in); System.out.print ("Starting Value: "); a=in.nextInt(); System.out.print ("End Value: "); b=in.nextInt(); System.out.println("number\t"+"odd\t"+"even\t");

for(int i=a; i<=b;i++) { System.out.print(i); if(i%2==0) { System.out.println("\t\t"+i );//even } else { System.out.println("\t"+i); //odd } } }
}
Activity 2: Transaction I. Problem
Create an application that will transact the following item codes with looping and will print a receipt.

II. Analysis
Input Variable Data Type Description
A Integer Letter A Price
B Integer Letter B Price
C Integer Letter C Price
D Integer Letter D Price
E Integer Letter E Price q Integer Quantity tno Integer Transaction Number ic String Item Code ap Integer Amount Paid

Output Variable ipriceA Integer Total Amount in A ipriceB Integer Total Amount in B ipriceC Integer Total Amount in C ipriceD Integer Total Amount in D ipriceE Integer Total Amount in E
3
vat Integer 12% Vat c Integer Change

Code Description Item Price A 2g 200 B 4g 500 C 8g 800 D 16g 1200 E 32g 2000

III. Output Layout

IV. Codes import java.util.*; public class Transaction
{
static Scanner console = new Scanner(System.in); public static void main(String[] args) { int pa ,pb , pc, pd, pe, tno, q, ap, C; int a, b, c, d, e ; String ic; a = 200; b = 500; c = 800; d = 1200; e = 2000; tno = 1001; System.out.println("Code Description Item Price"); System.out.println("A 2g 200"); System.out.println("B 4g 500"); System.out.println("C 8g 800"); System.out.println("D 16g 1200"); System.out.println("E 32g 2000"); System.out.println("Transaction No. " + tno); System.out.print("Item Code: "); ic = console.next();

if (ic.equals("a")||ic.equals("A")) { System.out.print("Quantity: "); q = console.nextInt(); pa = (a * q);

System.out.println("Transaction: " + tno); System.out.println("No. of Items Purchased: " + q); System.out.println("Total Amount Purchased: " + pa); System.out.println("Vat 12%: " + (pa * .12)); System.out.print("Amount Paid: " ); ap = console.nextInt(); c = ap - pa; System.out.println("Change: " + c); System.out.print("Item Code: "); ic = console.next(); } if(ic.equals ("b")||ic.equals ("B")); { System.out.print("Quantity: "); q = console.nextInt(); pb = (b * q); System.out.println("Item Price: " + 500); System.out.println("Total Amount: " + pb); System.out.println("Transaction: " + tno); System.out.println("No. of Items Purchased: " + q); System.out.println("Total Amount Purchased: " + pb); System.out.println("Vat 12%: " + (pb * .12)); System.out.print("Amount Paid: " ); ap = console.nextInt(); c = ap - pb; System.out.println("Change: " + c); System.out.print("Item Code: "); ic = console.next(); } if (ic.equals ("c")||ic.equals ("C")); { System.out.print("Quantity: "); q = console.nextInt(); pc = (c * q); System.out.println("Item Price: " + 800); System.out.println("Total Amount: " + pc); System.out.println("Transaction: " + tno); System.out.println("No. of Items Purchased: " + q); System.out.println("Total Amount Purchased: " + pc); System.out.println("Vat 12%: " + (pc * .12)); System.out.print("Amount Paid: " ); ap = console.nextInt(); c = ap - pc; System.out.println("Change: " + c); System.out.print("Item Code: "); ic = console.next(); } if (ic.equals ("d")||ic.equals ("D")); { System.out.print("Quantity: "); q = console.nextInt(); pd = (d * q); System.out.println("Item Price: " + 1200); System.out.println("Total Amount: " + pd); System.out.println("Transaction: " + tno); System.out.println("No. of Items Purchased: " + q); System.out.println("Total Amount Purchased: " + pd); System.out.println("Vat 12%: " + (pd * .12)); System.out.print("Amount Paid: " ); ap = console.nextInt(); c= ap - pd; System.out.println("Change: " + c); System.out.print("Item Code: "); ic = console.next(); } if (ic.equals ("e")||ic.equals ("E")); { System.out.print("Quantity: "); q = console.nextInt(); pe = (e * q); System.out.println("Item Price: " + 2000); System.out.println("Total Amount: " + pe); System.out.println("Transaction: " + tno); System.out.println("No. of Items Purchased: " + q); System.out.println("Total Amount Purchased: " + pe); System.out.println("Vat 12%: " + (pe * .12)); System.out.print("Amount Paid: " ); ap = console.nextInt(); c = ap - pe; System.out.println("Change: " + c); System.out.print("Item Code: "); ic = console.next(); } }
}

Activity 3: String Compare I. Problem
Make software that can be equal with the same string to another string. II. Analysis
Input Variable Data Type Description anotherName String Enter the name

Output Variable aName String As Princess III. Output Layout

IV. Codes

import java.util.Scanner; class StringCompare
{
public static void main(String[] args) { String aName = "Princess"; String anotherName; Scanner input = new Scanner(System.in); System.out.print("Enter your name: "); anotherName = input.nextLine(); if(aName.equals(anotherName)) System.out.println(aName + " = " + anotherName); else System.out.println(aName + " does not equal " + anotherName); }
}
Activity 4: Test Character I. Problem
Make a program that will input a text then it will define if it is uppercase and lowercase after that the text input will be uppercase and it can be lowercase and it define if it is a digit or a letter. II. Analysis
Input Variable Data Type Description aString String Text will input

Output Variable aChar Character Counts the number of character III. Output Layout

IV. Codes import java.util.Scanner; class TestCharacter
{
public static void main(String[] args) { char aChar; String aString; Scanner keyboard = new Scanner(System.in); System.out.print("Enter a character: "); aString = keyboard.nextLine(); aChar = aString.charAt(0); System.out.println("The character is: " + aChar); if(Character.isUpperCase(aChar)) System.out.println(aChar + " is uppercase."); else System.out.println(aChar + " is not uppercase."); if(Character.isLowerCase(aChar)) System.out.println(aChar + " is lowercase."); else System.out.println(aChar + " is not lowercase."); aChar = Character.toLowerCase(aChar); System.out.println("Lowercase = " + aChar); aChar = Character.toUpperCase(aChar);
System.out.println("Uppercase = " + aChar); if(Character.isLetterOrDigit(aChar)) System.out.println(aChar + " is a letter or digit."); else System.out.println(aChar + " is neither a letter nor digit."); if(Character.isWhitespace(aChar)) System.out.println(aChar + " is whitespace."); else System.out.println(aChar + " is not whitespace."); }
}
Activity 5: Word I. Problem
Make a program that will find a letter and replace it. II. Analysis
Input Variable Data Type Description w1 String Word 1 w2 String Word 2 w3 String Word 3 w4 String Word 4 w5 String Word 5

Output Variable word1 String Replace word 1 word2 String Replace word 2 word3 String Replace word 3 word4 String Replace word 4 word5 String Replace word 5

III. Output Layout

IV. Codes

import javax.swing.JOptionPane; public class Word
{
public static void main (String[]args) { String w1 = JOptionPane.showInputDialog("Word 1: "); String w2 = JOptionPane.showInputDialog("Word 2: "); String w3 = JOptionPane.showInputDialog("Word 3: "); String w4 = JOptionPane.showInputDialog("Word 4: "); String w5 = JOptionPane.showInputDialog("Word 5: "); String find = JOptionPane.showInputDialog("Find Letter: "); String replace = JOptionPane.showInputDialog("Replace Letter: "); String word1, word2, word3, word4, word5; word1 = w1.replace(find,replace); word2 = w2.replace(find,replace); word3 = w3.replace(find,replace); word4 = w4.replace(find,replace); word5 = w5.replace(find,replace); JOptionPane.showMessageDialog(null, "Words Existing New Word\n 1 "+ w1 +" "+ word1 +"\n 2 "+ w2 +" "+ word2 +"\n 3 "+ w3 +" "+ word3 +"\n 4 "+ w4 +" "+ word4 +"\n 5 "+ w5 +" "+word5); }
}

Activity 6: Sentence I. Problem
Make a program that will identify the number of spaces, vowels, consonants, characters and number of words. II. Analysis
Input Variable Data Type Description
S String String input

Output Variable c Integer Number of Spaces c Integer Number of Vowels co Integer Number of Consonants ln1 Integer Number of Characters sp Integer Number of Words

Similar Documents

Free Essay

Java Programming

...A Programmer’s Guide to Java™ SCJP Certification Third Edition This page intentionally left blank A Programmer’s Guide to Java™ SCJP Certification A Comprehensive Primer Third Edition Khalid A. Mughal Rolf W. Rasmussen Upper Saddle River, New Jersey • Boston • Indianapolis • San Francisco New York • Toronto • Montreal • London • Munich • Paris • Madrid Capetown • Sidney • Tokyo • Singapore • Mexico City Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks. Where those designations appear in this book, and the publisher was aware of a trademark claim, the designations have been printed with initial capital letters or in all capitals. The authors and publisher have taken care in the preparation of this book, but make no expressed or implied warranty of any kind and assume no responsibility for errors or omissions. No liability is assumed for incidental or consequential damages in connection with or arising out of the use of the information or programs contained herein. The publisher offers excellent discounts on this book when ordered in quantity for bulk purchases or special sales, which may include electronic versions and/or custom covers and content particular to your business, training goals, marketing focus, and branding interests. For more information, please contact: U.S. Corporate and Government Sales (800) 382-3419 corpsales@pearsontechgroup.com For sales outside the United...

Words: 15086 - Pages: 61

Free Essay

Java Programming

...JAVA Programming PAPER Q1. A template argument is preceded by the keyword ________. ► vector ► class ► template ► type* Q2. Which of the following causes run time binding? ► Declaring object of abstract class ► Declaring pointer of abstract class ► Declaring overridden methods as non-virtual ► None of the given Q3. A function template can not be overloaded by another function template. ► True ► False Q4. Which of the following is the best approach if it is required to have more than one functions having exactly same functionality and implemented on different data types? ► Templates ► Overloading ► Data hiding ► Encapsulation Q5. Identify the correct way of declaring an object of user defined template class A for char type members? ► A< char >obj; ► Aobj; ► Aobj; ► Obj A; Q6. The user must define the operation of the copy constructor. ► True ► False Q7. Template functions use _________ than ordinary functions. ► Greater Memory ► Lesser Memory ► Equal Memory ► None of the given options Q8. The find() algorithm ► finds matching sequences of elements in two containers. ► finds a container that matches a specified container. ► takes iterators as its first two arguments. ► takes container elements as its first two arguments. Q9. Compiler performs ________...

Words: 1150 - Pages: 5

Free Essay

Java Programming

...MTH 112 Differential Calculus MTH 122 Integral Calculus MTH 142 Vectors and Geometry PHY 124 Geometric and Wave Optics PHY 132 Electricity, Magnetism and Modern Physics PHY 192 Introductory Practical Physics II * Students are expected to offer at least one elective course per semester. Also they can only register a maximum of 25 units per semester Total Credit Unit - Compulsory Total Credit Unit - Elective Total Credit Units 20 0 20 200 Level Course Code 1st Semester GST 201 CIT 211 GST 203 CIT 213 CIT 215 CIT 237 MTH 211 MTH 213 MTH 241 MTH 281 Course Titles Unit(s) Status Nigerian Peoples and Cultures Introduction to Operating Systems Introduction to Philosophy and Logic Elementary Data Processing Introduction to Programming Languages Programming & Algorithms Introduction to Set Theory and Abstract Algebra Numerical Analysis I Introduction to Real Analysis Mathematical Methods I * Students are expected to offer at least one elective course...

Words: 911 - Pages: 4

Premium Essay

Java Programming and Inheritance

...Muhammad 1 Mikey Muhammad Date Class Mr.Radev Java Programming and Inheritance As time continues to pass, the world we now live in is dominated by the use of technology. Technology continues to advance, and it seems, as if we can’t function without it. Whether it’s the use of technology in school or work, it is everywhere and you cannot escape it. It is important for us to be able to adapt to it and learn how the new inventions work and function properly. The Internet for example is one of the most important aspects of life today. The Internet allows us to have access to everything, and have endless information at our fingertips, whether it’s through a computer screen or through the use of a cellular device, or even a watch. Some of us choose to only use this amazing tool that has been provided to us, and then some us choose to go more in depth with this tool we call the Internet and want to know how it works. Although it takes millions of programs and concepts and other factors to get the Internet working how it does, the focus of my term paper will be Inheritance in Java. In order to truly understand what the specifics of Java are, you have to start with the totality of the Java program. The Java language could easily be the most difficult to understand because there are so many components to how it works. Java is a programing language and computing platform, which is a huge part of making the Internet work. It was first released by Sun Microsystems in 1995. Without...

Words: 1332 - Pages: 6

Premium Essay

Java Programming Language Sl-275

...Sun Educational Services Java Programming Language SL-275 Sun Educational Services Java Programming Language September 1999 Copyright 1999 Sun Microsystems, Inc., 901 San Antonio Road, Palo Alto, California 94303, U.S.A. All rights reserved. This product or document is protected by copyright and distributed under licenses restricting its use, copying, distribution, and decompilation. No part of this product or document may be reproduced in any form by any means without prior written authorization of Sun and its licensors, if any. Third-party software, including font technology, is copyrighted and licensed from Sun suppliers. Parts of the product may be derived from Berkeley BSD systems, licensed from the University of California. UNIX is a registered trademark in the U.S. and other countries, exclusively licensed through X/Open Company, Ltd. Sun, Sun Microsystems, the Sun Logo, Solstice, Java, JavaBeans, JDK, and Solaris are trademarks or registered trademarks of Sun Microsystems, Inc. in the U.S. and other countries. All SPARC trademarks are used under license and are trademarks or registered trademarks of SPARC International, Inc. in the U.S. and other countries. Products bearing SPARC trademarks are based upon an architecture developed by Sun Microsystems, Inc. The OPEN LOOK and Sun Graphical User Interface was developed by Sun Microsystems, Inc. for its users and licensees. Sun acknowledges the pioneering efforts of Xerox in researching and developing the...

Words: 6064 - Pages: 25

Premium Essay

Java Programming Execution Phases

...Advanced Programing in Java Umair Javed CS-391 Java Program Development and Execution Steps Java program normally go through five phases. These are 1. 2. 3. 4. 5. Edit, Compile, Load, Verify and Execute We look over all the above mentioned phases in a bit detail. First consider the following figure that summarizes the all phases of a java program. Phase 1 Editor Disk Program is created in the editor and stored on disk. Compiler creates bytecodes and stores them on disk. Phase 2 Compiler Disk Primary Memory Phase 3 Class Loader Class loader puts bytecodes in memory. Disk Primary Memory Phase 4 Bytecode Verifier Bytecode verifier confirms that all bytecodes are valid and do not violate Java’s security restrictions. Phase 5 Primary Memory Interpreter Interpreter reads bytecodes and translates them into a language that the computer can understand, possibly storing data values as the program executes. Umair© 2005, All Rights Reserved -1- TA: Munawar Nadeem Handout 3 Advanced Programing in Java Umair Javed CS-391 Phase 1: Edit Phase 1 consists of editing a file. This is accomplished with an editor program. The programmer types a java program using the editor like notepad, and make corrections if necessary. When the programmer specifies that the file in the editor should be saved, the program is stored on a secondary storage device such as a disk. Java program file name ends with a .java extension. On Windows...

Words: 696 - Pages: 3

Free Essay

Java Programming

...Encapsulation is whereby variables, functions are protected from being accessed by other codes outside the class. This helps manage the code being protected and has least if any impact on other parts of a program if change was to occur in the protected code. Encapsulation is important in java due to its flexibility and it is easy to change with new requirement, the class has total control over what is stored in its field, one part of the code can be changed and the rest of the would not be affected and also encapsulation is useful since it is easy to maintain. Both the mutator and accessor method are used to enforce data encapsulation where their jobs is returning and setting the value state of an object. Mutator method is used to set the private field value. It is denoted by using set at the beginning of the method name. Example of a mutator method would be public void setSchool (String school). Accessor method is used to return the private field value. It is denoted by using get at the beginning of the method name. An example of accessor method would be public String getFirstName () Implicit parameter is the object on which the method is invoked whereas explicit parameter is the parameter of the method other than the object the method is invoking and is enclosed in a parentheses. To access an explicit parameter variable inside the method refer the parameter variable by its name. To illustrate what is an implicit and explicit parameter we use the following code: Person...

Words: 498 - Pages: 2

Premium Essay

Intro to Programming Usin Java

...Introduction to Programming Using Java Course Specifications Course length: 1.0 day(s) Course Description Course Objective: You will learn the basic concepts of programming using Java as the tool for learning. Target Student: This course is intended for students with no prior academic background in a field other than computer science or programming, who wish to embark on a course of study that will prepare them for employment as professional software developers. Students who interact on a business basis with software development professionals and need to improve communication through better understanding of the concepts and terminology used by professional programmers will also benefit equally. Prerequisites: Students should be familiar with using personal computers with a mouse and keyboard. Basic typing skills are mandatory. Students should be comfortable in the use of the Windows 2000, Windows XP, Windows Vista environment, or Windows 7 environment. To ensure your success in this course, we recommend that you take the following Element K courses or have equivalent experience: Microsoft Windows Vista: Level 1Microsoft Windows XP Professional: Level 1 Course Objectives Upon successful completion of this course, students will be able to: · explore various programming concepts. · create simple programs. · use methods to define the behavior of classes. · implement the object-oriented methodology. · handle errors in a program. Course Content Lesson 1: Introduction...

Words: 323 - Pages: 2

Free Essay

Assignment and Essay.... Others)Information Technology (Programming/ Languages (Java, C++, Vb,.Net, & Etc)/Database Design/ Computer Networking/ System Analysis/ Project Management/Project Development/ It & Society/ and.

...ASSIGNMENT and ESSAY. ... others)Information Technology (Programming/ Languages (Java, C++, VB, .NET, & etc)/Database Design/ Computer Networking/ System Analysis/ Project Management/Project Development/ IT & Society/ and. - NET programmers continue to struggle with the complexities of a hybrid managed/unmanaged environment. ..... Sorry, I had to laugh at that paper! ... Java on the other hand is cross-platform, and also traditionally runs as an ... - NET programmers continue to struggle with the complexities of a hybrid managed/unmanaged environment. ..... Sorry, I had to laugh at that paper! ... Java on the other hand is cross-platform, and also traditionally runsASSIGNMENT and ESSAY. ... others)Information Technology (Programming/ Languages (Java, C++, VB, .NET, & etc)/Database Design/ Computer Networking/ System Analysis/ Project Management/Project Development/ IT & Society/ and. - NET programmers continue to struggle with the complexiASSIGNMENT and ESSAY. ... others)Information Technology (Programming/ Languages (Java, C++, VB, .NET, & etc)/Database Design/ Computer Networking/ System Analysis/ Project Management/Project Development/ IT & Society/ and. - NET programmers continue to struggle with the complexities of a hybrid managed/unmanaged environment. ..... Sorry, I had to laugh at that paper! ... Java on the other hand is cross-platform, and also traditionally runs as an ... - NET programmers continue to struggle with the complexities of a hybrid managed/unmanaged environment...

Words: 784 - Pages: 4

Free Essay

Object Oriented Programming in Java ‐ Exercises

...OBJECT ORIENTED PROGRAMMING IN JAVA ‐ EXERCISES    CHAPTER 1    1. Write Text‐Based Application using Object‐Oriented Approach to display your name.    // filename: Name.java // Class containing display() method, notice the class doesnt have a main() method public class Name { public void display() { System.out.println("Mohamed Faisal"); } } // filename: DisplayName.java // place in same folder as the Name.java file // Class containing the main() method public class DisplayName { public static void main(String[] args) { Name myname = new Name(); // creating a new object of Name class myname.display(); // executing the display() method in the Name class } }   2. Write a java Applet to display your age.  // filename: DisplayNameApplet.java import java.applet.Applet; // import necessary libraries for an applet import java.awt.Graphics; public class DisplayNameApplet extends Applet { public void paint(Graphics g) { g.drawString("Mohamed Faisal", 50, 25); } } // filename: DisplayNameApplet.htm // place in same folder as the compiled DisplayNameApplet.class file Displaying my Name CHAPTER 2    3.  Write a program that calculates and prints the product of three integers.    // filename: Q1.java import java.util.Scanner; // import Scanner libraries for input public class Q1 { public static void main(String[] args) { Scanner input = new Scanner (System.in); int number1; int number2; int number3; System.out.println("Enter the First Number"); www.oumstudents...

Words: 3130 - Pages: 13

Free Essay

Object Oriented Programming -Java

...Table of Contents TASK A ....................................................................................................................................................... 4 Provide the UML diagrams for the given problem with clear explanations on the design decisions. Derive detailed Use Case diagram, Class diagram & a sequence diagram. Whenever necessary document the relevant assumptions you made. ...................................................................................... 4 TASK B ....................................................................................................................................................... 7 Provide an alternative OO design for the same problem ......................................................................... 7 Object Oriented Known as Methodology or paradigm to design a program using classes and objects. It simplifies the software development and maintenance. ......................................................................... 7 TASK C ....................................................................................................................................................... 9 There are many system design patterns available in system development. Critically evaluate singleton, factory and abstract factory design patterns and apply the most suitable design pattern for your system development.................................................................................................

Words: 4819 - Pages: 20

Premium Essay

Step by Step Java Eclipse Programming

...They should not be abolished because: * Exams make people better at the subject * content tested in exams are random, so people study everything * since it affects grades, people study harder * there is competition, people study harder * They help the teacher to know what material the students have not mastered and need to study further * They give people important practice in dealing with stress, which can help later on with life's challenges. * The examination system has its own benefits. It's like a self-test to see where we are and how good we fare in something that we do. The purpose of exam has always been a test to let us, human beings, to know our limits and our standards. * Frankly speaking, who can put his/her hand on their heart and say that they would have learned the lessons regarding different subjects themselves if the present examination system were not there and didn't made the students to learn and understand the topics dealing with different subjects to perform at the end of the year. The ANSWER would be No, They wouldn't have. Exams should not be abolished.  Until a better form of demonstrating knowledge comes along, exams must remain in place. In the world of occupations, exams are especially useful.  A given state, county, town, or other regionally-governed area requires certain knowledge for certain occupations.  The most effective way of evaluating an individual's knowledge of a given topic is the use of exams.  These...

Words: 623 - Pages: 3

Premium Essay

Getting Started

...School management system project in java pdf This documentation have all the details about school management system, even in this. Our VisionTo become one of the leading lights in software and webapplication. Generate Bonafide Certificate into PDF Format : 72. AppSolit Project : Managing School Java, Swing, Itext, PDF, JFrame. Boutique Management Software in Java with MySql, JDBC Swing. 2010-повідомлень: 5-авторів: 5Student Management System deals with all kind of student details, academic.pdf Student Management System.pdf Size: 381. Student Management System is software which is helpful for students as well as the school authorities. 2 Database Programming with JDBC and Java by OReillyNeed help with school management system college project java download? Do you specialise in school management system college. School Grade System is a simple project developed in java, jsp servlet for. Tags: exam grading system, exam management system, school grade. Tags: convert pdf files, convert ppt in java, file converter, free java project.School Grade System is a simple project developed in java, jsp servlet for small schools that want to. Knowledge Management System ServletJSP Project. school management system project in java with source code Student attendance management system project in java with source code. At product Instructions for downloadable manuals in PDF. The Relationship Of School Uniforms To Student Attendance.School of informatics. The aim of the project is to develop a...

Words: 610 - Pages: 3

Free Essay

Bankaccount.Java and Program 2.Java

...Question Compile the two test files (BankAccount.java first and then Program2.java second). Execute Program2 with the following inputs: starting balance - $500 (don't enter the dollar sign) monthly interest rate - 0.00125 (this is a 1.5% annual rate) monthly pay - $1000 (don't enter the dollar sign) withdrawal amount - $900 (don't enter the dollar sign) Verify that you earn $0.75 in interest and have an ending balance at the end of the month of $600.75. Then modify the BankAccount class's constructor method to create a BankAccount object which stores a monthly interest when the user inputs an annual interest rate of the format "nnn.nn" (i.e. 1.5). Note that the BankAccount constructor stored a monthly interest rate for the BankAccount object's instance field originally, but the user had to convert the annual rate to a monthly rate (i.e. 1.5 to 0.00125). Then modify the Program2 driver class to prompt the user for an annual interest rate. Recompile both classes and execute the modified Program2 driver class again, this time with following inputs: starting balance - $500 (don't enter the dollar sign) annual interest rate - 1.5 monthly pay - $1000 (don't enter the dollar sign) withdrawal amount - $900 (don't enter the dollar sign) Verify that you still earn $0.75 in interest and still have an ending balance at the end of the month of $600.75 as you did with the original code. Submit only the modified source code...

Words: 1152 - Pages: 5

Free Essay

Programming

...- -[ ] http://blog.renren.com/blog/73603/740437492 » / [ ] 2011-07-18 10:47 | ( : ) http://coolshell.cn/articles/4990.html 6 12 programming An open letter to those who want to start id Mailper Python Web “ Build Your Programming Technical Skills “ ( ) Notes/ActiveX/COM/ADO/ATL/.NET …… Mailper Delphi/Power builder ” Lotus 5 3D TA 561 ” The architecture of w-ai.org –... Some updates and my first Engl... / 10 Unix/Linux Windows 1 Linux Web+ 1 Python/Ruby Web 2 iOS Android Windows Windows Windows Linux+ Windows 9 : csv ( log python csv, python open, python sys) 52 word count (sys, os, path) (python sqlite) print Google (phrase, domain, use reader to follow tech blogs) 2 ( Vim / Emacs / Notepad++ Source Insight ( ctag) Cool IDE) / / 3 Unix/Linux Shell windows man ls/chmod/chown/rm/find/ln/cat/mount/mkdir/tar/gzip … sed/awk/grep/tail/less/more … ps/top/lsof/netstat/kill/tcpdump/iptables/dd… /etc /var/log /proc linux vmware player Ubuntu 1 6 9/6/13 1:36 PM - -[ ] http://blog.renren.com/blog/73603/740437492 /Linux 4 Web Web HTML CSS HTML Firefox + Firebug Javascript HTML DOM Firefox + Firebug Apache PHP PHP PHP chrome Nginx HTML MySQL MySQL SQL http://www.stanford.edu/~ouster/cgi-bin/cs142-fall10/index.php ) javascript HTTP: The Definite Guide browsers) Cookie/Session jQuery 4 3-5 ExtJS + Ajax ( +JSON (proxy, gateway, Javascript box model chrome DOM http://oreilly.com/catalog/9780596527402)...

Words: 807 - Pages: 4