Questions
Using java you have to create a simple program that will allow for the storage of...

Using java you have to create a simple program that will allow for the storage of requests for money. Each request will consist of a person's name and dollar amount (US dollars). The business rules are straight forward. Each name should be a first and last name. The first letter of each element in the name should be capitalized. The dollar amount should be between 1 and 1000 dollars and include cents (2 decimals). You should include validations, but it will be left to you to decide if they will methods in the data entry program, or methods from a validation class. The data entered for each request should be written to an encrypted file. Use combo boxes and "good lists" where appropriate. Throw exception objects to handle errors and fail securely.

In: Computer Science

What is a potential solution for an Array that contains these lines to find a regex...

What is a potential solution for an Array that contains these lines to find a regex solution first names only and a separate regex solution for last names? (PYTHON)

John Doe

John, E. Doe

John, E., Doe

John, Doe E.

John, Doe

Jo hn, Doe Jr. (first name is "Jo hn")

John, Doe III

John, E Doe

Expect OutPut (bolded - first name (1st regex), italicized - last name (2nd regex))

John Doe

John, E. Doe

John, E., Doe

John, Doe E.

John, Doe

Jo hn, Doe Jr. (first name is "Jo hn")

John, Doe III

John, E Doe

In: Computer Science

Three employees in a company are selected for a pay increase. You are given a file...

Three employees in a company are selected for a pay increase. You are given a file (salaries.txt) that contains three lines. Each line in the file consists of an employee’s last name, first name, current salary, and percent pay increase. For example, in the first line, the last name of the employee is Miller, the first name is Andrew, the current salary is 65789.87 and the pay increase is 5%. Write a program that reads data from the file and stores the output in another file. The output data must be in the following format: FirstNameInitial lastName updatedSalary Format the output of decimal number to two decimal places. For example, the first line in the output may look like the following: A. Miller 69079.36 I want help to solve it on netbeans


java programing language

In: Computer Science

