Posted at 19:36h
in
Uncategorized
by admin
Question 1:
Please use for loop to create the multiplication table program. After asking which table the user wants, ask her how high the table should go. The output should look like this:
Sample Input:
Which multiplication table would you like? 7
How high do you want to go?...
Posted at 19:24h
in
Uncategorized
by admin
Question 1:
Write a program for a movie theater using while loop. It will keep asking your age and display the ticket price, until you enter “quit”. It is free if you are less than 3 years old, otherwise if your age is less than 16...
Question:
write a program to ask user about the date(year, month and day), then calculate the day of the year.
Sample input:
Year: 2016
Month: 6
Day: 23
Sample output:
Day of the year: 175
Hint:
You need consider leap years and non leap years, in order to do easier calculation, you may...
Posted at 19:19h
in
Uncategorized
by admin
Add two menu buttons in the calculator application we built in the last class. Make sure when we click the first menu button it should print “Menu 1 clicked” and when you click the second menu button it should print “Menu 2 clicked”
Below image shows...
Question 1:
Most likely, you will notice that you have a mouse attached to your computer, which lets you move the cursor around the screen. Your job is to get between the mouse and the cursor.
Suppose that the bottom left-hand corner of your screen is (0,0),...
Posted at 02:30h
in
Uncategorized
by admin
Question:Create a Time class and initialize it with hours and minutes.
Make a method addTime which should take two time object and add them. E.g.- (2 hour and 50 min)+(1 hr and 20 min) is (4 hr and 10 min)
Make a method displayTime which should print...