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 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 (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
In: Computer Science
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:
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 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.
(2) Build the ContactNode class per the following specifications:
Parameterized constructor. Parameters are name followed by phone number.
Public member functions
Private data members
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
For example: chrLetter = fgetc( pfilInput );
Step 2
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
Step 4
------------------------------------------------------------
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
Extra Extra Credit
In: Computer Science
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:
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:
Data from Current Contract, which expires in September 2020:
/hour
Sales: Profits:
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:
Data from Current Contract, which expired in September 2020:
Current Salaries based on 2080 hours per year, base pay $10/hour
Sales: Profits:
Other Considerations:
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 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 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