University of South Florida Programming Design Worksheet

Relax! Stop worrying about deadlines and let our professional writers help you. Hire an essay writer helper and receive a professional assignment before your deadline. We provide writing services for all types of academic assignments.


Order a Similar Paper Order a Different Paper

try_trucks FILE

# Compare the results from your program with the expected results on the test cases.

echo ‘====================================================’

#

./a.out <<-EndOfInput

0

EndOfInput

echo ‘—————————————————-‘

echo ‘Expected:’

echo ‘Please select from the following menu: 1. Flatbed pickup truck I. 2. Flatbed pickup truck 2,’

echo ‘3. Cargo van. 4. Moving box truck.’

echo ‘Enter truck selection: 0’

echo ‘Invalid input. The input should be in the range of 1 to 4.’

echo ‘====================================================’

./a.out <<-EndOfInput

5

EndOfInput

echo ‘—————————————————-‘

echo ‘Expected:’

echo ‘Please select from the following menu: 1. Flatbed pickup truck I. 2. Flatbed pickup truck 2,’

echo ‘3. Cargo van. 4. Moving box truck.’

echo ‘Enter truck selection: 5’

echo ‘Invalid input. The input should be in the range of 1 to 4.’

echo ‘====================================================’

./a.out <<-EndOfInput

1 6 20

EndOfInput

echo ‘—————————————————-‘

echo ‘Expected:’

echo ‘Please select from the following menu: 1. Flatbed pickup truck I. 2. Flatbed pickup truck 2,’

echo ‘3. Cargo van. 4. Moving box truck.’

echo ‘Enter truck selection: 1’

echo ‘Enter hours rented: 6’

echo ‘Enter minutes rented: 20’

echo ‘Amount due ($): 49’

echo ‘====================================================’

./a.out <<-EndOfInput

2 3 23

EndOfInput

echo ‘—————————————————-‘

echo ‘Expected:’

echo ‘Please select from the following menu: 1. Flatbed pickup truck I. 2. Flatbed pickup truck 2,’

echo ‘3. Cargo van. 4. Moving box truck.’

echo ‘Enter truck selection: 2’

echo ‘Enter hours rented: 3’

echo ‘Enter minutes rented: 23’

echo ‘Amount due ($): 64’

echo ‘====================================================’

./a.out <<-EndOfInput

3 16 40

EndOfInput

echo ‘—————————————————-‘

echo ‘Expected:’

echo ‘Please select from the following menu: 1. Flatbed pickup truck I. 2. Flatbed pickup truck 2,’

echo ‘3. Cargo van. 4. Moving box truck.’

echo ‘Enter truck selection: 3’

echo ‘Enter hours rented: 16’

echo ‘Enter minutes rented: 40’

echo ‘Amount due ($): 89’

echo ‘====================================================’

./a.out <<-EndOfInput

4 1 5

EndOfInput

echo ‘—————————————————-‘

echo ‘Expected:’

echo ‘Please select from the following menu: 1. Flatbed pickup truck I. 2. Flatbed pickup truck 2,’

echo ‘3. Cargo van. 4. Moving box truck.’

echo ‘Enter truck selection: 4’

echo ‘Enter hours rented: 1’

echo ‘Enter minutes rented: 5’

echo ‘Amount due ($): 29’

echo ‘====================================================’

Great students hand in great papers. Order our essay service if you want to meet all the deadlines on time and get top grades. Professional custom writing is the choice of goal-focused students. Word on the online streets is... we're simply the best!

Get a 15% discount on your order using the following coupon code SAVE15


Order a Similar Paper Order a Different Paper