Table 1 shows the assumed starting working age and Table 2 shows the verdict

Table 1 shows the assumed starting working age and

This preview shows page 2 - 4 out of 4 pages.

they assumably may have worked for. Table 1 shows the assumed starting working age and Table 2 shows the verdict for each years worked. Write a method that asks a user for an array of ages and prints out the age concatenated with the pension verdict as such: age:56~awardPension or age:32~noPension (10 marks). Age Range Assumed Start 25-30 23 31-40 25 41-60 19 61-70 20 Table 1: Assumed Starting Age Years Worked Verdict 5-10 Not Award 11-20 Award 21-30 Award 31-40 Maybe Award Table 2: Pension Verdict Question 3 (15 marks) A Fibonacci series is such that the sequence is the sum of the two numbers that precede it such that the sequence goes 0, 1, 1, 2, 3, 5, 8, 13 and so on. Write an executable program that: a) Asks a user for the first two items of a sequence as well as the length of series they wish to enter. (3 marks). b) Computes the sequence by add the previous two values and then push the new sequence to a stack that has the originally entered two values (3 marks). c) Converts the stack created into an array (3 marks). d) Prints the elements of the array and sleep every 5 seconds between each print out (3 marks). e) Prints out values the maximum value in the Fibonacci series (3 marks). Question 4 (15 marks) Consider the JSF graphical user interface below. The Long Token text field changes upon click of value change of the drop down in the menu item named Registered Users . Assuming there is a
Image of page 2

Subscribe to view the full document.

Page 3 of 4 bean named userBean and that there exists a database connection already as well as a table in the database name user a) Write a method that implements a value change listener, such that the value of Long Token text field changes upon the changing the name of the registered user, assuming the object is named user . (8 marks) b) Write a setter methods that will populate the form fields with the appropriate data from the Long Token text upon clicking the update button, assuming the object is named user . (7 marks) Question 5 (15 marks) a) During class break two of your classmate argue about the differences between distributed computing and cloud as used in object oriented programming. With aid of a diagram advise your classmate appropriately as to the clear definition, workings and differences of these
Image of page 3
Image of page 4
  • Spring '18
  • Daniel Machanje

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern

Ask Expert Tutors You can ask You can ask ( soon) You can ask (will expire )
Answers in as fast as 15 minutes