English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Write a program that computes the cost travel plus lodging for a single adult and a family of two, three, or four people (2 adults plus zero, one, and two children).

format: hotel room
1. a second adult pays full fare
2. children stay in the room for free

air travel
1. each adult pays full fare
2. each child pays 60% of the adult cost

default:
$450.00 ROUND TRIP(air travel)

$300.00(Full week) Hotel room


help me pls

2007-01-30 18:20:49 · 1 answers · asked by Ronell T 1 in Computers & Internet Programming & Design

1 answers

c'mon, do a little work before you ask this question.

Your program should ask:

how many adults (1 or 2)?:

how many children (0,1 or 2)?:

based on the input you calculate the cost.
print it out.

could not be easier.

2007-01-30 18:30:22 · answer #1 · answered by sspade30 5 · 0 0

fedest.com, questions and answers