View Single Post
  #1 (permalink)  
Old 10-12-2008, 02:27 AM
icedragon770 icedragon770 is offline
Member
 
Join Date: Oct 2008
Posts: 36
icedragon770 is on a distinguished road
Question/Java Program
this is logic not java but needs to put in java program which im doing ?
Quote:
Start

Display a welcoming message

Ask for the required number of passengers from 1-8

Ask about importance of mileage on a scale of 1-10

Ask about importance of cargo space on a scale of 1-10

If the user entered valid answers then

If the passenger count is 6 or more Then

Choose the Sports Utility Vehicle (SUV)

Else

If mileage is more important than cargo Then

Choose the Hybrid Sedan

Else

If passenger count is 5 Then

Choose SUV

Else

If cargo space importance was 7 or better Then

Choose the Pickup w/Cab

Else

Choose the SUV

End If

End If

End If

End If

Tell the customer which vehicle is recommended

Else

Tell the customer that their entries are not correct

End If

Thank the customer for their interest

Stop
just wondering do i need to initilzied the vehichle car type or not thats all
Reply With Quote
Sponsored Links