Calculates and outputs the amount invested

Assignment Help Basic Computer Science
Reference no: EM132112264

Assignment: A brokerage firm provides the services to buy and sell stocks for customers. The firm charges $7.99 service fee on each transaction, buy or sell. When a customer sells stocks, he/she would like to know if he/she gained or lost on a particular investment.

Java program that allows the customer to input the number of shares sold, the purchase price of each share, and the selling price of each share. The program calculates and outputs the amount invested, the total service charges, amount gained or lost, and the amount received after selling the stock.

Sample Run:

Enter the buying price of each share: 68.89

Enter the selling price of each share: 79.34

Enter the number of shares: 100

Total amount invested: $ 6896.99

Total amount received: $ 7926.01

Total service charges: $ 15.98

Amount gained or lost: $ 1029.02

Reference no: EM132112264

Questions Cloud

Customers table in mysql for instance : Query to reterieve data from a customers table in MySQL for instance who have not placed any orders yet
New less expensive product is introduced to value stream : A new less expensive product is introduced to the value stream - Product P200.
Which language development theory best aligns : Post an explanation of the degree to which and how biology and the environment contributed to your personal language learning through age 6.
Identifying the information that should be communicated : Currently Hoosier Media utilizes traditional media vehicles for marketing. This includes print advertising to solicit new and renewal newspaper subscriptions.
Calculates and outputs the amount invested : Java program that allows the customer to input the number of shares sold, the purchase price of each share, and the selling price of each share.
Success story in continuous improvement in health care : The use of check lists has been identified as a success story in Continuous Improvement in health care.
Explain how these aspects work together to perform : How these aspects work together to perform that primary function. Are any aspects more important than the others? Why or why not?
Describe the development of the frontal lobes : Describe the development of the frontal lobes. Review the executive functioning skills and tie them to frontal lobe development. How might the development.
Recovering from a security incident : What are the four general tasks that play a role in recovering from a security incident?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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