Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. For this portion of the application, which class is the driver? (0.5) 2. What significant portion of the application does a stub replace? What

1. For this portion of the application, which class is the driver? (0.5)

2. What significant portion of the application does a stub replace? What class(es) is/are included in this stub? (0.5)

3. Enumerate three errors that you found in the source code and explain them in the same way that you would in a defect report from a tester. Describe the user's input and where they are in the system. Next, describe the deviation of the system response from the predicted output. (6).

a. Where: User input; Answer from the system:

b. Where: System reaction to user input:

image

UML class diagram 1 of air ticketing example: Manifest Aplan: Seating Pla Manifest () printOut() main () Seating Plan seats: ArrayList numSeatsPerRow: int numRows: int numBusRows: int seatReserver: SeatReserver seatLetters: String Seat row: int letter: char ticket: Ticket sClass: Seating Class UML class diagram 2 of air ticketing example: Seating Class BUSINESS $ ECONOMY Manifest A plan: SeatingPlan Manifest () >printOut() main () SeatReserver seatFinder: Random plan: SeatingPlan numBusSeats: int numEcoSeats: int numBusSeats Sold: int numEcoSeatsSold: int SeatReserver() = getPassenger () assignSeat () findFirstEmptySeat () > sellTicket() Seat Seating Plan seats: ArrayList lineReader: BufferedReader UserPrompter() UserPrompter() >getAnswer () getYesNoAnswer () main () getPrompt() setPrompt() Passenger pName: PassengerName passenger: Passenger seat: Seat Ticket a price: double ticketNo:long DS count: long StaffPassenger employeeId: String PassengerName firstName: String a lastName: String mInitial: String a passenger: Passenger seat:Seat price: double ticketNo:long DS count: long FrequentFlyer fFlyerId: String Passenger pName: PassengerName Not shown in these diagrams is the interface Discountable, implemented by the class StaffPassenger.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

1 The driver class in software development typically serves as the entry point for the application r... blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Financial Reporting Financial Statement Analysis And Valuation A Strategic Perspective

Authors: James M Wahlen, Stephen P Baginskl, Mark T Bradshaw

7th Edition

9780324789423, 324789416, 978-0324789416

More Books

Students also viewed these Algorithms questions