Get Instant Help From 5000+ Experts For
question

Writing: Get your essay and assignment written from scratch by PhD expert

Rewriting: Paraphrase or rewrite your friend's essay with similar meaning at reduced cost

Editing:Proofread your work by experts and improve grade at Lowest cost

And Improve Your Grades
myassignmenthelp.com
loader
Phone no. Missing!

Enter phone no. to receive critical updates and urgent messages !

Attach file

Error goes here

Files Missing!

Please upload all relevant files for quick & complete assistance.

Guaranteed Higher Grade!
Free Quote
wave
CS2107 Introduction to Information Security
Answered

Question:

Construct a solution algorithm for the following problems. Your solution should contain:

  • A defining problem
  • A pseudo code algorithm
  • A desk check of the algorithm
An Employee file contains the employee number, employee name, department number and their salary. The department number contains value 10, 20 and 30. Increment for the employee will be calculated depends on their department number. If the department number is 10, 20 and 30 salary increment will be 40%, 60% and 80% respectively. Construct an algorithm that will read a record on the file, calculate the salary increment for that record, and print the employee number, employee name, department number and new salary after increment.
 
A member records contains member name, gender (M or F), age (in years) and marital status (single or married) for each member. Design an algorithm that will read through the file and calculate the numbers of married men, single men, married women and single women. Print these numbers on member summary report. If any single men are over 30 years of age, print their names and ages on a separate eligible bachelors report.
 
Design an algorithm that will prompt for and receive the time expressed in 2400format (e.g. 2305 hours), convert it to 12-hour format (and display the new time to the screen. Your program is to repeat the processing until a sentinel time of 9999 is entered.

Introduction to Computer Science Part 2 (50 marks)

Implement the three questions algorithm in Assignment 1 into Java programming.

Your code should contain appropriate validations and must focus on code optimization.

support
close