Question 1
Write a method that does not take any argument nor does it return a value. The method only displays the following text.
+---------------------COMP100------------------------+
| a) Working with Newton's Law |
| b) Height Converter |
| c) Sine and Cosine Table |
| d) Number Frequency |
| |
| x) To exit the program |
+----------------------------------------------------+
Press the letter corresponding to your choice->
Question 2
In your Main() method, using a suitable looping structure, write the code to call this method repeatedly. Using a suitable branching structure, write the code to implement the following required functionality for all valid responses. Valid responses include both upper and lower case of the input. The following must be implemented:
· A will call the DemoQuestion3() method
· B will call the DemoQuestion4() method
· C will call the DemoQuestion5() method
· D will call the DemoQuestion6() method
· X will terminate the program
· Any other key will produce an error message
Question 3
“Newton's law of universal gravitation states that every point mass in the universe attracts every other point mass with a force that is directly proportional to the product of their masses and inversely proportional to the square of the distance between them.”