This section provides a quick preview of questions from the document. It may not display every question or the complete wording of each one. For the full content, including diagrams, tables and other information, view the original PDF above.
Q1โ Section header โ
1.1Button Confirm delivery xtract departure from combobox; (to be used as text\ AND Extract destination from combobox; (to be used as text\ Extract the number of kilometres from text box
1.2Button [Delivery c ost] Extract the choice selected from the list box Correct variable in condition All possibilities (A1..A4 OR item index 0..3
1.3Button [Delivery box n umber] Create variable to store box number Check if s peed post is selected Set box number = 4 else (could be another if statement\
Q1โ Section header โ
1.4Button Validate bar code Extract the barcode Set sumOdd and sumEven to 0 Loop from first to the second last digit Check if the position of the digit is even Add
1.5Button [View and save d eliveries] Extract the selected name of the city from the combo box Display the name
Q2โ Section header โ
2.1.1Constructor: Heading with ONLY our values Correct data ypes Assign
2.1.2Accessor and mutator METHODs: setFuelUsed (non return\ with p arameter value assigned to attribute getFuelUsed (return\ with correct return data type
2.1.3calculateDistance METHOD: return type a number substract odoStart from odoEnd 1 if received as parameters\ return answer
2.1.4determineTollF ees METHOD Receive route as string p arameter Determine correct row in 2D depending on routeNr (subtract 1 mark each mistake max 2\ Determine correct column in 2D depending on TruckNr
2.2.1Button [Get data from file]: Receive vehicle number from combo box & convert to string Delphi: AssignFile, Reset Java: Create objec t to read from file Test if file does not exist
Q2โ Section header โ
2.2.2Button [New delivery]: Obtain newTripNumber, begin odometer, end odometer, truck number Instantiate the object with values: Left side of assign Right side of assign Correct number and order
2.2.3Button [Display delivery Display information in text area using toString
2.2.4Button [Check fuel used ad fuel used from text box and convert to a real number Use object and call getMethod to get fuel used Calculate diff
2.2.5Button [Calculate toll fees Read route number from text box Use object to call determineTollFees method and send route number as parameter Display toll fees
Q3โ Section header โ
Q3โ Section header โ
Q1โ Section header โ
Q2โ Section header โ
Q3โ Section header โ
Q1โ Section header โ
Q1โ Section header โ
Q1โ Section header โ
Q1โ Section header โ
Q1โ Section header โ
Q1โ Section header โ
Q2โ Section header โ
Q2โ Section header โ
Q2โ Section header โ
Q2โ Section header โ
Q2โ Section header โ
Q2โ Section header โ
Q2โ Section header โ
Q2โ Section header โ
Q2โ Section header โ
2.4========================================================================\
= private void btnFuelChangeActio nPerformed(java.awt.event.ActionEvent evt) { \ double fuelAdded = Double.parseDouble(txfFuel.getText());
Q2โ Section header โ
2.5========================================================================\
= private void btnTollFeesActionPerformed(java.awt.event.ActionEvent evt)\
{ String output = String.format("%
Q3โ Section header โ
Q3โ Section header โ
13.2f%n", " Fragile", numFragile, percFragile\; txaOutput.append(String.format("% 15s% 25s%
13.2f%n", " Non fragile", numNonFragile, percNonFragile\\ if (percFragile >= 50 && pe rcNonFragile >= 50\ { txaOutput.append(" n The delivery may progress."\ if (numFragile < 10 || numNonFragile < 15\ txaOutput.append("
Q1โ Section header โ
Q1โ Section header โ
Q1โ Section header โ
Q1โ Section header โ
Q1โ Section header โ
Q1โ Section header โ
Q1โ Section header โ
Q2โ Section header โ
Q2โ Section header โ
Q2โ Section header โ
Q2โ Section header โ
Q2โ Section header โ
Q2โ Section header โ
Q2โ Section header โ
Q2โ Section header โ
Q2โ Section header โ
Q2โ Section header โ
Q2โ Section header โ
Q2โ Section header โ
Q2โ Section header โ
Q3โ Section header โ
Q3โ Section header โ
Q3โ Section header โ
Q3โ Section header โ
Q3โ Section header โ