Use of java api to perform interactive i/o in java

Assignment Help JAVA Programming
Reference no: EM13803590

Assignment: Stock Transaction Simulator

Learning Objectives:

To install and use eclipse, an Integrated Development Environment (IDE) for Java
To gain experience designing and writing your own Java Program
To use of Java APIs to perform interactive I/O in Java programming
To declare variables and constants appropriately.

Problem Statement

Last month Steven purchased some stock in Acme Software, Inc. Here are the details of the purchase:

• The number of shares that Steven purchased was 1,000

• When Steven purchased the stock, he paid $33.92 per share

• Steven paid his stockbroker a commission that amounted to 2% of the amount he paid for the stock.

One week later, Steven sold the stock. Here are the details of the sale:

The number of shares that Steven sold was 1,000

He sold the stock for $36.78 per share

He paid his stockbroker another commission that amounted to 2% of the amount he received for the stock.

Please write a program that displays the following information:

• The amount of money Steven paid for the stock.

• The amount of commission Steven paid his broker when he bought the stock.

• The amount that Steven sold the stock for.

• The amount of commission Steven paid his broker when he sold the stock

• Display the amount of profit that Steven made after selling his stock and paying the two commissions to his broker (If the amount of profit that your program displays is a negative number , then Steven lost money on the transaction)

Reference no: EM13803590

Questions Cloud

Winter and spring and displays the total : Write a visual logic program for an application that allows a user to enter the cost of home maintenance in each of the four seasons summer, fall, winter and spring and displays the total.
How did employee silence impact the ability of jerry sandusk : EssayThe Pennsylvania State University scandal resulted in an independent investigation, which culminated in the Freeh Report, which included findings and recommendations for future action to improve the university from an ethics and compliance persp..
Energetic and ambitious entreprenur : What aspects of madame cj walker's business sgiw that she was a clever business strategist as well as an energetic and ambitious entreprenur?
Each letter of a three-letter word stored in memory : Write an LC3 program that "increments" each letter of a three-letter word stored in memory following the program. 'a' becomes 'd', 'n' becomes 'q', 'z' becomes 'c', etc. Make sure you comment your code! This is the Julius Caesar Cipher. Assume that a..
Use of java api to perform interactive i/o in java : To gain experience designing and writing your own Java Program, To use of Java APIs to perform interactive I/O in Java programming, To declare variables and constants appropriately
Explain what is the structure of the state party : What is the structure of the state party. Does the website contain the legal document governing the party similar to the Party Plan of the Republican Party of Virginia.
The processing of the reference scheme : Page faults occur during the processing of the reference scheme? The hit ratio is for each of the following policies in a pure demand paging system? What do you observe when you move from Scheme 1 to Scheme 2? Explain.
Individual assignment self-management behavioral contract : Individual Assignment Self-Management Behavioral Contract
Different types of switching used in data transmission : Compare or contrast the different types of switching used in data transmission. How many are there? What factors separate one from the other? Please elaborate.

Reviews

Write a Review

JAVA Programming Questions & Answers

  Identify the first character of the name and lengthof length

Write a Java application that stores the names of your family and friends in a one-dimensional array of Strings. The program should show all names in upper case and lower case, identify the first character of the name, and the lengths of the names.

  Client server monitoring system project design

client server monitoring system project design. The server adminstation can send messages to the clients and DESIGN WITH JAVA NETBEANS AND GUI.

  Collection of scores (type int) for the last exam i

After being given a collection of scores (type int) for the last exam in your computer course, you are to computer the average of the scores and assign grades (O, S, U i.e. Outstanding, Satisfactory, Unsatisfactory)) to each student according to the ..

  Design a class that can be used to hold information

Implement and design a class that can be used to hold information about a musical note - Prepare a complete java program the default constructor should set a note to a middle C quarter note.

  Develop a java program

Develop a Java program which, given the width, length and depth (in metres), of a swimming pool, determines and outputs.

  Discuss key environmental issues facing north america

Discuss the key environmental issues facing North America based on the discussion in the text. Which ones do you see threatening the quality of life in North America the most? Do you have any ideas on how these issues might be addressed?

  Create a class named student that has three member variables

Create a class named Student that has three member variables

  Develop java code to compute monthly rent for housing units

Develop a java code that computes monthly rent for 3 housing units namely Bungalows,Apartments and hostels. All housing units have got size,color and monthly rental rate.

  Prepare worlddataapp project it implements the nameindex

prepare worlddataapp project. it implements the nameindex portion includingbull creating it implemented as a binary

  Graphicsframe class

This program makes use of the GraphicsFrame class and the Drawable interface. Your missions is to create the class Airplane. Each Airplane object should store the following information (fields): manufacturer modelNumber maximumSpeed // in knots maxim..

  1 linked listsin this problem you will write a class that

1 linked listsin this problem you will write a class that implements an ordered list of strings. your class will able

  Make a program in java language with classes

Make a program, in JAVA language with classes, that simulates health attending in one business day, according to the information just given.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd