DR.

KALMADI SHAMARAO HIGH SCHOOL In association with PERSISTENT FOUNDATION
-

CYBER GENIUS CONTEST 2011
Round: Final Group/Level: Senior Duration: 1 Hr.

Name of the Test: QBasic Programming Final Round

1. Write a program to calculate the Circumference and Area of a circle. = 3.141593 2. Write a program to print the squares of even numbers from zero to 25 3. Write a program that computes the average rainfall for any number of days. a. User first says how many days are to be averaged. b. User then enters the rainfall in inches for each day, one by one. c. Program computes the average and writes it out. 4. Write a program to print PERSISTENT SYSTEMS exactly at the center of the screen. (Hint: Use string function to find the length of the text, so that you will be able to calculate the center position on screen. DO NOT use trial and error method to position the string at the center).

5. Write a program to draw stars in the night sky.(draw random number of points on the screen) Let user guess the number of stars. Print how far is the guess, from the actual number of stars, present on the screen:Hint :
a. b. c. d. e. f. Program picks a random number. Program draws that many spots on screen. Program asks the user how many spots there are. User types in an estimate. Program reads the user's estimate. Program calculates the error, and prints it.

Sign up to vote on this title
UsefulNot useful