Write a Java GUI application that will keep track of student results at a local college. The application must contain the results that a student has obtained for a test, assignment and exam. Q.3.1 On the form create a list box that will allow the user to select the student ID populated from the text file. Also create a search button that when clicked will display the average, highest and lowest result according to the student number.Q.3.2 Create a sequential file (student.txt) that contains data for the following fields: The student ID number; The student test result; The student assignment result; The student exam result. Q.3.2 Load the data from the student.txt file and populate the list box with the student numbers. Q.3.3 Calculate the average result obtained by the student. Q.3.4 Determine the highest and lowest result that the student obtained from the three assessments.
Retail store has preferred Customer plan. The amount of customer discount is determined by amount of customercumulative purchases in store. When preferred customer spends $500, he gets 5% discount on future purchases. When preferred customer spends $1,000, he gets 6% discount on future purchases. When preferred customer spends $1,500, he gets 7% discount on future purchases. When preferred customer spends $2,000, he gets 10% discount on all future purchases. Design class named PreferredCustomer which is derived from CustomerData class. PreferredCustomer class have:purchasesAmount (a double) ,discountLevel (a double).The purchasesAmount variable holds total of customer’s purchases to date. The discountLevel variable should be set to correct discount percentage, according to store’s preferred customer plan. Also calculate discount Amount based on discount. Now in Main class create ArrayList and add customers into it and display the customers details, purchase of each customer along with discount he gets.
Solution in java ONLY plz... FULL question can be found on the following link http://ntci.on.ca/compsci/java/ch5/5_9.html ---> question 14
Thanks, appreciate it
I cannot put full question here as its too long... so full question is on the link
----------------------------------------------------------------------------------
Write a program that prints portions of Pascal's triangle. The program should repeatedly ask the user to supply the number of rows in the triangle, terminating when the user supplies the value zero. In printing a triangle, the first value in the last row should appear in the first column and each preceding row should start printing three spaces further right........
Create a program that will read the values of A and B. Compare the two values of A & B then print which of the values is higher including the remark "Higher".
Write a CGPA class that has a constructor for initializing four variables: name, matric number, level, and course of study, The program should have two other overloaded methods, one for collecting the credit unit of each course and the other for collecting points based on the grades of each student in each of the courses. Write a third method for calculating the CGPA of a number of students and return the names, matric numbers, levels, course of study, and their current CGPA, well-arranged (using format specifier if necessary). Execute the program using 5 records. Turn in the codes and a snapshot of the result on google classroom.
2. Where's the Biggest One?
by CodeChum Admin
We've already tried comparing 3 numbers to see the largest among all, so let's try a more complicated mission where we locate the position of the largest among 5 numbers. There are only 4 possible cases for this mission:
- if the largest digit is the first digit, print "Leftmost"
- if the largest digit is the third digit, print "Middle"
- if the largest digit is the last digit, print "Rightmost"
- if none of the above is correct, print "Unknown"
Now, show me how far you've understood your lessons!
Input
A line containing a five-digit integer.
1·4·6·3·2
Output
A line containing a string.
Middle
Construct a class Rectangle. Provide a constructor to construct a rectangle with a
given width and height, member functions get_perimeter and get_area that compute the
perimeter and area, and overload method to resize the rectangle. For example r*factor
(double factor) resizes the rectangle by multiplying the width and height by the given
factor.
Write a Java program named UseLoanItem that uses an abstract LoanItem class and
Book and DVD subclasses, to display the item type, item name and rental price of
two (2) separate loan items, one (1) of each type. Use constructors, with appropriate
arguments, in each of the classes. Include get and set methods, at least one (1) of
which must be abstract. Also include an abstract Print method in LoanItem that
returns a String for printing. Ensure you include implementation code for the Print
method in each of the subclasses
Write a Java GUI application that will keep track of student results at a local college. The
application must contain the results that a student has obtained for a test, assignment and exam.
Q.3.1 On the form create a list box that will allow the user to select the student ID
populated from the text file. Also create a search button that when clicked will
display the average, highest and lowest result according to the student number.
(5)
Q.3.2 Create a sequential file (student.txt) that contains data for the following fields:
The student ID number;
The student test result; The student assignment result;
The student exam result.
Q.3.2 Load the data from the student.txt file and populate the list box with the student
numbers.
(10)
Q.3.3 Calculate the average result obtained by the student. (8)
Q.3.4 Determine the highest and lowest result that the student obtained from the three
assessments.
Did you know that in lotteries, a 3-digit number with the same numbers in all digits like 777 will hit the jackpot in a casino? In the same manner, let's make a program that will test if a certain 3-digit number hits a jackpot or not by identifying if all the digits of a given number is the same as the second inputted number. If it is, print "Jackpot!"; else, print "Nah".
Let's try this out now!