Question: Perl Programming CSCI 2215 Section Name: Assignment 1 (100 pts) Instructions: Complete the following exercises. You must submit each script separately on D2L Dropbox Date:

 Perl Programming CSCI 2215 Section Name: Assignment 1 (100 pts) Instructions:

Perl Programming CSCI 2215 Section Name: Assignment 1 (100 pts) Instructions: Complete the following exercises. You must submit each script separately on D2L Dropbox Date: CHECK CALENDAR FOR DUE DATE 1 write a program that computes the circumference of a circle with a radius of 12.5 Circumference is 2 times the radius (approximately 2 times 3.141592654). The answer you get should be about 78.5. 2. Modify the program from the previous exercise to prompt for and accept a radius from the person runni the program. So, if the user enters 12.5 for the radius, she should get the same number as in the previous exercise. 3. Modify the program from the previous exercise so that, if the user enters a number less than zero, the reported circumference will be zero, rather than negative 4. Write a program that prompts for and reads two numbers (on separate lines of input) and prints out the product of the two numbers multiplied together. 5. Write a program that prompts for and reads a string and a number (on separate lines of input) and prints out the string the number of times indicated by the number on separate lines. (Hint: use the x operator.) If user enters "fred" and "3", the output should be three lines, each saying "fred". If the user enters "fred" an 299792", there may be a lot of output

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!