爱情鸟第一论坛com高清免费_91免费精品国自产拍在线可以看_亚洲一区精品中文字幕_男人操心女人的视频

代做ICS4U、代寫 java 程序語言

時間:2024-04-14  來源:  作者: 我要糾錯



ICS4U: Unit 3 – Object Oriented Programming
Assignment 3 – Car Rental System (CRS)
1. General Info
You are to help CIMP to write Car Rental System (CRS). The system will be used by the system’s employee so data will not be randomly entered by customers. It has the following functionalities
• Import existing cars from a textfile that contains all the cars’ info.
• Add a single car into the system manually.
• Display cars in the system. May filter the display:
o Displaysedansonly
o Displaycoupesonly
o Displaycrossoversonly o Displayconvertiblesonly o Displayallcars
• Rent cars
• Return cars
• Exit (leave the program)
2. Program Flow
               Page 1 of 12

ICS4U: Unit 3 – Object Oriented Programming
3. User Interface a) Main Screen
      b) Import Cars from File
   After importing, we can see all cars.
   Page 2 of 12

ICS4U: Unit 3 – Object Oriented Programming
 c) Add Single Car
Adding a Sedan
   Adding a coupe
 Adding a Crossover
  Page 3 of 12

ICS4U: Unit 3 – Object Oriented Programming Adding a Convertible
   When displaying all cars, it shows the new cars:
  d) Display Cars
We can display all cars
   We can also display a spcifici type of car (Sedan in this case)
  Page 4 of 12

ICS4U: Unit 3 – Object Oriented Programming
 e) Rent Car
Let’s say we want to rent the car with Car-ID 1008
We will enter the information. If it satisfy all criteria, then it goes through
    The rented car in the Display screen
I may rent another car
  Here’s another car rented in the Display Screen
  Page 5 of 12

ICS4U: Unit 3 – Object Oriented Programming
 f) Return Cars
Let’s return 1008, which driving within the allowable distance (Allowable is 1250 km, shown in Display Screen)
After returning 1008, that row is clear. However it shows that the car’s mileage went up by 1000.
Now let’s return 1457, but drove more than allowable distance
Then it will calculate the penalty and show it on screen.
      Page 6 of 12

ICS4U: Unit 3 – Object Oriented Programming
4. UML Diagram
Here’s the UML diagram of the program. Your program must follow the same structure.
    Page 7 of 12

ICS4U: Unit 3 – Object Oriented Programming
5. Text File & Database
The program comes with a text file called CarList.txt, that contains some dummy car information. You may import it into the garage, so that you may test your program easily. The columns are separated by a colon “:”
Example of the textfile:
    0:Honda:Civic:Good on Gas
1:Toyota:Supra:false
2:Mazda:CX-5:5
3:BMW:Z4:15.4
0:Toyota:Corolla:Top Safety
0:Audi:A4:Luxurious
1:Nissan:GT-R:false
1:BMW:440i:true
2:Lexus:GX460:8
3:Mazda:MX-5:7.6
   Column 1: Column 2: Column 3: Column 4:
Note:
Car Type. Refer to Car class to see the values and their corresponding car type. Car maker. This is the company that makes the car
Car model. The name of the car.
The special information specific to a car type:
- Sedan
- Coupe
- Crossover
- Convertible
Special information about the car
If it contains back seats
Number of seats it has
Time to open the soft(or hard) top in seconds
    The Car-ID is not in the textfile, because your program should automatically generate it when a new car is added.
     Extra – For those who wants to understand the code inside Database.java (NOT REQUIRED): For more information on how to work with .txt using Java, please refer to the following websites:
• https://www.geeksforgeeks.org/different-ways-reading-text-file-java/ • https://www.javatpoint.com/java-bufferedwriter-class
    6. More Information a) Database
