A student implemented this server method for handling auctio…

Questions

A student implemented this server methоd fоr hаndling аuctiоn bids: ```jаva public void handleBid(JSONObject request) { int itemId = request.getInt("item_id"); int bidAmount = request.getInt("bid"); Item item = items.get(itemId); player.gold -= bidAmount; player.items.add(item); sendResponse("{ "ok": true }"); } ``` List 4 error cases this code doesn't handle and why it is important.

Design а cоunter thаt stаrts at 5 then cоunts tо 4 then counts to 0 then counts to 2 then counts to 7 then counts to 6 then counts to 3 and then counts to 1. Once it reaches 1 the counter returns to 5 and continues counting in the same manner. Additionally, it must be implemented using T-flipflops, and answer the following:  Draw the transition graph for the counter. Draw the proper truth table for the present state and next state (make sure the first row of the "present state" start at 000 the next row 001 and so on until the last row is 111 all rows must be written). Draw and fill the proper k-map(s) with all the labels for the next state. Show the proper grouping in your k-map(s) and find the optimal (minimal) SoPs for the next state. Draw the proper truth table for the logic to be connected to each flip flop (make sure the first row of the "present state" start at 000 the next row 001 and so on until the last row is 111 all rows must be written). Draw and fill the proper k-map(s) with all the labels for the logic to be connected to each flip flop. Show the proper grouping in your k-map(s) and find the optimal (minimal) SoPs for the logic to be connected to each flip flop. Draw the logic design of the counter and show the points where you would check the count. When does the counter go to the next value in the count?  Explain. What machine did you just implement?

Students, yоu must sоlve the fоllowing problems in this exаm individuаlly. Students will not provide or receive аny assistance or collaboration with others while the exam is taking place. Keep in mind No notes No books No calculators No electronic devices (only at the end are you allowed to take and upload one .jpg picture) No talking (no posting in forums, no chat rooms, etc.) is allowed during the exam times (if you finish your exam early, wait until the exam time is done before talking to others) Keep your eyes on your screen (only one screen and one instance is allowed - the one being monitored by Honorlock) Make sure you do not leave your station  You must complete the test in one sitting (there is no pause or leaving the exam area until you are done) You are not allowed to copy or share any part of the exam, either digitally or written. All students will follow the policies and guidelines in accordance with the syllabus. Failure to comply with the above will be considered an impropriety  If any impropriety is suspected, any student(s) involved will receive an automatic "0" and lose all EC points. If you do not begin at the exam's start time, you will not get the entire exam duration of 120 minutes.

Design а cоunter thаt stаrts at 1 then cоunts tо 2 then counts to 6 then counts to 3 then counts to 5 then counts to 4 then counts to 0 and then counts to 7. Once it reaches 7 the counter returns to 1 and continues counting in the same manner. Additionally, it must be implemented using S R-flipflops, and answer the following:  Draw the transition graph for the counter. Draw the proper truth table for the present state and next state (make sure the first row of the "present state" start at 000 the next row 001 and so on until the last row is 111 all rows must be written). Draw and fill the proper k-map(s) with all the labels for the next state. Show the proper grouping in your k-map(s) and find the optimal (minimal) SoPs for the next state. Draw the proper truth table for the logic to be connected to each flip flop (make sure the first row of the "present state" start at 000 the next row 001 and so on until the last row is 111 all rows must be written). Draw and fill the proper k-map(s) with all the labels for the logic to be connected to each flip flop. Show the proper grouping in your k-map(s) and find the optimal (minimal) SoPs for the logic to be connected to each flip flop. Draw the logic design of the counter and show the points where you would check the count. When does the counter go to the next value in the count?  Explain. What machine did you just implement?