Question
Done in Perl 2. Write a program that computes the circumference of a circle with a radius of 20.5. Circumference is 2 times 3.14 times
Done in Perl
2. Write a program that computes the circumference of a circle with a radius of 20.5. Circumference is 2 times 3.14 times radius. Name the program prog2.pl. 3. Modify prog2.pl from the previous exercise and name it prog3.pl. It should prompt for and accept a radius from the person running the program. 4. Modify prog3.pl, so that if the user enters a number less than zero, the reported circumference will be zero, rather than negative. Name the program prog4.pl. 5. Write a program that prompts for and reads two numbers and prints out the product of the two numbers multiplied together. Name the program prog5.pl.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started