Create a java application that stores employee details

Assignment Help JAVA Programming
Reference no: EM131154606

Module Using Operators, Arrays, and Constructs Lab

In this lab, you will complete three tasks related to multidimensional arrays and loops. The tasks performed in this lab will help you understand how to program common array operations and simplify programming by using loops.

Task 1-

Write a Java program with the following functionalities:

  • It should use a one-dimensional array.
  • It should enable the user to search for an element in the array.
  • If the element is found, it should display the number of occurrences.
  • If the element is not found, an error message should be displayed.

Task 2-

Create a Java application that stores and maintains the employee details, including employee ID, employee name, department, designation, marital status, and date of marriage, in a multidimensional array. The application should have the following functionalities:

  • When the user selects the enter data option, the inputs should be accepted.
  • Date of marriage should be accepted only if the employee' marital status is entered as "married."
  • When the user selects the view data option, all the employee details should be displayed.
  • When the user selects the exit option, the application should terminate.

Task 3-

Write Java programs to display the following patterns by using loops:

1252_Figure.png

Evaluation Criteria:

Your submission will be evaluated against the following criteria:

For Task 1

  • Does the code use a one-dimensional array?
  • Does the code enable the user to search for an element in the array?
  • Does the code display the number of occurrences if the element is found?
  • Does the code display an error message if the element is not found?
  • Is the code readable and documented?

For Task 2

  • Did you create a Java application that stores and maintains the employee details?
  • Does the code meet all the functional requirements?
  • Is the code readable and documented?

For Task 3

  • Did you write Java codes to display all three patterns?
  • Did you write the code using loops?
  • Are the codes readable and documented?

Reference no: EM131154606

Questions Cloud

Brochure-talk about international communication in japan : I need to talk about international communication in Japan, Put the information together in one brochure, The information includes two sources, outline cultural difference of the country japan that might impact international business dealing
What is the original premise of sas culture : What is the original premise of SAS culture? What is the importance of the SAS culture on work/home balance
What expectations do your audience members have : What expectations do your audience members have in relation to your speech? What are possible beliefs audience members have about you according to your demographic qualities? What environmental factors might shape the way your audience members respon..
Essay - value of dissent in our society : Write an essay on one of the given topics, it must not exceed from words. Online Learning: A Boon(2500 Words with reference) and Value of dissent in our society (2500 Words with reference)
Create a java application that stores employee details : SD2720: Module Using Operators, Arrays, and Constructs Lab. Create a Java application that stores and maintains the employee details, including employee ID, employee name, department, designation, marital status, and date of marriage, in a multidim..
Create a new class called idealweight : CSC 1760 Introduction to Programming. In the new package, create a new class called IdealWeight. Make sure your new class is fully defined and has a main method. This class will calculate the ideal weight (and the acceptable ranges) of both males..
Write a computer program to automatically analyze data : For this assignment, you have been asked to write a computer program to automatically analyze some of the data collected by some experiments. Data analysis in scientific research is a complicated endeavor, so we will simplify our task by just calc..
Write a java program with the given functionalities : Write a Java program with the following functionalities: It should use a one-dimensional array. It should enable the user to search for an element in the array
Design and implement the class day : Design and implement the class Day that implements the day of the week in a program. The class Day should store the day, such as Sun for Sunday. The program should be able to perform the following operations on an object of type Day: Set the day

Reviews

Write a Review

JAVA Programming Questions & Answers

  Create an application called registrar

Create an application called Registrar that has the following classes: A Student class that minimally stores the following data ?elds for a student and An Instructor class that minimally stores the following data ?elds for an instructor

  Use of width and height attributes in an element

Which of the following will occur if you do not use the width and height attributes in an element?

  Write a class array that encapsulates an array

Write a class Array that encapsulates an array and provides bounds-checked access. The private instance variables should be int index and inarray[10]. The public members should be a default constructor and methods (signatures shown below) to provide ..

  Creates a temporary array as part of merging

The textbook's Sorts.java merge() method creates a temporary array as part of merging, which is wasteful of computer memory. An alternative would be to store data to be sorted in a linked list rather than an array and to merge "in place" within th..

  Develop a set of classes for a college

Person: A Person contains a first name, last name, street address, zip code, and phone number. The class also includes a method that sets each data field and display method that displays all of a Person's information.

  All your code should be in the main method

Write a Java test program, all your code should be in the main method, that asks the user for two numbers representing an investment value and interest rate

  How to creates a components

How to load Pictures, Images or Photos Files and Java source code files all together into JCREATOR WORKSPACE

  Create the mouse program

Question 1: Create the Mouse program. Test it with interesting data. Question 2: Modify the MouseDriver program you just created in Question #1. Currently, it uses the same value of growthRate for both mice. Change the program so it accepts a d..

  Demonstrate the use of array or arraylist

It will calculate the additional amount of sales that each salesperson must achieve to match or exceed the higher of the two earners. The application should ask for the name of each salesperson being compared.

  Program that will calculate monthly mortgage payments

Consumers think of the term of the loan in years, not months.  It would still be good to tell them how many monthly payments they will be making.

  Write function in javascript to compute person-s gross pay

Write the function using JavaScript syntax to compute a person's gross pay for a week. The function should receive the number of hours worked and the rate of pay per hour.

  Write a method named longestword

Write a method named longestWord that accepts a String as its parameter and returns the length of the longest word in the string.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd