Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

// Variables Numeric shoeID // ID# (1000 to 9999) Numeric shoeSize // shoe size

ID: 3556740 • Letter: #

Question

// Variables
Numeric shoeID           // ID# (1000 to 9999)
Numeric shoeSize         // shoe size
String firstName         // first name of renter
String lastName          // last name of renter
String rentalDate        // rent date (MM/DD/YYYY)
String rentalTime        // rent time (HH:MM, 24-hr)
Numeric numGames         // number of games bowled
Numeric rentalCost       // rental cost ($2 per game)

// Constructor method for shoe rental
Constructor Method for shoe rental
Display "Enter the shoe ID number: "
Input shoeID
Display "Enter the shoe size:"
Input shoeSize
Display "Enter renter's first name:"
Input firstName
Display "Enter renter's last name:"
Input lastName
Display "Enter date (MM/DD/YYYY):"
Input rentalDate
Display "Enter time (HH:MM):"
Input rentalTime
Display "How many games is renter bowling? "
Input numGames
rentalCost = computeRentalCost(numGames)
End Method

// Method to compute rental cost
Numeric computeRentalCost(Numeric games)
Constant Numeric COST_PER_GAME = 2
Declare Numeric cost
cost = games * COST_PER_GAME
Return cost
End Method

// Method to display info
displayInfo()
    Display "Renter's name:" + firstName + " " + lastName
      Display "Shoe ID:" + shoeID
      Display "Shoe size: " + shoeSize
      Display "Rental date: " + rentalDate
      Display "Number of games bowled: " + numGames
      Display "Cost of rental: " + rentalCost
   End Mehod

End Method

   // Welcome the user
   Display "Welcome to Lanes Galore Shoe Rentals"

// Rent a pair of shoes to a customer
Shoe Rental nextCustomer = new ShoeRental()
nextCustomer.displayInfo()

     // Thank the user
     Display "Thank you!"

Stop

Explanation / Answer

they give you details of customer .His name .number of shoes he rented and cost per shoe

you have return the total cost by returning the variable total cost

where total cost = nymber * cost per pair