Asked by Caren
Write a program that asks for and reads the price of a book (it may have a decimal part), multiplies it by 7% sales tax and displays both the sales tax and final price of the book on the screen.
Answers
Answered by
Steve
$p = <STDIN>;
$t = $p * 0.07;
print $t,$p+$t;
$t = $p * 0.07;
print $t,$p+$t;
There are no AI answers yet. The ability to request AI answers is coming soon!
Submit Your Answer
We prioritize human answers over AI answers.
If you are human, and you can answer this question, please submit your answer.