The Database will store all of the Car objects in an array. We haven’t learnt how Array of Objects work, but assume it’s similar to storing any normal data type in an array.
b) Car ID (ID)
Each car will have a unique Car ID. Each new car going into the system will have a randomly generated ID assigned to them. The range is between 1000 – 1999, therefore only 999 cars can be stored into the system.
 Page 8 of 12

ICS4U: Unit 3 – Object Oriented Programming
c) Different Car Types
The system only has 4 types of parcel: Sedan, Coupe, Crossover and Convertible
Each type has their own type specific Extra Info and formula in calculating the Allowable Distance and the Extra Distance Penalty Fee. Please refer to the following table:
Type Extra Info
Special Info – Describes what special features the sedan has.
If the coupe has a back seat or not.
The number of seats the Crossover has.
The time it takes (in seconds) to open/close the convertible top.
If the renter did not exceed the allowable distance, then there’s no fee. If it exceeds, here’s the table:
   They are represented by an integer. May refer to Parcel class to find the values.
Sedan = 0 Coupe = 1 Crossover = 2 Convertible = 3
   However, when displaying parcels in the table format, it is shown as:
Sedan = “SED” Coupe = “CPE” Crossover = “XOR” Convertible = “CVT”
         Sedan
   Coupe
   Crossover
   Convertible
     Allowable Distance
   Extra Distance Fee Formula
 Type
  Sedan
 = ⌊ 
 × 250⌋ •  = 1.25 × 
        Coupe
 = ⌊ 
 × 100⌋
Note: ⌊@⌋ system means round down to the nearest integer.
Has backseat:
 = 74× +20
 = 74× +35 =2× +25,%≤6
=2× +45,%=78
= 1 ×( ))+55,%>8 30
 No backseat:
         Crossover
 = ⌊ ! × ( 
 × 150)⌋
        Convertible
if the car is being rented for less than 5 days, then
 = 500
if the car is being rented for more than or equals to 5 days, then
 = + 5 
 × 400,
And the renter will get 5 days bonus (Calculation doesn’t include the bonus 5 extra days)
 = 2-...//(0123456789.): + (750 − 25.5 × sec) where ? = time in seconds to open/close top
        Page 9 of 12

ICS4U: Unit 3 – Object Oriented Programming
7. Working with Date class
This assignment, you will be using the Date class and calculate the due date. The following are some links you will need to research a bit on yourself:
    Parsing and Formatting Dates in Java
 http://tutorials.jenkov.com/java-date-time/parsing-formatting-dates.html
Add days to current date
 https://www.mkyong.com/java/java-how-to-add-days-to-current-date/
Convert Date to String
 https://www.javatpoint.com/java-date-to-string
Convert String to Date
 https://www.javatpoint.com/java-string-to-date
Constructors and Methods in Date class
 https://www.tutorialspoint.com/java/java_date_time.htm
 https://docs.oracle.com/javase/7/docs/api/java/util/Date.html
 8. Requirements
• Do not change the Database class. If Database is changed and program cannot be compiled, then you will get zero.
• Must use the Database class to help you store and access the data. Read the JAVA DOCS (Comments) to help you understand how to use each method inside the Database class. Just understand the method header is enough. It is not necessary to understand what is happening inside each of the method.
• Program must follow the program flow chart and UML diagram.
• Do not create extra classes
• Do not create extra public methods (except helper methods in CRS class)
• Must complete all template methods and the main methods.
• Each class must be in its separate file to improve readability and maintainability.
• Do not use anything that’s not taught in Unit 1-3 (Eg: ArrayList, LinkedList, 2D-Array, etc.)
• Must create extra helper methods (Part of the marking scheme)
• Must follow Front-End and Back-End design. (Except DisplayCar() method in CRS)
• Must utilize Polymorphism correctly (Program may still work without using Polymorphism at all)
9. Error Checking
• Must check if options entered are valid.
• Must check if ID entered are valid (exist or not).
• Must check Car Type is valid
• Must check number of days is valid (positive)
• Must check distance is valid (0 or positive)
• Assume when creating a new car, Extra Info will always be valid values.
• Assume options entered will always be the correct data type (Eg: If the Scanner is expecting an int, I will
not enter a string)
• If user entered info is wrong, it will go back to the main screen. Program will NOT repeatedly ask for the
correct info.
  Page 10 of 12

