In this project you will create a basic console based calculator program. The ca

In this project you will create a basic console based calculator program.
The calculator can operate in two modes: Standard and Scientific modes.
The Standard mode will allow the user to perform the following operations:
(+, -, *, /) add, subtract, multiply, and divide
The Scientific mode will allow the user to perform the same functionality as the Standard
add, subtract, multiply, and divide (+, -, *, / ) plus the following:
sin x, cos x, tan x. (sin x, cos x, tan x)
The calculator should be able to perform addition, subtraction, multiplication, and division of two or more numbers but perform sin x, cos x, and tan x of one number only (the number is in radians).
1. The calculator program will first ask the user for the mode to operate in (Standard or Scientific)
Sample Output:
Enter the calculator mode: Standard/Scientific?
Scientific
2. The program should then ask the user for the operation to execute (+, -, *, /, sin x, cos x, tan x)
Sample Output for Standard mode:
The calculator will operate in standard mode.
Enter ‘+’ for addition, ‘-‘ for subtractions, ‘*’ for multiplication, ‘/’ for division
Sample Output for Scientific mode:
Enter ‘+’ for addition, ‘-‘ for subtractions, ‘*’ for multiplication, ‘/’ for division, ‘sin’ for sin x, ‘cos’ for cos x, ‘tan’ for tan x:
sin
2a. If the user enters an invalid operator, output a message telling the user the input is invalid and re-prompt the user for the operation again.
Sample Output for Scientific mode:
Enter ‘+’ for addition, ‘-‘ for subtractions, ‘*’ for multiplication, ‘/’ for division, ‘sin’ for sin x, ‘cos’ for cos x, ‘tan’ for tan x:
division
Invalid operator division
Enter ‘+’ for addition, ‘-‘ for subtractions, ‘*’ for multiplication, ‘/’ for division, ‘sin’ for sin x, ‘cos’ for cos x, ‘tan’ for tan x:
+
3. In order to know how many times the user will need to perform the operation, prompt the user for the number of floating point values they want to enter (All numbers in this program are double), then ask the user to enter the numbers.
Sample Output:
How many numbers do you want to add?:
3
Enter 3 numbers:
4
35
9
In this example the calculator will calculate 4 + 35 + 9. The calculated result will be 48.
The calculator should be able to perform the following operations:
2+3 = 5
2+6+1+1+1 = 11
1-2-90 = -91
10*2*3 = 60
10/2/5 = 1
cos(0) = 1
sin(0) = 0
tan(0) = 0
Note: This calculator does NOT support multiple operations of varying operators in the expressions like: 10+2-8
Note: Multiple numbers are only acceptable for the operations of (+, -, *, / ) not for (sin,cos,tan)
4. Display the result
Sample Output:
Result: 50.0
5. Finally, output the result to the user and ask the user if he/she wants to start over.
Sample Output:
Do you want to start over? (Y/N)
Y
Full Sample Output:
Enter the calculator mode: Standard/Scientific?
Scientific
Enter ‘+’ for addition, ‘-‘ for subtractions, ‘*’ for multiplication, ‘/’ for division, ‘sin’ for sin x, ‘cos’ for cos x, ‘tan’ for tan x:
addition
Invalid operator addition
Enter ‘+’ for addition, ‘-‘ for subtractions, ‘*’ for multiplication, ‘/’ for division, ‘sin’ for sin x, ‘cos’ for cos x, ‘tan’ for tan x:
+
How many numbers do you want to add?:
3
Enter 3 numbers:
4
35
9
Result: 48.0
Do you want to start over? (Y/N)
Y
Enter the calculator mode: Standard/Scientific?
Scientific
Enter ‘+’ for addition, ‘-‘ for subtractions, ‘*’ for multiplication, ‘/’ for division, ‘sin’ for sin x, ‘cos’ for cos x, ‘tan’ for tan x:
cos
Enter a number in radians to find the cosine
0
Result: 1
Do you want to start over? (Y/N)
N
Goodbye

Java program where the user inserts an excel file into the java maven project to

