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.
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 functiondeposit(int amount) : returns int
withdraw(int amount) : returns int-----------Implement the above interface using Customer ClassAttributes of Customer class
customerName : String
transactionType : String
baseAmount : intaccessor methods , Parameterized Constructor for initializationOverride the methods, deposit should add the amount with baseAmount and withdraw should subtract --------------------main method Class CustomerProcessUse 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 scannerbased on transactionType you can call the methods 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.