in reply to Please Help! This is a class assignment given to me.

The teacher needs to know if you can think and solve problems. If you can think, the teacher also needs to know how you think. If you can't think we have jobs for you that don't involve computers.

Start by translating the problem into Perl, then do the math:

#!/usr/bin/perl use strict; use warnings; my $sold = 10; my $cost = 250; my $price = 300; my $discount = 0.10; # your code here