Already have an account? Get multiple benefits of using own account!
Login in your account..!
Remember me
Don't have an account? Create your account in less than a minutes,
Forgot password? how can I recover my password now!
Enter right registered email to receive password!
Lab
This is an additional assignment from the chapter on the Java Collections Framework.
Suppose you buy 100 shares of a stock at $12 per share, then another 100 at $10 per share, then you sell 150 shares at $15. You have to pay taxes on the gain, but exactly what is the gain? In the United States, the FIFO rule holds: You first sell all shares of the first batch for a profit of $300, then 50 of the shares from the second batch, for a profit of $250, yielding a total profit of $550. Write a program that can make these calculations for arbitrary purchases and sales of shares in a single company. The user enters commands buy symbol quantity price, sell symbol quantity price (which causes the gain to be displayed), and quit.
Hint: Keep a Map<String, Queue<Block>> that manages a separate queue for each stock symbol.
Use the included templates for the program in the zip file Assignment10.zip. You do not need to add any additional methods other than what are included. There is a sample of an input script so you can see how I may test your program. Be sure to fully test the program before submitting it. I should not be able to crash it.
Attachment:- Templates and setup files.zip
Stocks are stored as Map>. 6 Points Stocks are stored properly. 4 Points The stocks are not stored properly, but it works as specified. 0 Points Stocks are not stored properly and it does not work correctly. Program runs for the specified test cases and any additional ones added. 20 Points All test cases run properly. 15 Points The program worked with minor errors. 0 Points The program did not work properly.
Criteria Meets Requirements Minor Errors Needs Improvement Program should have comments as needed 2 Points Program has additional comments in addition to the Java doc comments. 1 Points Program comments are sparse or not clear. 0 Points Program comments are missing or not understandable. Class names begin with a capital letter. All other identifiers should meet Java standard rules. 2 Points Java naming conventions are good. 1 Points Java naming conventions are not followed in one or two cases. 0 Points Java naming conventions are not followed in many cases.
All methods have Javadoc comments that fulfill all the requirements in the rules for programming. This includes all @param, @return, @throws, and Description sections. 2 Points All methods have Javadoc comments that fulfill all the requirements in the rules for programming. 1 Points All methods have Javadoc comments that fulfill most of the requirements in the rules for programming or some methods were missing the Javadoc comments. 0 Points The Javadoc comments were missing from all or most of the methods. There should be no warnings during compile. 2 Points Program compiles cleanly with no warnings. 1 Points Program has one or two warnings, but still compiles. 0 Points Program has many warnings during compile.
Levels of Achievement Criteria Meets Requirements Minor Errors Needs Improvement Zip File named FirstNameLastNameA10.zip using the student name. 2 Points The name was exact with no underscores or capitalization errors. 1 Points The name had minor errors, but was close to what was requested. 0 Points The name of the submission was not what was asked for. Header at the top of the program matches the rules for programming. 2 Points The header at the top of the program matches the rules for programming exactly. 1 Points There are some errors in the header at the top of the program which are minor. 0 Points The header at the top of the program was missing or did not match the rules for programming at all.
Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.
Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.
Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..
Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.
University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.
This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.
Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.
This assignment contains a java project. Project evaluates the day of the week for New Year's Day.
Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.
Java program to input pairs of natural numbers.
Interface that contains a generic type. Create two classes that implement this interface.
These 14 questions covers java class, Array, link list , generic class.
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!
whatsapp: +1-415-670-9521
Phone: +1-415-670-9521
Email: [email protected]
All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd