1 Textbox
3 Radio buttons
2 buttons
6 Labels
1 List box
2 panels
5 Checkboxes
Code must be written to respond to the user clicking on the buttons, radio buttons and check boxes.
Write a Python program that asks the user to enter a store’s sales for each day of the week. The sales amounts should be stored in a list. Use a loop to calculate the total sales for the week and display the result. Do not use built-in Python function like sum to perform the calculation
Write a python program to compute the smallest
number that is divisible by 2 inputed numbers using (while, for, break or continue)Write a Python program which have number (73421):
You should calculate (7 + 3 + 4 ….):Write a program to display only those numbers from a list[12, 75, 150, 180, 145, 525, 50] that satisfy the following conditions
The number must be divisible by five
If the number is greater than 150, then skip it and move to the next number
If the number is greater than 500, then stop the loopCompute and display the output of the Area (A) of a rectangle, based on
inputted value for length (L) and the width (W).
Formula: A = L * W
Flowchart to C++ code
The program shall:
• generate a random number from 1 to 50 for a player to guess;
• display a message that indicates whether the player's guess is correct, too low, or too high; • prompt the user to keep on guessing until the correct value is entered
4. Create a try-catch structure that will handle two (2) exceptions. These are when the user inputs the following:
• a number that is out of range (1 - 50) a letter or any non-numeric character
5. Prompt the user so that he can guess again if an exception is thrown.
6. Display the number of total guesses.
Note: An invalid input (when an exception is thrown) is not considered a valid guess or attempt.
Sample Output:
Guess a number from 1 to 50!
30
Too high. Try Again.
10
Too high. Try again
qwerty
Invalid input.
Guess a number from 1 to 50!
51
Out of range.
Guess a number from 1 to 50!
1
Too low. Try Again.
H=11.3cm is the height of the triangle.
B=8.7cm is the base of the triangle.
Create a class for the above triangle.
1.Create one default constructor.
2.Create four parameterized constructors .They would look
like-
·Constructor_name(double, double)
.Constructor_name(double, int)
.Constructor_name(int, double)
·Constructor_name(int, int)
3.Create one copy constructor.
4.Create a function which would show the area of the triangle.
5.Create a destructor.
Call each of the functions from main functions. Call Constructor
name(do.
int) using pass by value and Constructor name(int, double) by
pass by
reference.
Real life example of static data member in class
Write a program to display the first 7 multiples of 7 using both(for, while) loops