Assignment - Prog191 Vũ Tiến Thành Gcd210498.Pdf

24 0 0
Assignment - Prog191 Vũ Tiến Thành Gcd210498.Pdf

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

ASSIGNMENT 1 FRONT SHEET Qualification BTEC Level 5 HND Diploma in Computing Unit number and title Submission date Date Received 1st submission Re submission Date Date Received 2nd submission Student[.]

ASSIGNMENT FRONT SHEET Qualification BTEC Level HND Diploma in Computing Unit number and title Submission date Date Received 1st submission Re-submission Date Date Received 2nd submission Student Name Vu Tien Thanh Student ID GCD210498 Class GCD1102 Assessor name Ho Van Phi Student declaration I certify that the assignment submission is entirely my own work and I fully understand the consequences of plagiarism I understand that making a false declaration is a form of malpractice Student’s signature Grading grid Grade (0-10) Thanh ❒Summative Feedback: Grade: IV Signature: ❒Resubmission Feedback: Assessor Signature: Date: Table of content Contents I Introduction II Requirement 2.1User Case 2.2 User requirement III UI Design IV Implementation 4.1 Explain program structure 4.2 Explain classes 4.3 Explain important algorithms 12 4.4 Explain how to handle errors 13 V Test 14 Test plan .14 Test log 14 VI Result 15 VII Conclusion 23 Table of figure Figure Interface application Figure User case diagram Figure Main wireframe Figure Program structure Figure Storage class Figure Interface class .10 Figure GUI Application 11 Figure Important algorithms 12 Figure Handle errors 13 Figure 10 Test plan 14 Figure 11 Test log 15 Figure 12 Smartphone management .16 Figure 13 Save function 17 Figure 14 Product before import to the table 18 Figure 15 Product after import to the table 18 Figure 16 Product before delete to the table 19 Figure 17 Product after delete on the table .20 Figure 18 The product before search on the table 21 Figure 19 The product after search on the table .22 Figure 20 Load File function .23 I Introduction A store selling smartphone products in store and a online store wanted to save time going to the warehouse to check, and manage all of devices into their store, so their ideal need a ideal to create an app to manage them productname, ID, category, color and price In my current assgignment, I will create a basicly program with a GUI to what a shop owner needs with all my understanding of Java programming Figure Interface application II Requirement 2.1User Case Figure User case diagram The program must have basicly function such as: create, modifying, delete, save product Furthermore, I was created a Load File function to show all product of admin was insert, Import File look like a storage include all of detail admin was inserted Final is search function, it’s help admin can found a product they want by give a name of product or ID 2.2 User requirement To manage program successfully, as a admin I was created some function for system:       As a admin, I want to add some product in my program As a admin, I want to load file to see all product I was import and save As a admin, I want to delete the product if something was wrong As a admin, I want to save the product As a admin, I want to import file, it’s look like I created a new file and I save my product in this file, If I want to show it in my program, I just click load file, it’s will show all product I was create As a admin, I want to search the product, it’s make me spend less of time to find the product III UI Design Main diagram Figure Main wireframe IV Implementation 4.1 Explain program structure Figure Program structure 4.2 Explain classes Storage Class The Storage Class is used to create object and class with Storage attributes Figure Storage class The code line from to 14 is create the attributes for the Storage class and Interface class such as Name, Category, Color, ID and Price In there Name, Category and Color are contains String datatypes ID and Price are contains int datatypes The code line from 15 to end is create the exception function is used to handle errors Interface Class Figure Interface class Interface class is used to createing A GUI Application for admin interchange with system This is place to create ArrayList then save it in table, the most importance function like Load File, Delete, Save, Import and Search can edit here Figure GUI Application 4.3 Explain important algorithms Figure Important algorithms If not enter the name and ID or wrong declared value, the system will report an error All data will not be added to the table 4.4 Explain how to handle errors Figure Handle errors If I saving data to the table, if I enter empty is missing or incorrect, the declared data will not be transmitted through the table and the system will report an error and force the user to re-enter the data V Test Test plan The strategy, goals, timetable, estimation, deliverables, and resources needed to carry out testing on a software product are all described in detail in a test plan The test plan aids in estimating the amount of work required to verify the application's quality The test manager carefully monitors and controls every aspect of the test plan to ensure that software testing activities are carried out according to a defined methodology Test What is being test Upload data on a table Find id or name of product Add a product but not enter ID Delete a product Enter the same ID How Click in Load File button Enter sample data and evaluate the results Enter sample data and evaluate the results Click on the row admin want to delete Enter sample data and evaluate the results “” “” Test data used Expected Results Successful Successful “” Successful “” Successful “” Notification invalid ID Figure 10 Test plan Test log Test What is being tested Upload data on a table How Click in Load File button Test data Expected used Results “” Successful Date 16/4/2023 Actual result Action taken None Find id or name of product Add a product but not enter ID Delete a product Enter the same ID Enter sample data and evaluate the results Enter sample data and evaluate the results Click on the row admin want to delete Enter sample data and evaluate the results “” Successful 16/4/2023 None “” Successful 16/4/2023 None “” Successful 16/4/2023 None “” Notification invalid ID 18/4/2023 Don’t get notification error Recode test again Figure 11 Test log VI Result Product Manager Screenshots of running program Screenshots of running program Figure 12 Smartphone management In my assignment I was created a basic program to manage smartphone, In there I was created some button with important function such as:     Load File function will upload all smartphone detail I was enter before Delete function will delete a row I want, after delete it’s will alter for me data deleted successful Save function will save all data I just enter in each row , after I click Save the information of each row will empty, I can continue enter new information if I want Import function will import data I want in other file, this file look like storage and it’s can contains all information  Search function will help users and admin found name or ID of product easier ,if users or admin enter correctly product’s name, product’s ID want to search Save product: Figure 13 Save function  When I click Save a new data will appear on the table data, old detail of each row I was enter will disappear However, I don’t click Load File so all detail will not shows Import product: Before Figure 14 Product before import to the table  Before I click Import function, there are ID and final smartphone name is Xiaomi After Figure 15 Product after import to the table  After I click Import function, now final smartphone is Nokia A7, and a row was added, total row Delete Before Figure 16 Product before delete to the table  After Before I click Delete function, there are 10 row and the last smartphone’s name is Oppo A3 with number of ID is 10 Figure 17 Product after delete on the table  After I click Delete function, now table data just has row, the final data row contains data of Oppo A3 with number of ID is 10 deleted, and program alter Deleted successfully Search Before Figure 18 The product before search on the table  After When I click Search funtion and not gave name or ID address, The system will alter “ENTER NAME OR ID TO FIND” Figure 19 The product after search on the table  After I gave the name address, the system will appear exactly all detail of smartphone I want to find In this case I gave Name address is Iphone 12 then system will display all information of smartphone is Iphone 12 with Name, ID, Category, Color, Price Furthermore, if gave the ID address it’s also show the same value if ID was enter Load File Figure 20 Load File function  When I click Load File function, all detail of table data will appear VII Conclusion This assignment reqiure students must be create a Interface Application basic based knowledge learned from school and self learning that is need to complete the course criteria This assignment contains importance function like add, save, delete and search The function depend on many components of the lesson learned from classes including collection, inheritance, OOP, abtraction Strength: Based on this assignment I was created a basic programing include some function like: add, save, delete and search This assignment have suitable interface with users, easy to understand and practice Weakness: This function of assignment still is limited The interface is still not optimized or made beautiful

Ngày đăng: 19/04/2023, 08:00

Tài liệu cùng người dùng

  • Đang cập nhật ...

Tài liệu liên quan