Java | JSP | JSF Answers

Questions answered by Experts: 3 611

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search

Create a program that takes in a student first name and average mark obtained, the system should the group the students using the first letter in their name modulus 10 [ Remember that characters are considered as numeric values, hence ‘J’%10 is a valid calculation ]. For example if the student name is Cena, then the student belongs to group 7 because ‘C’%10 = 7 and if the name was Jack then the student belongs to group 4. The program should further use the group number to get the group lecturer and class date as follows: [Hint: If the result is 0 then the student belongs to group 10]

 

 

 Groups

Group Lecturer

Class date

1 , 7, 9

Mrs. T. Chikohora

Monday

2 , 4, 5

Mrs. J. Muntuumo

Wednesday

3, 6, 10

Mr. S. Tjiraso

Friday



Using a whole loop create a that calculates the monthly salaryof N [ where N is the number if employees that's entered by the user.] If the employee worked less or equal to 160 hours, the employee wilk be paid N$240.00 per hour. For any hour greater than 160, the employee is paid N$320.00 per hour.


Output The first line will contain a message prompt to input the first number. The second line will contain a message prompt to input the second number. The third line will contain a message prompt to input the third number. The last line will contain the largest among the three numbers.

Using a while loop create a program that calculates the monthly salary of  N employees[where N is the number of employees that's entered by the user]. If the employee worked less or equal to 160 hours, the employee will be paid N$240.00 per hour. For any hours greater than 160, the employee is paid N$320.00 per hour.


Create an interface named iBanking with the following function


deposit(int amount) : returns int
withdraw(int amount) : returns int


-----------


Implement the above interface using Customer Class


Attributes of Customer class
 customerName : String
 transactionType : String
 baseAmount : int


accessor methods , Parameterized Constructor for initialization


Override the methods, deposit should add the amount with baseAmount and withdraw should subtract 



--------------------


main method Class CustomerProcess


Use iBanking interface to access the deposit and withdraw for one customer with below attributes
customerName : Yourname
transactionType : read using scanner (withdraw or deposit)
baseAmount : read using scanner


based on transactionType you can call the methods 
Write a general error handling class that has general functions that would take in a string, which the main pages would get as an input and those functions can search for specific things. For example: any sort of input from the user where we would expect them to make a mistake( like where they enter numbers into their name in user login).

a)   Draw a flowchart, lastLargestIndex, that takes as parameters an int array and its size and returns the index of the last occurrence of the largest element in the array.


Draw a flowchart (cellphone) so that it uses the following methods to calculate the billing amount. (In this programming, do not output the number of minutes during which the service is used.)

a. regularBill: This method calculates and returns the billing amount for regular

service.

b. premiumBill: This method calculates and returns the billing amount for premium

service.



An applicant will accepted to the Jedi Knight Military Academy if he is least 200 cm. tall; age is between 21 and 25, inclusive; and a citizen of the Planet Endor. However, if the applicant is a recommendee of Jedi Master Obi Wan, he is accepted automatically regardless of his height, age and citizenship. Write a program that would input the applicant’s height, age, citizenship code(“C” for citizen of Endor, “N” for non-citizen), and recommendee code (“R” for recommendee, “N” for non-recommendee) and then output whether the applicant is accepted or rejected.
Using a while loop create a program that calculates the monthly salary of N employees[where N is the number of employees that's entered by the user]. If the employee worked less or equal to 160 hours, the employee will be paid N$240.00 per hour. For any hours greater than 160, the employee is paid N$320.00 per hour. Sample Run1 Enter number of employees(N):3 Hours worked 1: 160 Hours worked 2: 200 Hours worked 3: 80 Output1: Salary 1: N$38400.00 Salary 2: N$51200.00 Salary 3: N$19200.00 Sample Run 2 Enter number of employees(N):0 Output2: No employees provided to do calculations Sample Run 3 Enter number of employees(N):-4 Output 3: Number of employees cannot be negative
LATEST TUTORIALS
APPROVED BY CLIENTS