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

Hey, I hope you are well.

Can you explain me the conversion from for loop to while loop vice versa in Python and Java? (As well as giving the examples of Recursive Function or Fruitful Functions)


Write a java program that accepts given n number of marks for a PRG510S test, and stores them into an array named marks. After all marks have been entered your program should accomplish the following: 

[- to be provided by user input]

a)   Find and display the highest mark

b)   Find and display the lowest mark

c)    Compute and display the average mark

(Above tasks (a, b, and c should be accomplished using only one loop)


Write a program that rolls a pair of dice until the sum of the number rolled is a specific number. we also want to know the number of times the dice are rolled to get the desired number. the smallest number or each die is 1 and the larges number is 6. so the smallest sum of the numbers rolled is 2 and the largest sum of the numbers rolled is 12. we use the random number generator, to randomly generate a number between 1 to 6.

A. Create a statement that randomly generates a number between 1 to 6 and stores that number into die1, which becomes the number rollled by die1

B. Similarly, create a statement that randomly generates a number between 1 to 6 and that number into die2, which becomes the number rolled by die2.

C. Next, determine whether sum contains the desired sum, then we roll the dice again.

D. Create a method named rolldice that takes as a parameter the desired sum of the numbers to be rolled and returns the number of times the dice are rolled to roll the desired sum.


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.
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) and where the user must enter atleast one cap character in the text field if not it returns an error.
Write a Java program that the user can enter thier name, account number, account balance and credit account.

create a program that is expected to monitor access and attempted accesses to your network. All logon activities should be logged. All passwords should have a minimum length of 6 characters and they should use a mixture of letters, numbers and capital letters. Users are required to change their password every 30 days. All users are to get 700 MB secure storage space on the server for personal use. All home folders must be protected in such a way that only the owner can access his/her home folder. All users except those in production should be able to retain their individual settings regardless of the workstation they are using. Users in Production should not be able to change their individual setting and any changes should be discarded on log off. 


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. Basically an error class for any sort of input from the user where we would expect them to make a mistake.
Write a program to find the counseling slot based on the student's Cutoff marks, age, HSC and SSLC marks

Write the java Program to reverse the letters present in the given string.


LATEST TUTORIALS
APPROVED BY CLIENTS