Python and Visual Logic

profileTracyL0101
python_and_vl.pdf

Cis 1101

Final Examination

Complete all of the following problems. Document your solutions, along with a

discussion of your design process, in a single Word document.

1. (20 pts) In both Python and Visual Logic, write a program that converts the value the user enters from units of ounces to units of Imperial gallons. Consider

exploring the Unit Converter at calculator.com to check your answer.

2. (20 pts)In Python, add code to your solution from part 1 to check that the user does not enter a negative number. If they do display a message box telling them

their mistake.

3. (20 pts)In both Visual Logic and Python languages, write a program that generates 100 random numbers between 0 and 10. Print out the entire list of

numbers generated. Compute and display the percentage of the time that a 3

appears.

4. (20 pts) Show how you would go about learning the PERL language. Discuss using the series of steps we have presented in the course. For each step, present a

small example of PERL code to illustrate. You may use any example you like but

be sure to document your research sources.

5. (20 pts) In Visual Logic, write a program that stores the following list of data :

15, 36, 26, 43, -24, 1000,-25

Print out the list backwards. Display the sum of all the numbers in the list that are

multiples of 6 and larger than 15.