Вы находитесь на странице: 1из 4

Generalising my problems and solutions

-------------------------------------1. Sum and product of two integers


->(Expanding basic operators)
-> Sum and product of two characters
-> Base 10, 2, 8, 16
-> Sum of strings
2. Monetary value of coins
-> (Converting units)
-> value of lengths(inches, foot), time(seconds, minutes, hours), date(days, wee
ks), years(years, decades, centuries, milleniums)
-> sum and product of them
3.Big Number
-> (Mastering output)
-> Output formatting every capital letters
E.g.
CCCCC
A
TTTTTTTTT
C
A A
T
C
A A
T
C
AAAAAAA
T
CCCCC A
A
T
-> Type in any alphabets and letters and return enlarge version of thems
-> Output shapes and patterns
4. Convert celcius to fahrenheit
-> Same as Q2
5.
->
->
->

How far an object would drop?


(Natural laws of Physics)
Solve Physics questions - free fall, angular rotation
Define Physics formula

6.
->
->
->

Letter
Formatted output texts and paragraphs
Insert values into texts and paragraphs
Format outputs in general (File I/O, char I/O)

7. How many cans of soda you can drink


-> Health problems
-> Quantifying risks
8. Loan installment
-> Bank problems
-> Interest rates, face value, compound rates
9.
->
->
->

PayRoll Problem
Income and tax
Electric bills, water bills
Fees and taxes (service tax, GST)

10. Sum and average of positive and nonpositive numbers


-> (Sum, subtraction, product, division) Long strings of numbers
-> Histogram
-> Filtering unwanted inputs, e.g. -1, and do operations

11. Astrology program


-> (Matching)
-> Birthday -> horoscope sign -> compatible signs
-> Lucks and fortunes
-> Update everyday
12. Exponential function and polynomial approximation
-> Calculating the value of pi, rho(Golden ratio), sqrt(2), sin, cos, tan and ot
her irrational numbers
-> Taylor series
13. Rock scissors paper
-> zero sum game
-> playing game, determining winners
14. Time machine
-> Calculating time differences
-> Circular calculation (Modular arithmetic)
15. Clothes size calculation
-> Conditional programming
16. Does the number contain this digit?
-> (Searching algorithm)
-> Searching for a digit through a number (maybe count its frequency too)
-> Or searching for a letter through a string (maybe get its frequency too)
-> Or searching for a digit/letter through a mixed string (including #@$~|{] cha
racters)
17. Prime Number
-> Print out the prime number under and including the specify number, e.g. all p
rime numbers <= 100
-> Prime number generator
- All prime numbers within a range
- First n prime numbers starting from x
-> Looking for prime numbers in taylor series
18. File I/O for input and checking
19. Hexadecimal addition
-> Number bases addition, subtraction, multiplication and division
-> Number bases convertion
-> Operations involving more than two numbers
20. Letter frequency
-> Read an input text until '.' and get all the frequency of all non-zero letter
s
21. Average and standard deviation
-> Statistics problem
-> Mean, mode, median, quartile, interquartile range, vaiance, standard deviatio
n, normal distribution, binomial distribution, Chi-Squared text
22. Histogram
-> Drawing graphs
-> 20 | *****
10 | ***

00 | *
-> * *
* * *
* * * *
------------0 10 20 30
-> Histrogram in different directions
-> Stem-leaves plot
23. Number to English literal
-> 1510 -> One thousand five hundred and ten
-> English literal to number
24. Histogram 2
-> Histogram facing upwards
-> Rotate output
25. Average score
-> Discard unwanted data and get average of the rest of the scores
-> Keep getting input until '-1'
26. Sorted list
-> (Sorting algorithm)
-> bubble sort, swaping sort
27. Decimal division
-> Very long integers division of two numbers
28. Format a paragraph
29. Count Word
30. Anti-sexist Language
-> (Delimiting words)
-> Whitespace, any punctuations
-> Count the words/ Replace the word
31. Delete repeated letters in a word
-> Delete repeated words in a sentence
32. Computer Labs
-> (Database management)
-> Login details (time, data, location)
-> Log history (frequency, number of users)
-> Station and lab as an object
33. Date Calculator
-> Computer Labs login and logoff
-> Horoscope
Classes to Implement:
--------------------1. Person
- Name
- Age
- Birthday -> Horoscope
- Gender
- Height, weight -> Clothes size
- Health risks -> Number of soda cans that a person can drink

2. Horoscope
- Birthday -> Horoscope -> Matching signs
3. Hexadecimal number (Number base in general)
- Add, substract, multiply, divide
- (Dealing with very large numbers)
4. English Sentence, English Paragraphs
- Format paragraph
- Count word
- Anti-sexist language
5. Statistics
- Sum, Mean, Variance,
6. Unit Converter
- Height, length, time, date, year, temperature
- Their sum and product
7. Physical Law
- Gravity

Вам также может понравиться