Java | JSP | JSF Answers

Questions: 4 418

Answers by our Experts: 3 943

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 & Filtering

Using a for loop create a program that will prompts the user for two numbers and then print out a summation list of all the between the two given numbers, starting from the small number to the big number. For negative numbers use brackets when printing the summation



Printing triangles: Write a program which inputs a positive integer n and outputs an n line high triangle of '*' characters whose right-angle is in the bottom left corner. For example, if 5 is input the output should be



Sample Run1


Enter a positive integer: 5


Output1:


*


**


***


****


*****


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


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.


LATEST TUTORIALS
APPROVED BY CLIENTS