# Programming Languages- NEED HELP!!

posted by .

Create a program that determine the shipping cost for an order based on the following table:

From
\$0.00
\$20.00
\$50.00
\$75.00

To
\$19.99
\$49.99
\$79.99
\$1000.00

Price
\$2.95
\$3.95
\$4.95
Free

• Programming Languages- NEED HELP!! -

here's some perl. Modify to suit your needs:

@cost = (0.00,0.00,20.00,50.00,75.00);
@ship = (0.00,2.95,3.95,4.95,0.00);
while (1) {
print "Enter order amount: \\$";
\$c = <STDIN>;
for (\$i = \$#cost ; \$i > 0 ; \$i--) {
last if \$c >= \$cost[\$i];
}
printf "Shipping: \\$%4.2f\n",\$ship[\$i];
}

• Programming Languages- NEED HELP!! -

My teacher said this is not the right. Were doing Raptor Program.

## Similar Questions

1. ### Computer Science (Programming Logic And Design)

How do i Create a program that determine the shipping cost for an order based on the following chart:  From To Price  \$0.00 \$19.00 \$2.95  \$20.00 \$49.99 \$3.95  \$50.00 \$74.99 \$4.95  \$75.00 \$1000.00 \$Free
2. ### Computer (Programming Logic and Design)

How do i Create a program that determine the shipping cost for an order based on the following table: From To Price  \$0.00 \$19.00 \$2.95  \$20.00 \$49.99 \$3.95  \$50.00 \$74.99 \$4.95  \$75.00 \$1000.00 \$Free I don't understand how to …
3. ### programming

How do i Create a program that determine the shipping cost for an order based on the following table:  From To Price   \$0.00 \$19.00 \$2.95   \$20.00 \$49.99 \$3.95   \$50.00 \$74.99 \$4.95   \$75.00 \$1000.00 \$Free  I don't understand …
4. ### Programming Languages (Computer Logic and Design)

Create a program that determine the shipping cost for an order based on the following table: From To Price \$0.00 \$19.99 \$2.95 \$20.00 \$49.99 \$3.95 \$50.00 \$79.99 \$4.95 \$75.00 \$1000.00 Free
5. ### Programming Logic

Create a program that determine the shipping cost for an order based on the following table: From To Price \$0.00 \$19.99 \$2.95 \$20.00 \$49.99 \$3.95 \$50.00 \$79.99 \$4.95 \$75.00 \$1000.00 Free
6. ### Programing using Raptor ( Computer Logic)

Create a program that determine the shipping cost for an order based on the following table: From \$0.00 \$20.00 \$50.00 \$75.00 To \$19.99 \$49.99 \$79.99 \$1000.00 Price \$2.95 \$3.95 \$4.95 Free
7. ### programming (using raptor)

Create a program that determine the shipping cost for an order based on the following table: From \$0.00 \$20.00 \$50.00 \$75.00 To \$19.99 \$49.99 \$79.99 \$1000.00 Price \$2.95 \$3.95 \$4.95 Free
8. ### Programming

Create a program that determine the shipping cost for an order based on the following table: From \$0.00 \$20.00 \$50.00 \$75.00 To \$19.99 \$49.99 \$79.99 \$1000.00 Price \$2.95 \$3.95 \$4.95 Free
9. ### Programming Languages (Computer Logic and Design)

Create a program that determine the shipping cost for an order based on the following table: From \$0.00 \$20.00 \$50.00 \$75.00 To \$19.99 \$49.99 \$79.99 \$1000.00 Price \$2.95 \$3.95 \$4.95 Free
10. ### Shipping Cost Program (Raptor)

Create a program that determine the shipping cpst for an order based on the follwoing table: From \$0.00 \$20.00 \$50.00 \$75.00 To \$19.99 \$49.99 \$79.99 \$1000.00 Price \$2.95 \$3.95 \$4.95 Free

More Similar Questions