Consider the following java class: class Student {    private int student_Number;    private String student_Name;    public Student(int...

Consider the following java class:

class Student {
   private int student_Number;
   private String student_Name;
   public Student(int stNo,String name) {
        student_Number=stNo;
        student_Name=name;
     }
    public String getName() {
      return student_Name;
    }
     public int getNumber() {
      return student_Number;
     }
    public void setName(String st_name) {
      student_Name = st_name;
    }
}

Write a Tester class named StudentTester which contains the following instruction:

  1. Use the contractor to create a student object where student_Number =12567, student_Name = “Ali”.
  2. Use the setName method to change the name of the student to “Ahmad”
  3. Print the student details(i.e., student’s name and student’s number).

Note:

Include the screenshot of the program output as a part of your answer. Otherwise, you will be marked zero for this question.

In: Computer Science

Write program#1 upload .java file. #1 Write a java program that prompts the user for input...

Write program#1 upload .java file. #1 Write a java program that prompts the user for input using the Scanner class. First to enter their first name. Then prompts the user to enter their last name. Then prompts the user to enter their city. Then prompts the user to enter their state. Then prompts the user to enter their zip code. Concatenate first name and last name into full_name. Using String Class is optional. Use the String Class to replace zip code "0" with "N", replace "7" with "J". Use the String Class to make all the values upper case. Use the String Class to determine the length of full_name. Print on first line full_name and length of full_name. Print all on second line mailing address, including zip_string?

In: Computer Science

(1) Create three files to submit. ContactNode.h - Class declaration ContactNode.cpp - Class definition main.cpp -...

(1) Create three files to submit.

  • ContactNode.h - Class declaration
  • ContactNode.cpp - Class definition
  • main.cpp - main() function

(2) Build the ContactNode class per the following specifications:

  • Parameterized constructor. Parameters are name followed by phone number.

  • Public member functions

    • InsertAfter() (2 pts)
    • GetName() - Accessor (1 pt)
    • GetPhoneNumber - Accessor (1 pt)
    • GetNext() - Accessor (1 pt)
    • PrintContactNode()
  • Private data members

    • string contactName
    • string contactPhoneNum
    • ContactNode* nextNodePtr


Ex. of PrintContactNode() output:

Name: Roxanne Hughes
Phone number: 443-555-2864


(3) In main(), prompt the user for three contacts and output the user's input. Create three ContactNodes and use the nodes to build a linked list. (2 pts)

Ex:

Person 1
Enter name:
Roxanne Hughes
Enter phone number:
443-555-2864
You entered: Roxanne Hughes, 443-555-2864

Person 2
Enter name:
Juan Alberto Jr.
Enter phone number:
410-555-9385
You entered: Juan Alberto Jr., 410-555-9385

Person 3
Enter name:
Rachel Phillips
Enter phone number:
310-555-6610
You entered: Rachel Phillips, 310-555-6610


(4) Output the linked list. (2 pts)

Ex:

CONTACT LIST
Name: Roxanne Hughes
Phone number: 443-555-2864

Name: Juan Alberto Jr.
Phone number: 410-555-9385

Name: Rachel Phillips
Phone number: 310-555-6610

main.cpp

#include <iostream>
using namespace std;

int main() {

/* Type your code here. */

return 0;
}

ContactNode.cpp

ContactNode.h

How do you write this code?

In: Computer Science

code in C Step 1 Write a program that will read in a list of addresses...

code in C

Step 1

  • Write a program that will read in a list of addresses (100 maximum) from a file.
  • The program should read records from a file until an EOF is found.
  • The program must read one character at a time from the file using fgetc.

For example: chrLetter = fgetc( pfilInput );

  • No partial addresses/records will be given.
  • The format of the addresses is: RecordID, Full Name, Street, City, State, ZipCode

Step 2

  • Store the addresses in an array of structures.
  • Use the typedef below
  • You will have to parse the input lines to separate the fields.
  • You will have to separate full name into first, middle and last name.
  • Trim all leading and trailing whitespace for EACH field.

typedef struct

{

      long lngRecordID;

      char strFirstName[ 50 ];

      char strMiddleName[ 50 ];

      char strLastName[ 50 ];

      char strStreet[ 100 ];

      char strCity[ 50 ];

      char strState[ 50 ];

      char strZipCode[ 50 ];

} udtAddressType;

Step 3

  • Call a subroutine from main and pass the array of structures as a parameter. In the subroutine, load all the addresses from the file into the array of structures.

Step 4

  • Call a subroutine from main and pass the array of structures as a parameter. In the subroutine, print out all the addresses. Make it look pretty. Don’t print out blank records. For example:

------------------------------------------------------------

Customer #1

            First Name:          Luke

            Middle Name:      

            Last Name:          Skywalker

            Address:              123 Elm Street

            City:                    Corusant

            State:                  Ohio

            Zip Code:             45202

------------------------------------------------------------

Customer #2

Extra Credit

  • After you read in the addresses call a subroutine to sort the addresses alphabetically by last name, first name. Try the quick sort in the STL (standard template library).

Extra Extra Credit

  • Eliminate any duplicates addresses (just check street and zip code).

In: Computer Science

PLEASE READ ALL OF THESE INSTRUCTIONS BEFORE BEGINNING THIS ASSIGNMENT. For this assignment, you need to...

PLEASE READ ALL OF THESE INSTRUCTIONS BEFORE BEGINNING THIS ASSIGNMENT. For this assignment, you need to analyze the information below from BOTH the management AND the employee perspective. This information pertains to a labor union in a simulated/made up/not real firm in Glen Ellyn. The first part of your information relates to Management – the second part relates to the Labor Union employees. I have provided you with information from the last union negotiations at the plant in 2016. It is now time to begin preparing for negotiations for 2020 and beyond. The third part of this assignment is your analyzing what you have gained from this assignment.

Your assignment needs to include the following information:

  • Part One:
    • Considerations for Management as they begin to prepare for negotiations
    • Beginning offer to the plant workers - This means if you were management for this firm, what would your initial/first offer be to the labor union employees in each of the categories below.
  • Part Two:
    • Considerations for Labor Union employees as they begin to prepare for negotiations
    • Beginning offer to management - This means if you were the employees in the union, what would your initial/first offer be to the management of the firm in each of the categories below.
  • Part Three:
    • Analysis of what you have gained from this assignment and insights you now have into labor union negotiations. Understand that negotiations go on and on sometimes for years. But each set of contract negotiations has to begin somewhere - and this is what I'm having you look at in this assignment. First offers don't include what you really want - it's your starting point.

Format this assignment using the section headings noted as you see below with “Management” and the “CPFac Workers Labor Union”. Be very clear about the information required above.

Management –

Put yourself in the role of President and Owner of Cooper Plastics Corp. located in Glen Ellyn, Illinois. Cooper manufactures plastic cups, plates, silverware, bowls, etc.

There is a union, CPFacWorkers, representing the 95 factory workers at Cooper Plastics.

It is time for the management team at Cooper to once again negotiate with the CPFacWorkers.

Your negotiations document needs to include the following for BOTH Management and the Union - you must include these categories for both offers:

  • Length of the next contract in years - Labor contracts are frequently 2-4 years in length
  • Base pay
  • Annual pay increases for each year of your labor contract
  • Shift pay differential
  • Overtime pay
  • Number of workers per shift
  • Benefits percentage of salaries
  • Annual paid sick days
  • Annual paid holidays
  • Total increased costs - calculate how much your increases are going to cost you - you need to provide me a total of costs and how you arrived at that number
  • Source of money for increased costs - where is the money coming from for these increased costs - this is obviously an assumption based on the information you have

Data from Current Contract, which expires in September 2020:

  • Contract began in March 2016
  • CPFacWorkers conceded to 20 layoffs when negotiating the 2016-2020 contract
  • Remaining workers agreed to a 10% pay cut to help the company continue to recover from the recent US recession
  • Sick days were reduced from 10 to 6
  • Holidays reduced from 10 to 6
  • Shift differential pay (The dates show you the increases/decreases throughout the contract)

/hour

  • 7am-3pm shift – 50 workers - $1,040,000
  • 3pm-11pm shift – 30 workers - $624,000
  • 11pm-7am shift – 15 workers - $312,000
  • Managers – 10 @$30K, 2 @ $40K, 1@$50K, Pres/Owner $75K
  • Overtime – time and a half; 2017-2019 no OT has been worked

Sales:                                                              Profits:

  • 2016 $4,000,000                                          2016 $1,040,000
  • 2017 $5,250,000                                          2016 $2,392,000
  • 2018 $6,000,000                                          2018 $3,300,000
  • 2019 $6,200,000 2019 $3,400,000

CPFacWorkers Labor Union –

Now, put yourself in the role of the negotiating team representing the CPFacWorkers labor union at Cooper Plastics in Glen Ellyn, Illinois. Cooper manufactures plastic cups, plates, silverware, bowls, etc. There are a total of 95 factory workers in the bargaining unit of your union.

It is time to negotiate with the Cooper Plastics management team.

Your negotiations document needs to include the following - you must include these categories in both offers:

  • Length of contract in years
  • Base pay
  • Annual increases
  • Shift pay differential
  • Overtime pay
  • Number of workers per shift
  • Benefits percentage of salaries
  • Annual paid sick days
  • Annual paid holidays
  • Total increased costs
  • Source of money for increased costs

Data from Current Contract, which expired in September 2020:

  • Contract began in March 2016
  • CPFacWorkers conceded to 20 layoffs when negotiating the 2016-2020 contract
  • Remaining workers agreed to a 10% pay cut to help the company recover from the recent US recession
  • Sick days were reduced from 10 to 6
  • Holidays reduced from 10 to 6
  • Shift differential pay:
    • 3pm-11pm   $0.50 3/15-3/16 $.25 3/17-3/19
    • 11pm-7am    $1.00 3/15-3/16 $.35 3/17-3/19
  • Benefits are 28% of salaries

Current Salaries based on 2080 hours per year, base pay $10/hour

  • 7am-3pm shift – 50 workers - $1,040,000
  • 3pm-11pm shift – 30 workers - $624,000
  • 11pm-7am shift – 15 workers - $312,000
  • Managers – 10 @$30K, 2 @ $40K, 1@$50K, Pres/Owner $75K
  • Overtime – time and a half; 2017-2019 no OT has been worked

Sales:                                                              Profits:

  • 2016 $4,000,000                                          2016 $1,040,000
  • 2017 $5,250,000                                          2017 $2,392,000
  • 2018 $6,000,000                                          2018 $3,300,000
  • 2019 $6,200,000 2019 $3,400,000

Other Considerations:

  • The United States appears to have come out of its 2008-2010 recession, though there are those who are beginning to say it will return in 2020 as recent stock market fluctuations may confirm.
  • Cooper has new products scheduled to be coming out in mid-2020 which may help stimulate growth in the firm’s revenues and profitability.
  • Management at Cooper does all hiring, scheduling, firing, and promotions.
  • It has become increasingly difficult to get employees to work the 3-11pm and 11pm-7am shifts. Absenteeism is high on these shifts and productivity on both of these shifts are lower than on the 7am-3pm shift.

When complete, click on the assignment name link to submit the assignment for grading.

In: Operations Management

If you boil a protein in hydrochloric acid it will break down to its constituent amino...

If you boil a protein in hydrochloric acid it will break down to its constituent amino acids. Assume that you had done this to a typical protein and then had spotted these amino acids to a spot on the chromatograph. What pattern would you expect to see at the end of the experiment? Explain your prediction.

In: Chemistry

4. Given the information in Question 3, y = −0.8 m, use the quadratic formula to...

4. Given the information in Question 3, y = −0.8 m, use the quadratic formula to solve for t1 and t2. Note: It is unlikely that you will finish the experiment if you are not able to solve this type of quadratic equation. (20 pts)
(Continued on back page)
y=y0 +v0yt+.5ayt2

In: Physics