Computer Science Canada Questions that i do not understand |
Author: | sammy0261 [ Fri Apr 26, 2013 10:42 am ] |
Post subject: | Questions that i do not understand |
What is it you are trying to achieve? i need help solving these questions: What is the problem you are having? 1) Write a program that takes in two sides of a right angled triangle and outputs the length of the hypotenuse 2) Write a program that takes in two sides and an angle from a triangle and uses the cosine law to find the length of the third side 3) Write a program that takes in a price and breaks it into dollars and cents. For example: $9.32 -> 9 dollars and 32 cents. You will need to use DIV to get this to work. 4) Write a program that takes in A, B and C from an equation and finds the roots of the equation 5) Write a program that takes in A, B and C from an equation and finds the vertex of the parabola. The x-value of the vertex is . The y-value can be found by subbing the x-value back in to the initial equation 6) Calculate how much federal income tax a person will pay. You can get the tax rates from wikipedia (Canadian Income Tax). For bonus marks, work out the Ontario income tax as well. 7)Write a program that converts a numeric mark into a letter grade 8)Write Rock-Scissors-Paper 9)Find S10 for the series where 10)Find S15 for the series where 11)Find S20 for the series where 12)Add 2,5,8?302 13)Add 3,6,12,24 ?. 3072 14)Write a program that takes in the amount of money somebody invests, the number of years and an interest rate that calculates how much money somebody will have after several years. Display how much money a person will have after each year in a chart on the screen Years Money 11100 21210 31331 15)Write a program that calculates how much money a person will owe on their mortgage after several years. Take in a mortgage rate, an initial loan value and a monthly payment 16)Add the option to play again into your rock/scissors/paper program 17)Do the reverse guessing game. Have the player choose a secret number. The computer will guess numbers and the player will tell the computer if the secret number is higher or lower until the computer guess the number 18)Make an RPG style battle simulator 19) Write a program that outputs the ascii code for every letter of a word 20) Write a program that removes all of the spaces from a string 21) Write a program that removes all of the non-letter characters from a string 22) Write a program that takes in a string and ?ciphers? it => changes the letters so that they are one ascii code higher than they are. Numfactors (x: int) : int Counts the number of factors of a number 23) Function isinteger(x: real) : boolean Takes in a number and determines if it is an integer 24) Function isprime (x: int):boolean Takes in a string and determines if it is prime 25) function middle(x,y,z: int) : int Takes in 3 numbers and gives the number in the middle 26) ****Function isperfect (x: integer) : Boolean Takes in an integer and tells you if it is perfect. Look up what this means on the internet 27)does the list contain the number x |
Author: | Dreadnought [ Fri Apr 26, 2013 11:31 am ] |
Post subject: | Re: Questions that i do not understand |
Most of these require grade 9 math at most and basic knowledge of Turing. what exactly is it that you are having trouble with? |
Author: | Panphobia [ Fri Apr 26, 2013 2:20 pm ] |
Post subject: | RE:Questions that i do not understand |
Are you asking us to solve them for you? You have not shown anything you've done so far lol |
Author: | Dan [ Fri Apr 26, 2013 5:22 pm ] |
Post subject: | RE:Questions that i do not understand |
This site does not do homework for you. If you want help with a specific question tell us what problems you are having with it and what you have tried to solve it so far. |