Java program where the user inserts an excel file into the java maven project to be processed and then to be sent to an access database where sql statements will be used for specific requests like searching for a specific bowler’s data. Using netbeans create a program to read/ log in data from excel into a java maven project and display the data in a jTable after putting the data into Access sql statements. There should also be help functions or a tutorial to show the user how to use the program and what to do if they run into an error or don’t know what to do. The program should consist of multiple jFrames: main jFrame where the user logs in via username and passw, 2’nd jFrame should consist of a jTable, a button to import a scorecard, 2 buttons saying bowling and batting for the user to decide what data they want, and buttons like exit and help, the jTable will then display either the batting or bowling data. 3’rd jFrame where the user has clicked batting or bowling and now the user can search for a specific player’s data. Not all the files have to be used for the program to function.

Java program where the user inserts an excel file into the java maven project to

Java program where the user inserts an excel file into the java maven project to be processed and then to be sent to an access database where sql statements will be used for specific requests like searching for a specific bowler’s data. Using netbeans create a program to read/ log in data from excel into a java maven project and display the data in a jTable after putting the data into Access sql statements. There should also be help functions or a tutorial to show the user how to use the program and what to do if they run into an error or don’t know what to do. The program should consist of multiple jFrames: main jFrame where the user logs in via username and passw, 2’nd jFrame should consist of a jTable, a button to import a scorecard, 2 buttons saying bowling and batting for the user to decide what data they want, and buttons like exit and help, the jTable will then display either the batting or bowling data. 3’rd jFrame where the user has clicked batting or bowling and now the user can search for a specific player’s data.

Java program where the user inserts an excel file into the java maven project to

Java program where the user inserts an excel file into the java maven project to be processed and then to be sent to an access database where sql statements will be used for specific requests like searching for a specific bowler’s data. Using netbeans create a program to read/ log in data from excel into a java maven project and display the data in a jTable after putting the data into Access sql statements. There should also be help functions or a tutorial to show the user how to use the program and what to do if they run into an error or don’t know what to do. The program should consist of multiple jFrames: main jFrame where the user logs in via username and passw, 2’nd jFrame should consist of a jTable, a button to import a scorecard, 2 buttons saying bowling and batting for the user to decide what data they want, and buttons like exit and help, the jTable will then display either the batting or bowling data. 3’rd jFrame where the user has clicked batting or bowling and now the user can search for a specific player’s data. The pase 1 2 and 4 doesnt have to be done, its only for a bit more backround

All info in JDBCproject.pdf. Requires access to a database. The database is atta

All info in JDBCproject.pdf. Requires access to a database. The database is attached as Company database.
You need to write a well-documented, well-structured and efficient Java program that utilizes JDBC to
generate the following reports. The project will use the COMPANY database as its structure and run on
the classroom environment.
Page one will be an executive summary. For each department in alphabetic order with the manager’s
name, list the project’s (managed by that department) name, total number and hours of all employees
working on the project and the total financial commitment.
Starting with the second you will build a break out report for each project. For each project under the
departments and the location of the project followed by a list of employees working on that
department. With each employee you will print their name, hours worked, financial commitment and
home town. Followed by a total for the projects. This total should match the totals from the first page.
Financial commitment (FC) is calculated as employee’s salary times the percentage of their work week
that is invested in that project. For example, let’s say an employee work 10 hours on a project and is
paid $20,000 then the FC = 20000 * (10/40) = $5,000.

Start a new class named Console in the same package as the FutureValueApp class.