ICS4U: Unit 3 – Object Oriented Programming
10. Provided Templates and Files to Submit
  Provided Code & Template
   Files to submit
   Do not submit the following
   Car.java
 Convertible.java  Coupe.java
 Crossover.java  CRS.java
 CRSMain.java
 Database.java
 Sedan.java
 CarList.txt
    Car.java
 Convertible.java  Coupe.java
 Crossover.java  CRS.java
 CRSMain.java
 Sedan.java
   Database.java
 CarList.txt
 Any.class or.java~
  11. Note
 You may write as many or as little code. However, try to aim for my benchmark.  My sample code (excluding Database.java) contains 869 lines of code
 The templates contain a total of 235 lines of code already.
 You just need to write 633 lines of code to complete this assignment.
 Working with friends is highly encouraged, and may share ideas. However no sharing of code. There are
programs that can check the program’s similarity, and I can see who are copying programs.
  Page 11 of 12

ICS4U: Unit 3 – Object Oriented Programming
12. Marking Scheme: Checklist
Knowledge
Items
 Created and Used Methods correctly
 Used Classes and Objects correctly
 HaveInheritance
 HaveEncapsulation
 HavePolymorphism
 Displayinfocorrectly
 Program loops correctly between Menu and Screens  Usedmaterialnotfromlesson
Application
Items
 AddCar(Object)
 RentCar() is working
 ReturnCar() is working
 DisplayCar() is working
 DisplayCar(int) is working  Usedmaterialnotfromlesson
Thinking
Your Mark
Out of 4
4
4
4
4
4
4 -14 28
Out of 5 12
9
1
3 -15 30
Out of 4
4
4 4 8 4 8 4 -20 40
Out of 4
4
4
4
4
4 24
                                 Knowledge Total:
Application Total:
Your Mark
Your Mark
                                   Items
 Created Global Constant variables and used them correctly/efficiently
(minimum 5)
 Created Non-1 Line Helper Methods and used them correctly/efficiently
      (minimum 2)
 Applied Inheritance Efficiently/Correctly
 Applied Encapsulation Efficiently/Correctly
 Applied Polymorphism Efficiently/Correctly
 Followed UML diagram design
 Followed Frontend & Backend Design
 Check invalid input
 Used material not from lesson
Communication
Items
 HaveJAVADOCforHelperMethodsthatyoucreated  Correct Method & Variable naming convention
 Comments in code
 CodeIndentation
 ClearUserInterface
 Appropriatewarningmessages
Thinking Total:
Communication Total: PERCENTAGE:
請加QQ:99515681  郵箱:99515681@qq.com   WX:codinghelp

















 

標簽:

