Write a Python 3 program called pa1.py that implements a three-class linear classifier using the following method:
Training (using the training data set):
1. Compute the centroid of each class (e.g. A, B, and C).
2. Construct a discriminant function between each pair of classes (e.g. A/B, B/C, and A/C), halfway between the two centroids and orthogonal to the line connecting the two centroids. This is the basic linear classifier that we have discussed.
Create a secret phrase guessing game similar to hangman in which the user guesses letters in a partially hidden phrase in an attempt to determine the complete phrase. The phrase to be guessed needs to be selected randomly from a list of at least 10 phrases. The clue needs to be presented to the user as a series of asterisks replacing letters to be guessed. Spaces must be in the appropriate locations. Somewhat like Wheel of Fortune be sure when a letter is guessed you fill in all matches regardless of the case.
The minimum requirements are as follows:
A GUI interface of some type is required for this project.
(1) The program must be an application that performs some function. It can be a game or a business application.
(2) The program must include at least one decision and at least one loop. Most projects of any depth will require more.
(3) You must make use of at least one array. This array can be one or two dimensional. It can be an array of objects
For this assignment you will be modifying the Phone Book application provided and recreating it to be an AddressBook application.
Use the CreatePhoneBookDB class provided and add some data to the table to create an address book. Make sure to create a primary key that is truly unique, include first and last name, phone number, street address, and email address. Modify the code to add these fields to the table, then be sure to add data to the insert statements. Run this to create the AddressBookDB.
Modify the PhoneBookManager and PhoneBookDemo programs to become an address book application and display the first and last name of each person in the address book for users to choose from. When the user views a person be sure to display all information associated with that record. Allow the user to edit each field, not just the phone number. The user should be able to update anything tied to the person in the address book with the exception of
TWIN PRIMES IN A RANGE OF NUMBERS
-----------------------------------
Twin primes are two consequetive odd numbers that are prime.
Write a function that returns 1 if the input is a prime and
0 otherwise.
int is_prime(int number) {
}
Write a C Program to generate all twin primes in a given range
of numbers using the is_prime function.
Your program will input following from the command line:
min : start of range, an integer
max : end of range, an integer
These numbers define the range of numbers [min,max]
inclusively.
Here is a sample input line:
1 7
We will output every twin prime in the range
[1, 7].
Here is the output of the above input line:
3 5
5 7
Sample Runs:
-----------
Input:
1 7
Output:
3 5
5 7
Input:
2 9
Output:
3 5
5 7
Input:
7 21
Output:
11 13
17 19
I need assistance answering 11 math questions in Project Management, the questions are located on the attached document. The due date is 3pm EST, there is no room to adjust the time so prepare in advance. Also I cannot pay more the desired price. Broke College student living off financial aid.
Creating a simple C# console application that completes the stated task:
Trivia Game Part 1 - Lists
Write a program that plays a simple trivia game on a
topic on your choice. The game will read questions from a CSV file. Each question has a corresponding
answer and point value between 1 and 3 (based on the difficulty of the question). Implement the game
using three lists. A list of type string should be used for the questions. Another list of type string should be
used to store the answers. A list of type int should be used for the point values.
The index into the three lists can be used to tie the question, answer, and point value together. For
example, the item at index 0 for each list would correspond to question 1, answer 1, and the point value
for question 1. The item at index 1 for each list would correspond to question 2, answer 2, and the point
value for question 2, and so forth. Manually create at least ten questions, answers, and point value
The instructions are outlined in the paper. I don't need anything fancy. There are pictures of what the final product should resemble. They do not have to be the exact, it just has to resemble the final design. Only use HTML and JavaScript to make this program. The final product should be an HTML document that should be able to open any browser
I need assistance in answering 11 questions in Project Management. Please see the attached documents for instructions and the questions. I need this assignment back completed and sent back to me Thursday at 3pm EST. I can only pay the desired price that I have listed. Thank you for assisting.
Part 1:
Write code that writes the names of three of your favorite movies to a file named movies.txt.
Each movie should be on a separate line in the text file.
Use file explorer to manually open the text file in a text editor (like Notepad, Notepad++, etc.) to verify your Python code wrote three movie names, one per line.
Sample output to a file:
The Matrix
Gladiator
Top Gun
Part 2:
Write a program that asks the user for the name of a file.
The program should display only the first five lines of the files contents if the file contains five or more lines.
If the file contains less than five lines, it should display the files entire contents.
Sample input/output (5 or more lines in the file):
Enter the name of the file: pokemon.txt
Bulbasaur
Ivysaur
Venusaur
Charmander
Charmeleon
Sample input/output (less than 5 lines in the file):
Enter the name of the file: pokemon.txt
Bulbas
Newsfeed page:
Newsfeed
Takes dummy data from predefined list of posts
Renders a random new post every 15 seconds to the top of the page
Once the number of posts on page reaches 10, the bottom-most post is removed as a new post is rendered