Start a new class named Console in the same package as the FutureValueApp class. Then, move the getDouble(), getDoubleWithinRange(), getINT(), and getIntWithinRange() methods to the Console class. For this to work, you will also need to ass and import statement for the Scanner class to the Console class.
Modify the FutureValueApp class so it uses the methods in the Console class. Then, run the application to make sure it still works correctly.
Start a new class named FinancialCalculations in the same package as the other classes. then, move the calculateFutureValue() method from the FutureValueApp class to he FinancialCalculations class, and make sure that the method is public.
Modify the FutureValueApp so the it uses the static calculateFutureValue() method that’s stored in the FinancialCalculations class. Then, run the application to make sure that it still works properly.
import java.text.NumberFormat;
import java.util.Scanner;
public class FutureValueApp {
public static void main(String[] args) {
System.out.println(“Welcome to the Future Value Calculatorn”); //print Welcome..
Scanner sc = new Scanner(System.in);
String choice = “y”;
while (choice.equalsIgnoreCase(“y”)) {
// get the input from the user
System.out.println(“DATA ENTRY”);
double monthlyInvestment = getDoubleWithinRange(sc, “Enter monthly investment: “, 0, 1000);
double interestRate = getDoubleWithinRange(sc, “Enter yearly interest rate: “, 0, 30);
int years = getIntWithinRange(sc, “Enter number of years: “, 0, 100);
System.out.println();
// calculate the future value
double monthlyInterestRate = interestRate / 12 / 100;
int months = years * 12;
double futureValue = calculateFutureValue(monthlyInvestment, monthlyInterestRate, months);
// calling printFormattedResults method
printFormattedResults(monthlyInvestment, interestRate, years, futureValue);
choice = askToContinue(sc);
}
}
private static String askToContinue(Scanner sc) {
// see if the user wants to continue
System.out.print(“Continue? (y/n): “);
String choice = sc.next();
sc.nextLine(); // discard any other data entered on the line
System.out.println();
return choice;
}
//get within range
public static double getDoubleWithinRange(Scanner sc, String prompt, double min, double max) {
double d = 0;
boolean isValid = false;
while (isValid == false) {
d = getDouble(sc, prompt);
if (d <= min) { System.out.println("Error! Number must be greater than " + min + "."); } else if (d >= max) {
System.out.println(“Error! Number must be less than ” + max + “.”);
} else {
isValid = true;
}
}
return d;
}
public static double getDouble(Scanner sc, String prompt) {
double d = 0;
boolean isValid = false;
while (isValid == false) {
System.out.print(prompt);
if (sc.hasNextDouble()) {
d = sc.nextDouble();
isValid = true;
} else {
System.out.println(“Error! Invalid number. Try again.”);
}
sc.nextLine(); // discard any other data entered on the line
}
return d;
}
//get within range
public static int getIntWithinRange(Scanner sc, String prompt, int min, int max) {
int i = 0;
boolean isValid = false;
while (isValid == false) {
i = getInt(sc, prompt);
if (i <= min) { System.out.println("Error! Number must be greater than " + min + "."); } else if (i >= max) {
System.out.println(“Error! Number must be less than ” + max + “.”);
} else {
isValid = true;
}
}
return i;
}
//get integer
public static int getInt(Scanner sc, String prompt) {
int i = 0;
boolean isValid = false;
while (isValid == false) {
System.out.print(prompt);
if (sc.hasNextInt()) {
i = sc.nextInt();
isValid = true;
} else {
System.out.println(“Error! Invalid integer. Try again.”);
}
sc.nextLine(); // discard any other data entered on the line
}
return i;
}
//calculate fututre value
public static double calculateFutureValue(double monthlyInvestment, double monthlyInterestRate, int months) {
double futureValue = 0;
for (int i = 1; i <= months; i++) { futureValue = (futureValue + monthlyInvestment) * (1 + monthlyInterestRate); } return futureValue; } private static void printFormattedResults(double monthlyInvestment, double interestRate, int years, double futureValue) { // get the currency and percent formatters NumberFormat c = NumberFormat.getCurrencyInstance(); NumberFormat p = NumberFormat.getPercentInstance(); p.setMinimumFractionDigits(1); // format the result as a single string String results = "Monthly investment: " + c.format(monthlyInvestment) + "n" + "Yearly interest rate: " + p.format(interestRate / 100) + "n" + "Number of years: " + years + "n" + "Future value: " + c.format(futureValue) + "n"; printFormattedFutureValueResults(results); } public static void printFormattedFutureValueResults(String results) { // print the results System.out.println("FORMATTED RESULTS"); System.out.println(results); } }

Java program where the user inserts an excel file into the java maven project to

Java program where the user inserts an excel file into the java maven project to be processed and then to be sent to an access database where sql statements will be used for specific requests like searching for a specific bowler’s data. Using netbeans create a program to read/ log in data from excel into a java maven project and display the data in a jTable after putting the data into Access sql statements. There should also be help functions or a tutorial to show the user how to use the program and what to do if they run into an error or don’t know what to do. The program should consist of multiple jFrames: main jFrame where the user logs in via username and passw, 2’nd jFrame should consist of a jTable, a button to import a scorecard, 2 buttons saying bowling and batting for the user to decide what data they want, and buttons like exit and help, the jTable will then display either the batting or bowling data. 3’rd jFrame where the user has clicked batting or bowling and now the user can search for a specific player’s data.

The objective of this assignment is to create an undo/redo editor (that has no U

The objective of this assignment is to create an undo/redo editor (that has no UI, text document based). This is the second phase of the project.
This is a Computer Science II – Java level assignment.
The topics that pertain to this assignment are ArrayList, ArrayListStack, LinkedList, List, Queue, Enums, and Stack.
This is a fill in the blank type of assignment. The professor has given an outline and there are pre-defined classes that you must implement, specifically in this case MyArrayList(An ArrayList class) and MyArrayListStack. In the code there is green text with TODOs that specify what must be done, and each method has a comment that explains what the specified method should do.
In total there are only 10 methods that require implementation and one of them has already been filled out by the professor in the semi-completed file(specifically the open method).
For example some of the methods that need to be implemented are: save, saveAs, undo, redo, insert, delete, replace, find, moveCursor, getCursor,
These will be the attachments:
(These will be in a zip file)
1. A pre-written Editor.java file given by the professor
2. A test case file along with test text documents (however the professor has said these are untested)
3. A file that includes all the completed classes that were implemented in the first phase for context
Here are the professor’s words about how the assignment will be graded:
“My plan is to open an existing file, apply the various edits, including undo redo and save the file. I will compare it with my expected changes to see if the program works correctly.”
You are more than welcome to email me if any of the attached assignments/instructions need further explanation.

Weighted approximate common substring [50 points]. Given two input strings, not

Weighted approximate common substring [50 points]. Given two input strings, not necessarily of the same length, based on alphanumeric characters [A-Z], determine the best common substring. A substring is a contiguous sequence of characters within a string, and the score that determines the best substring is defined as the sum of the weights (w_l) for each character in the sequence (i.e. (w_A) is the weight of matching letter A) and a penalty (-delta) for each mismatch (negative penalty term to drive down the score).  In your experiments, consider situations in which (w_l=1) and (delta=10) and in which (w_l) is proportional to the frequency of the letter in English and (delta) takes values between the smallest and the largest weight (multiple experiments for 10 intermediate values). Note: you are now allowed to add gaps in the solution, i.e. both matched substring have the same length. Example: inputs “ABCAABCAA” and “ABBCAACCBBBBBB”. The substring “CAABC” that starts at position 3 in the first string and position 4 in the second,  has a score (2*w_C+2*w_A-delta) since the B is mismatched in the second string.
Interval-based constant best approximation [50 points]. Given a set of (N) points ((x_i, y_i)) with integer values for (x_i) between (1) and (M) and real values for (y_i),  find a partitioning of the interval ([1,M]) into contiguous intervals such that the error of approximating points in each interval element by the average value of (y) in the interval is minimized. You need to add a penalty factor proportional to the total number of intervals the solution has. For example, if you have (xin [1,100]) and you partition the X dimension in intervals ([1-10], [11, 20],..,[91,100]) the penalty is (10*delta). Hint: determine separately the formula for the error of approximating a set of values (y_i) by their average; think about how you can compute this quantity incrementally to reduce the running time of the algorithm. For this problem, experiment with both an array and a hash (memorization) version of the solution and compare the actual memory usage for both.

Everything is basically listed in the attached file. There are some csv data she

Everything is basically listed in the attached file. There are some csv data sheets but I will send those when I have a confirmed expert willing to work on this for me. Although the deadline is actually December 6th, I need to meet with the person on nov 29 for progress update. Would like to have a consistent and easy way of communicating with expert.