掃一掃在手機打開當前頁
  • 上一篇:CSI 2120代做、代寫Python/Java設計編程
  • 下一篇:COMP 2049 代做代寫 c++,java 編程
  • 無相關信息
    昆明生活資訊

    昆明圖文信息
    蝴蝶泉(4A)-大理旅游
    蝴蝶泉(4A)-大理旅游
    油炸竹蟲
    油炸竹蟲
    酸筍煮魚(雞)
    酸筍煮魚(雞)
    竹筒飯
    竹筒飯
    香茅草烤魚
    香茅草烤魚
    檸檬烤魚
    檸檬烤魚
    昆明西山國家級風景名勝區
    昆明西山國家級風景名勝區
    昆明旅游索道攻略
    昆明旅游索道攻略
  • 短信驗證碼平臺 理財 WPS下載

    關于我們 | 打賞支持 | 廣告服務 | 聯系我們 | 網站地圖 | 免責聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 kmw.cc Inc. All Rights Reserved. 昆明網 版權所有
    ICP備06013414號-3 公安備 42010502001045

    爱情鸟第一论坛com高清免费_91免费精品国自产拍在线可以看_亚洲一区精品中文字幕_男人操心女人的视频
    <strike id="bfrlb"></strike><form id="bfrlb"><form id="bfrlb"><nobr id="bfrlb"></nobr></form></form>

        <sub id="bfrlb"><listing id="bfrlb"><menuitem id="bfrlb"></menuitem></listing></sub>

          <form id="bfrlb"></form>

            <form id="bfrlb"></form>

              <address id="bfrlb"></address>

              <address id="bfrlb"></address>
              国产精品裸体一区二区三区| 国产精品麻豆成人av电影艾秋| 午夜精品视频在线观看| 亚洲人成人一区二区在线观看| 久久―日本道色综合久久| 性欧美办公室18xxxxhd| 亚洲欧美激情一区| 99re6热只有精品免费观看| 欧美精品网站| 欧美日韩另类一区| 亚洲欧美日韩精品久久久| 欧美一区二区三区精品电影| 国产精品视频在线观看| 欧美性做爰猛烈叫床潮| 久久国产精品免费一区| 欧美精品www在线观看| 亚洲永久免费视频| 在线精品国精品国产尤物884a| 亚洲高清一二三区| 国产精品国产一区二区| 欧美日韩精品二区第二页| 午夜视黄欧洲亚洲| 亚洲国产91色在线| 欧美一区二区三区四区夜夜大片| 亚洲自拍偷拍一区| 尤物yw午夜国产精品视频| 欧美日韩黄色大片| 亚洲欧美精品在线| 亚洲欧洲精品一区二区三区波多野1战4| 久久久精品视频成人| 国产精品久久久久aaaa九色| 国产精品福利网| 免费观看亚洲视频大全| 国产一区视频在线观看免费| 99这里只有久久精品视频| 亚洲三级观看| 免费观看欧美在线视频的网站| 在线视频欧美一区| 91久久国产综合久久蜜月精品| 久久综合狠狠| 欧美mv日韩mv国产网站app| 好吊色欧美一区二区三区视频| 亚洲精品影院在线观看| 国产一区二区av| 亚洲欧美日韩国产一区二区三区| 亚洲另类一区二区| 欧美在线免费| 欧美日韩国产精品| 激情久久五月天| 欧美日韩免费观看一区=区三区| 国产精品国产三级国产aⅴ入口| 国产日韩精品视频一区| 黄网动漫久久久| 亚洲人成在线免费观看| 国产亚洲欧美aaaa| 欧美视频在线观看 亚洲欧| 欧美日韩国产首页在线观看| 欧美成人午夜剧场免费观看| 欧美精品国产精品| 亚洲欧美综合另类中字| 99国产精品国产精品毛片| 亚洲一区二区三区成人在线视频精品| 久久精品国产99精品国产亚洲性色| 亚洲国产欧美一区二区三区同亚洲| 欧美在线播放一区二区| 欧美大片va欧美在线播放| 久久久国产一区二区三区| 亚洲欧美日韩直播| 欧美日韩在线视频观看| 亚洲福利久久| 亚洲国产裸拍裸体视频在线观看乱了| 欧美日韩免费高清| 久久久久久久久久久久久女国产乱| 国产一区二区三区久久久| 国产女主播一区二区三区| 裸体一区二区三区| 欧美伊人久久大香线蕉综合69| 国产精品久久久久久久9999| 亚洲男人天堂2024| 亚洲精品欧美精品| 亚洲你懂的在线视频| 这里只有精品视频| 欧美色图五月天| 美女免费视频一区| 99re6这里只有精品视频在线观看| 久久久久久香蕉网| 欧美mv日韩mv亚洲| 亚洲欧美日韩一区二区三区在线观看| 国产日韩欧美一区二区三区在线观看| 国产亚洲一区在线| 国产三级精品在线不卡| 香蕉成人啪国产精品视频综合网| 日韩亚洲欧美综合| 欧美一区亚洲一区| 夜夜嗨av一区二区三区四季av| 欧美激情一区二区三区在线视频观看| 亚洲一区二区黄| 亚洲私拍自拍| 亚洲欧美成人精品| 亚洲一区二区三区影院| 一本色道久久综合亚洲精品婷婷| 夜夜嗨av色一区二区不卡| 欧美日韩在线一区| 欧美高清一区二区| 一本色道久久综合一区| 狠狠做深爱婷婷久久综合一区| 亚洲精品国偷自产在线99热| 久久久噜噜噜久久中文字免| 亚洲视频专区在线| 国产精品电影网站| 免费不卡中文字幕视频| 亚洲天堂av图片| 一区二区三区久久网| 亚洲一区二区三区中文字幕在线| 久久精品99久久香蕉国产色戒| 国产亚洲欧美色| 亚洲国产成人在线| 亚洲免费中文| 久久大香伊蕉在人线观看热2| 亚洲视频导航| 国产区在线观看成人精品| 久久久久久久综合| 国产日韩在线一区二区三区| 99www免费人成精品| 免费成人毛片| 在线 亚洲欧美在线综合一区| 亚洲高清精品中出| 久久夜色精品一区| av成人老司机| 国产精品99久久99久久久二8| 欧美在线观看网址综合| 国产精品影片在线观看| 亚洲国产va精品久久久不卡综合| 日韩一区二区福利| 另类图片国产| 99国内精品久久| 久久久久久91香蕉国产| 亚洲福利视频网站| 欧美午夜电影在线观看| 欧美破处大片在线视频| 久久五月婷婷丁香社区| 亚洲午夜黄色| 黄色成人在线观看| 一区二区激情| 亚洲国产高潮在线观看| 在线观看91精品国产入口| 国产伦精品一区二区三区在线观看| 亚洲免费影视| 99视频热这里只有精品免费| 亚洲国产日韩欧美一区二区三区| 欧美va天堂va视频va在线| 亚洲一区二区三区在线播放| 国产精品yjizz| 日韩视频一区二区三区在线播放| 在线午夜精品自拍| 亚洲国产精品久久久| 在线播放豆国产99亚洲| 欧美一区二区日韩| 久久婷婷激情| 久久不射电影网| 香蕉久久久久久久av网站| 久久精品国产免费观看| 国产日韩精品视频一区二区三区| 国产一区二区三区无遮挡| 另类图片综合电影| 国产精品久久二区| 日韩一二在线观看| 欧美日韩三级电影在线| 揄拍成人国产精品视频| 亚洲国产日韩欧美一区二区三区| 午夜精品视频| 国产一区二区三区在线观看免费| 欧美成人精品在线播放| 国产欧美一区二区精品婷婷| 欧美一区2区三区4区公司二百| 亚洲精品资源| 亚洲日本va午夜在线电影| 99re6热只有精品免费观看| 欧美日韩国产精品一区| 久久精品亚洲一区二区三区浴池| 欧美激情自拍| 午夜精品福利在线| 国产精品网站视频| 国产精品久久久久一区| 亚洲美女av在线播放| 鲁大师成人一区二区三区| 99国内精品久久| 国产日韩欧美三级| 一本久道久久综合婷婷鲸鱼| 欧美另类一区二区三区| 亚洲欧美日韩综合aⅴ视频| 影音先锋久久| 久久视频这里只有精品| 亚洲一区二区日本| 久久九九全国免费精品观看| 国产精品一级二级三级| 亚洲另类在线一区| 亚洲欧美中文另类| 欧美理论在线| 9i看片成人免费高清|