Question: 1 . What class is the driver for this slice of the application? ( 0 . 5 ) 2 . What major part of the

1. What class is the driver for this slice of the application? (0.5)
2. What major part of the application is replaced by a stub? Name the class(es) that make up this stub. (0.5)
Answer: The user interface part of the application is replaced by a stub. The classes that make up this stub are Manifest and UserPrompter.
3. List three defects that you located in the original code, and describe then as you would in a testers defect report. Describe where user is in using the system and what the user input. Then state how the system response deviated from expected output. (6).
a. Defect Report 1:
Where: The user is at the point of selecting a seat after choosing to buy a business class ticket.
User input: The user inputs "Yes" for purchasing a business class ticket.
System response: The system assigns an economy class seat instead of a business class seat.
Expected response: The system should assign a seat in the business class section (1A or 1B).
b. Defect Report 2:
Where: The user is entering their name and status as an airline staff member.
User input: The user inputs "John Doe" as the name and selects "Yes" for being an airline staff.
System response: The system calculates the ticket price without applying the 50% discount for the economy class seat.
Expected response: The system should apply a 50% discount to the economy class ticket, resulting in a price of $250 instead of $500.
c. Defect Report 3:
Where: The user is requesting the manifest list after ticket sales have ended.
User input: The user inputs "No" to stop ticket sales.
System response: The system prints an incomplete or incorrect manifest list, showing some assigned seats as "Available."
Expected response: The system should print a complete and correct manifest list, showing all sold seats with the corresponding passenger names and only unsold seats as "Available."
4. Briefly define the term Step in, Step out, Step over and Breakpoint: (2)
Step in: This command allows the debugger to enter into the function or method call, enabling you to follow the execution line-by-line within the function.
Step out: This command continues execution until the current function or method exits, returning control to the caller function.
Step over: This command executes the current line of code and moves to the next line, but if the line contains a function or method call, it executes the entire function or method without stepping into it.
Breakpoint: A breakpoint is a marker set by the programmer that tells the debugger to pause the execution of the program at that specific line of code. It is used to inspect the state of the program at that point.
5. Give the Screenshots for the import of jar file into the java IDE , Debug mode and fix of no error. (1)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!