Java代写 | Ice cream truck

Java控制台程序代写,基础的java面向对象object-oriented开发,主要内容是使用java开发一个模拟冰淇凌推车销售数据的控制台程序,6小时内完成交付并测试通过。

IMPORTANT

  1. Your code should be well commented:
    • Add your name and email address at the beginning of each .java
    • Write comments within your code when
      • You must use Javadoc comments for your classes and
      • You must write each method’s running time in your Javadoc comments for that
  2. Before submitting your assignment, you must zip all your
    • The ZIP file must have the naming convention LastnameFirstname-PA0.zip
  3. Submit your assignment via LATTE using the assignment submission

Goals of Assignment:

Ensure you are comfortable with object-oriented design.

Your Task:

Structure an Ice cream truck. Your ice cream truck must have some start up cash (more than $100 to purchase the three flavors every truck needs: Vanilla, Chocolate, and Strawberry). Ask the user to input how much money they wish to fund, then make sure the truck purchases those three flavors for the following prices.

FlavorAmount (in scoops)Cost per scoopWholesale cost per scoop
Vanilla241.000.50
Chocolate321.501.00
Strawberry161.501.00

Your ice cream truck needs to be able to accept other flavors as well, while taking into account the amount, cost per scoop and wholesale cost per scoop. The cost per scoop is what the customer pays for a scoop of ice cream, the wholesale cost per scoop is the price the ice cream truck pays to its ice cream dealer.

Be sure to keep track of the amount of ice cream left in the truck, the initial amount of ice cream bought, and the amount of ice cream sold. These will be used later when checking the cashbox. You must make sure your employees are not stealing from you.

Make sure there is a way to enter new employees that have permissions to access the register and/or drive the truck.

Once you have an employee ready to drive the truck and an employee who can operate the register (or one that can do both), start the ice cream truck on its route. Look for customers, and take their orders.

After finishing the route, check the cashbox. You calculate these in the following ways:

Starting cashDoes not change

The amount of funding initially invested

Ice cream boughtThe cost that the truck paid for ice cream (wholesale).
Ice cream soldThe total money taken in from customers
Expected sales from missing inventoryCheck all the ice cream flavors in the truck, seeing how many scoops are missing (have been sold — or eaten by your employees!). Based on the cost per scoop, find the total of how much money we expect to see in Ice Cream Sold
Cash in truckThe remaining cash in the truck
ProfitCash in the box less the expenses from buying ice cream whole sale less the starting cash. For few sales, this number will be negative.

Expected sales from missing inventory and Ice cream sold should match. If not, you have debugging to do (or employees to fire).

Make sure your code has a file named console.java. This is where the interactions between user and computer will take place. You should have other files for classes that you use to implement the ice cream truck.

There is no sample code provided for this assignment. We want to see how you structure your code to meet the challenges presented. Feel free to be creative as long as it makes sense.

See the sample console interaction below for an idea of what we expect.

 


程序代写代做C/C++/JAVA/安卓/PYTHON/留学生/PHP/APP开发/MATLAB


本网站支持淘宝 支付宝 微信支付  paypal等等交易。如果不放心可以用淘宝交易!

E-mail: [email protected]  微信:dmxyzl003 工作时间:全年无休-早上8点到凌晨3点


如果您使用手机请先保存二维码,微信识别。如果用电脑,直接掏出手机果断扫描。

发表评论