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

  Develop the implementation file student.cpp

Required to implement the class to develop the implementation file Student.cpp that conforms to the following specifications

  Write a class named test scores

Write a class named TestScores.The class constructor should accept an array of test scores as an argument.The class should have a method that returns the average of the test scores.

  Cognitive-based approaches to understanding motivation

Compare and contrast the need-based and cognitive-based approaches to understanding motivation?

  Create java program to simulate the operation of a bank atm

write a Java program to simulate the operation of a bank ATM (cashpoint) system for payment and deposit on an account. In order to make the system fairly simple there is only one bank account and there are 5 cards that can be used to deposit or wi..

  Display the program output of the collision results

According to my lecturer, I need the tutor to display the 'program output' of the collision results implemented by BirthdayAttack.java in a output.txt file. Can the tutor do this?

  Write an application that uses an array

Write an application that uses an Array to store 10 messages of type String. You will store this Array with 10 messages of your choosing.

  Development of a simple program involving multiple classes

Development of a Simple Program Involving Multiple Classes and development of a basic Class, development of the Country and World classes

  Create an overloaded constructor that provides values

Create a class named BloodData that includes fields that hold a blood type (the four blood types are O, A, B, and AB) and an Rh factor (the factors are + and -).

  Write a java gui application index2 java

Write a Java GUI application Index2.java based on the program in Step 1 that inputs several lines of text and uses String method indexOf to determine the total number of occurrences of each letter of the alphabet in the text

  Specifications of object instance variables and behaviors

Write simple, accurate object-oriented programs using primitive data types, variables, data structures, and object-oriented principles and implement classes that meet the given specifications of object instance variables and behaviors

  Describe different professional levels in this discipline

What is Anesthesiology and critical care medicine describe the specific discipline, what is their focus (i.e., emergency medicine, education and prevention, psychiatric treatment etc.) Describe the different professional levels in this discipline

  Program that simulates the rolling of a single die1000 times

Write a program that simulates the rolling of a single die 1000 times. The program must use an array of size 6 and not 1000 to store the occurrences of each side or face on the six-sided die. The program should output the particular die face and the ..

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