apply the following looping statement : for loop, while loop, and do while loop
Write a program that calculates and produces these two columns sequence numbers using the three looping statements:
Sequence nos. Squared
1 1
2 4
3 9
4 16
5 25
Write a program to scan a number n and then output the sum of he powers from 1 to n.
Thus, if the input is 4, the output should be 288 because:
11 + 22 + 33 + 44 1 + 4 + 27 + 256 = 288
1st Solution – using for loop
2nd Solution – using while loop
3rd Solution-‐ using do while loop
Create a Windows application that contains two textboxes and three buttons. One of the textboxes and one of the buttons are initially invisible. The first textbox should be used to input a password. The textbox should be masked to some character of your choosing so that the characters entered by the user are not seen on the screen. When the user clicks the first button, the second textbox and button should be displayed with a prompt asking the user to reenter his or her password. Set the focus to the second password textbox. Now, when the user clicks the second button, have the application compare the values entered to make sure they are the same. Display an appropriate message indicating whether they are the same. Once the check is made, display a third button that resets the form
Cargo Manager is a comprehensive cargo management module, designed for
addressing the areas of General cargo, Bulk cargo operations through Aviation. All the
aspects of cargo like documentation handling, movement, and storage are addressed in
this module.
Use if statement and Write a program that computes and assesses the tuition fee of the
students in one trimester, based on the given mode of payment below:
Plan (key) Discount (-) or Interest (+)
Cash (1). 10% discount
Two-Installment (2) 5% discount
Three-Installment(3) 10% interest
The target-user must use the key in selecting or choosing the mode of payment. The first input
data is the tuition fee, and the second input data is the mode of payment.
Create a console application which can be used to read in and do some calculations on marks.
Open the file Marks.dat, review this file and take note of the following:
Each line of the file is representing the details for a specific student, namely: student number, name, quiz average, prac average and test mark
Your application should read in the details from the file, create a student object for each student and add the objects to a list of students
In an Application console Project, Give instructions that:
- Create a class "Person"
- Create two classes “Student” and “Teacher”, both inherit from the class "Person".
- The class "Student" will have a public method "GoToClasses", which will display on the screen "I’m going to class. ".
- The class "Person" must have a method "SetAge (int n)" which will indicate the value of their age (for example, 20 years old).
- The class "Student" will have a public method "DisplayAge" which will write on the screen "My age is: XX years old".
- You must create another test class called "Test" which will contain "static void Main()" .
- Create a Person object and make it say "Hello"
- Create a Student object, set its age to 20, make it say "Hello", “I'm going to class. And display his age. - Create a Teacher object, 50, ask him to say "Hello" and then begin the course.
Write a program that computes and assesses the tuition fee of the
students in one trimester, based on the given mode of payment below:
Plan (key) Discount (-) or Interest (+)
Cash (1). 10% discount
Two-Installment (2) 5% discount
Three-Installment(3) 10% interest
The target-user must use the key in selecting or choosing the mode of payment. The first input
data is the tuition fee, and the second input data is the mode of payment.
Sample input/output dialogue:
Enter tuition fee: 20,000 Input data
(Press 1 for Cash, 2 for Two-Installment, 3 for Three-Installment)
Enter mode of payment: 2 Second input data
Your total tuition fee is: 19,000 Output data
Write a program with switch statement that accepts an input grade in percentile and grade equivalent table
Write a program that involving 2 hash sets populate with 5 members coming from the user. Perform the set operation (UNION, INTERSECTION)