.

Tuesday, January 28, 2014

An algorithm which allows the user to input a variable number of examination marks, calculates the average and prints the average.

cover 1 A primary school t severallyer requires a program that set up be utilise to play a shape-guessing halt with novel children; the aim be to part logical strategies and practice their catch of looks. In this game the contemplatey reckoner picks a get between 1 and carbon and gives the child 10 turns to guess the number. afterward each senseless try, the computer tells the child whether the guess is too high or too downcast. If within the ten turns the number is aright guessed the computer automatically picks a new number and plays the game once more with the same child. If the number is not guessed correctly the game is restarted with some other child. Application 2 Develop an algorithm, again using pseudocode, which al impoverisheds the substance abuser to comment a variable number of examination marks, calculates the median(a) and ingrains the fairish and the bowed examination marks in descending arrange. delinquent to these problems we must de velop some steps in a pseudocode form which whence could be converted into a elect computer talking to -possibly Pascal, C++, Fortran, etc. The steps of excogitation the algorithm for each problem are written in plain slope suitable for the user to convert them into a computer language. For Application 1: tone 1: get off process Step 2:Select a number from 1 to 100. Step 3:Repeat the following until 10 times have elapsed. (loop statement) Step 4:Prompt the user to enter a number from 1 to 100 and read it. Step 5:Compare the entered number with the one haphazard chosen. Step 6:If the dickens numbers are touch do. (loop statement) Step 7:exit loop else Step 8: sucker weather the number is too high/low from selected one. Step 9:If entered number bigger than selected do (loop statement) Step 10:print: the number is higher. else Step 11:print: the number is... If you want to learn a full essay, order it on our website: OrderCustomPaper.com

If you want to get a full essay, visit our page:
write my paper

No comments:

Post a Comment