Description
hi
my question might seem kinda silly but i'm really confused.could you please tell me what does this mean?
I mean what does this sentence actually do?
drawContext::global()->draw();
thanks
User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.
Explanation & Answer
If defined its meaning it have native file chooser.
Completion Status:
100%
Review
Review
Anonymous
Awesome! Made my life easier.
Studypool
4.7
Trustpilot
4.5
Sitejabber
4.4
24/7 Homework Help
Stuck on a homework question? Our verified tutors can answer all questions, from basic math to advanced rocket science!
Most Popular Content
2 pages
Multithreading
Multithreading is the process by which multiple threads are executed at the same time, say simultaneously. Both multithrea ...
Multithreading
Multithreading is the process by which multiple threads are executed at the same time, say simultaneously. Both multithreading and multiprocessing are ...
Northern Virginia Community College Converting Access Jet Schemas to MySQL iTD256 Exercise
In this assignment, you will be creating the DDL SQL code (create database + create table statements) to re-create the Acc ...
Northern Virginia Community College Converting Access Jet Schemas to MySQL iTD256 Exercise
In this assignment, you will be creating the DDL SQL code (create database + create table statements) to re-create the Access schema (Jet DB engine, file-based) in your MySQL RDS instance.This assignment is FOR A GRADE based on ACCURACY. I will not be able to give you hints or substantial help on this, so do your best and submit your code before the due date. The good news is that you can actually RUN your code to see if it works. If you don't do that, then expect to lose points on syntax errors at minimum. Don't just make this up...Download the following Access file (DO NOT USE ANY OTHER FILE): AnnandaleCupcakes_v03.accdb download Using the Access design view for the tables, go through every table and write the equivalent SQL DDL code to create that table in MySQL.You will need to choose the correct data types and constraints, since Access (Jet) data types are different from MySQL data types (e.g. there is no "Short Text" in MySQL, but varchar(50) would be an example equivalent). Below is a chart of equivalent data types. Also remember to use auto_increment and primary key constraints on the PK. SUBMISSION: Simply copy your SQL DDL code and paste it into the text-only submission box. DO NOT submit a screenshot of your code or schema.Make sure to actually RUN YOUR CODE in MySQL Workbench against your GCP MySQL instance TO ENSURE THAT IT WORKS.To get you started, below is the code to create the new database schema as well as the customer table. You must complete the code for the rest of the tables (customer_note, event, payment, product, sale, and sale_item).create database annandale_cupcakes;use annandale_cupcakes;create table customer ( customer_id int primary key auto_increment, first_name varchar(50), last_name varchar(50), phone_number varchar(20), email varchar(30), street varchar(100), city varchar(50), state varchar(25), zip varchar(10), notes varchar(255), created_at datetime, updated_at datetime);
11 pages
Data Distribution
Identify if the following random variables are discrete or continuous. Height of males (in mm) who attend Grand Canyon Uni ...
Data Distribution
Identify if the following random variables are discrete or continuous. Height of males (in mm) who attend Grand Canyon University-Continuous variable.
CS 1334 University of Texas Khan Academy Project ? Lab Report
Lab Lesson #7 - Flying TextCreate a new Khan Academy project
Create a custom variable to store text characters, - inita ...
CS 1334 University of Texas Khan Academy Project ? Lab Report
Lab Lesson #7 - Flying TextCreate a new Khan Academy project
Create a custom variable to store text characters, - initailize the the variable with your firstname.Write code to check if the keyIsPressed ( or use keyPressed( )), if true: new characters will be appended or the text will moveWrite code to create logic for appending and moving text detailed below:The text should move when you press the arrow keys (in the direction of the arrow)
If any other key is pressed the character should be added to the text that is being
moved.
Hint: key.toString( ) will give the character value of a key that corresponds to a character.keyCode === UP use similar logic for special keys like UP, DOWN
ISM 643 Ashford University Sprint Planning and Burn Down Chart Paper
Prior to beginning work on this assignment, watch the Spring planning (Links to an external site.) video, which demonstrat ...
ISM 643 Ashford University Sprint Planning and Burn Down Chart Paper
Prior to beginning work on this assignment, watch the Spring planning (Links to an external site.) video, which demonstrates how VSO can be used to plan your first sprint for weekly SCRUM project.Continue with your chosen project from last week by planning your very first iteration. In other words, you will estimate the hours needed to satisfy a product backlog item, calculate team capacities, and assign tasks to team members using Visual Studio Online (VSO).Follow the steps below to complete this assignment:
Determine which product backlog items (user stories) need to be included in the very first iteration.
Add the above user stories to the first iteration backlog.
Select one of the iteration backlog items and break it down into tasks that team members can work on.
Assign hours to complete to each task. Form your iteration team and determine the capacity of each team member and the whole team.
Assign the tasks of your selected iteration backlog item to members of your team.
Assume that you have only 1 SCRUM development team made of three developers.Once you have planned your first iteration in VSO, take one screenshot showing the hours assigned to each task, and a second screenshot showing the capacities of each team members of your project.In addition to your two screenshots, include a 750- to 1250-word (3-5 page) paper with the following:
Summary of your selected user story to include in the first sprint, its tasks, hours on task, team member composition and capacities
Explanation of your approach to completing this assignment, including why you selected the user stories you did and how they support the business needs
Summary of personal reflection and lessons learned in completing this assignment
The assignment
Must be 750-1250 words (3-5 pages) in length (not including title and references pages, or the screenshots of your first iteration) and formatted according to APA style as outlined in the Ashford Writing Center.
Must include a separate title page with the following:
Title of paper
Student’s name
Course name and number
Instructor’s name
Date submitted
Must use at least 1 credible source in addition to the course text.
Must document all sources in APA style as outlined in the Ashford Writing Center.
Must include a separate references page that is formatted according to APA style as outlined in the Ashford Writing Center.
Carefully review the Grading Rubric (Links to an external site.) for the criteria that will be used to evaluate your assignment.
San Diego State University Database Web Interface Project
Database Web Interface First Name Last Name ID# ...
San Diego State University Database Web Interface Project
Database Web Interface First Name Last Name ID# Email Address Table of Contents How to submit1 P1 – Pet Adoption System (40 Points)2 Database (25 Points)2 PHP/HTML Programming (15 Points)3 P2 Cities (35 Points)4 Part 1 – Arrays - City Distances (12 points)4 Part 2 - Central Point (12 Points)5 Part 3 – Add UI (11 Points)5 P3 – Forms - Certificate Generator Tool (25 Points)5 How to submit After filling all the parts in this file, please follow the following steps. Add your name and ID to the first page.Save the file in the original format (Docx or Doc)Rename the file asUpload and submit your file (only via Blackboard). (please do not convert to other file formats e.g. PDF, ZIP, RAR, …). YOUR First Name– YOUR Last Name–ID.docx Example: John-Smith-234566435.docx Note: The final run results of each problem (screenshot or a copy of the results) should be added to the run result section “orange boxes”. Displaying the final run results accounts for 20% of the points given to each part. P1 – Pet Adoption System (40 Points) Part 1 - Database (25 Points) This question requires PhpMyAdmin to create the pet_adoption database.Follow the below instructions to create this database.Make sure to include the database scripts (CREATE, INSERT, etc.) with your PHP project.They are also to be graded along with your PHP/HTML code. The database must be named as pet_adoption.The database will have these tables: PET_TYPES: ID [INT] – Primary key and auto-generatedNAME [VARCHAR(50) / NOT NULL] – Type of a pet. Notes: Currently, there are only two supported pet types (Dog and Cat). You need to manually insert these pet types using the INSERT statements.Despite of having two supported pet types, make sure that no duplicates of pet types is allowed. PET_BREEDS: ID [INT] – Primary key and auto-generatedNAME [VARCHAR(50) / NOT NULL] – Breed of a pet.IS_DOG_BREED [TINYINT / NOT NULL] – If set to 1, this is the dog breed.Otherwise, it’s the cat breed.ID [INT] – Primary key and auto-generatedNAME [VARCHAR(50) / NOT NULL] – Name of a pet to adopted. Notes: You need to manually insert the pet breeds using the INSERT statements.Make sure that there are no duplicates of dog breeds and/or cat breeds.In other words, create a unique key index on both columns (NAME and IS_DOG_BREED).Using the INSERT statements to insert the following cat breeds:PersianSanvannahJapanese BobtailHimalayanUsing the INSERT statements to insert the following dog breeds: BoxerDalmatianGolden RetrieverShih Tzu PETS: BREED [INT / NOT NULL] – Foreign key to the pet_breeds table.TYPE [INT / NOT NULL] – Foreign key to the pet_types table.ARRIVAL_DATE [DATETIME / NOT NULL] – Date when the pet arrives to the adoption center.OWNER_FIRST_NAME [VARCHAR(50) / NULL] – First name of the new owner.OWNER_LAST_NAME [VARCHAR(50) / NULL] – Last name of the new owner.OWNER_MIDDLE_NAME [VARCHAR(50) / NULL] – Middle name of the new owner.ADOPTION_DATE [DATETIME / NULL] – Date when the pet is adopted. Notes: Enable the delete and update cascading for foreign keys for BREED and TYPE.Insert the pets for adoption using the INSERT statements with the information below: The below SELECT statement is used to generate the above data table.You are welcomed to use it as is or to modify it to suite your needs. SELECT p.name AS pet_name, t.name AS pet_type, b.name AS pet_breed, p.arrival_date, CONCAT(IFNULL(p.owner_first_name, ''), IFNULL(p.owner_last_name, ''), IFNULL(p.owner_middle_name, '')) AS owner_full_name, p.adoption_date FROM `pets` p INNER JOIN `pet_types` t ON t.id = p.type INNER JOIN `pet_breeds` b ON b.id = p.breed ORDER BY t.name, b.name; Insert your SQL code for creation of database in the following box. Your SQL code for creating the database --Copy and paste your code here Also please add screenshots of the database tables in the phpMyAdmin environment here. Part 2 - PHP/HTML Programming (15 Points) Implement the home page (index.php) to display the above data table with two additional columns: Edit and Delete.The Edit column will allow the user to enter the new owner name and the adoption date.The Delete column will allow the user to remove the selected pet from the pet adoption center. Your PHP Code --Copy and paste your code here Run the code and insert the result in the following box. The run result Copy and paste the result here (e.g. the screen shot of the result you get by running the code) Please add the result (screenshot) of data table as well as a sample case for deleting and editing one of the pets in the PETS table (result of clicking on the delete and edit buttons). P2 Cities (35 Points) Part 1 – Arrays - City Distances (12 points) Consider the following X and Y values for the locations of 5 cities. City#XY ---------------------------------------- 1|2.55 2|5.13 3|19 4|5.454 5|5.52.1 Write a PHP program that calculates the distance among all cities and display it as a 5 * 5 table. The element at row = i and col = j will show the distance between cities i and j. For example, row 2 and col 3 will show distance between city 2 and city 3. Note: Distance between two cities is defined as Euclidian distance. For example, the distance between city 2 and city 3 will be: D = sqrt ( (x2-x3)^2+(y2-y3)^2 ) = sqrt ( (5.1-1)^2+(3-9)^2 ) = 7.267 Your PHP Code --Copy and paste your code here Run the code and insert the result in the following box. The run result Copy and paste the result here (e.g. the screen shot of the result you get by running the code) Part 2 - Central Point (12 Points) Given a set of cities, the central point is the city that has the shortest total distance to all other cities. Write a PHP program that finds the central city and its total distance to all other cities for the 5 cities in part 1. Your PHP Code --Copy and paste your code here Run the code and insert the result in the following box. The run result Copy and paste the result here (e.g. the screen shot of the result you get by running the code) Part 3 – Add UI (11 Points) Modify the code in part 1 and 2 and add the following UI (Form) to the code. After running the code, by entering X and Y and clicking on “Add New City” we add a new city. This process continues until all the cities are entered. Then we click on “Show Distance Table” to see the distance table (result of part 1). Clicking on the “Find Central City” will show the central point (result of part 2). Test your code with the list of cities given in part 1 (entered one by one) and show the result. Your PHP Code --Copy and paste your code here Run the code and insert the result in the following box. The run result Copy and paste the result here (e.g. the screen shot of the result you get by running the code) P3 – Forms - Certificate Generator Tool (25 Points) In this problem we are going to design a certificate form. For this problem, the design of the certificate (both HTML and CSS files) are given in the “Problem 3” folder. You just need do add the following form to the page and then link it to the certificate fields using PHP code. More details about this problem and expected is given in the following 3-minute YouTube Video (the video has no voice. Please CTRL+Click on the link or simply copy and paste it in the address bar of your web browser). YouTube Video: https://youtu.be/27VbBvx9fOo Note: No design work is needed for this problem. All the files (HTML, CSS and images) are given. Just the above form should be added to the page and then the fields should be linked to the certificate fields, so that when we click on “Create Certificate” button, then the certificate with info entered by the user is created. Your PHP Code --Copy and paste your code here Run the code and create a certificate for Name: John Smith, Date: 10/20/2020 University: San Diego State University, Program: Computer Science and insert the result in the following box. The run result Copy and paste the result here (e.g. the screen shot of the result you get by running the code) The end
Similar Content
University Of Washington Bothell Threaded Binary Search Tree Lab Report
Threaded Binary Search Tree Since a binary search tree with N nodes has N + 1 NULL pointers, half the space allocated in ...
Builda piece of software to help see who the best players are on a team, and build scrimmage teams that are well balanced.
All details are within the attached Word docs, the Rosters should used for any input needed for the program. ...
Tangram Java program
Write a Java program (non-GUI preferred) to demonstrate the Singleton pattern.The key parts of the singleton pattern are:A...
EGG 321 university of Virginia Matlab Code Paper
Please help me write the MATLAB code. Please do the sample code. Please read them carefully before accepting the task. Imp...
UC Week 5 Develop a Computer and Internet Security Policy Research Paper
You have been hired as the CSO (Chief Security Officer) for an organization. Your job is to develop a computer and interne...
University of Detroit Mercy Chat Server and Client Project
In this project, you need to write a new network service for your computer. You will have to use the POSIX APIs for thread...
Related Tags
Book Guides
Gone with the Wind
by Margaret Mitchell
The Sixth Extinction An Unnatural History
by Elizabeth Kolbert
Dune
by Frank Herbert
The Scarlet Letter
by Nathaniel Hawthorne
Tess of the DUrbervilles
by Thomas Hardy
Unf*ck Yourself
by Gary John Bishop
The Curious Case of the Dog in the Night Time
by Mark Haddon
The Visible Filth
by Nathan Ballingrud
Get 24/7
Homework help
Our tutors provide high quality explanations & answers.
Post question
Most Popular Content
2 pages
Multithreading
Multithreading is the process by which multiple threads are executed at the same time, say simultaneously. Both multithrea ...
Multithreading
Multithreading is the process by which multiple threads are executed at the same time, say simultaneously. Both multithreading and multiprocessing are ...
Northern Virginia Community College Converting Access Jet Schemas to MySQL iTD256 Exercise
In this assignment, you will be creating the DDL SQL code (create database + create table statements) to re-create the Acc ...
Northern Virginia Community College Converting Access Jet Schemas to MySQL iTD256 Exercise
In this assignment, you will be creating the DDL SQL code (create database + create table statements) to re-create the Access schema (Jet DB engine, file-based) in your MySQL RDS instance.This assignment is FOR A GRADE based on ACCURACY. I will not be able to give you hints or substantial help on this, so do your best and submit your code before the due date. The good news is that you can actually RUN your code to see if it works. If you don't do that, then expect to lose points on syntax errors at minimum. Don't just make this up...Download the following Access file (DO NOT USE ANY OTHER FILE): AnnandaleCupcakes_v03.accdb download Using the Access design view for the tables, go through every table and write the equivalent SQL DDL code to create that table in MySQL.You will need to choose the correct data types and constraints, since Access (Jet) data types are different from MySQL data types (e.g. there is no "Short Text" in MySQL, but varchar(50) would be an example equivalent). Below is a chart of equivalent data types. Also remember to use auto_increment and primary key constraints on the PK. SUBMISSION: Simply copy your SQL DDL code and paste it into the text-only submission box. DO NOT submit a screenshot of your code or schema.Make sure to actually RUN YOUR CODE in MySQL Workbench against your GCP MySQL instance TO ENSURE THAT IT WORKS.To get you started, below is the code to create the new database schema as well as the customer table. You must complete the code for the rest of the tables (customer_note, event, payment, product, sale, and sale_item).create database annandale_cupcakes;use annandale_cupcakes;create table customer ( customer_id int primary key auto_increment, first_name varchar(50), last_name varchar(50), phone_number varchar(20), email varchar(30), street varchar(100), city varchar(50), state varchar(25), zip varchar(10), notes varchar(255), created_at datetime, updated_at datetime);
11 pages
Data Distribution
Identify if the following random variables are discrete or continuous. Height of males (in mm) who attend Grand Canyon Uni ...
Data Distribution
Identify if the following random variables are discrete or continuous. Height of males (in mm) who attend Grand Canyon University-Continuous variable.
CS 1334 University of Texas Khan Academy Project ? Lab Report
Lab Lesson #7 - Flying TextCreate a new Khan Academy project
Create a custom variable to store text characters, - inita ...
CS 1334 University of Texas Khan Academy Project ? Lab Report
Lab Lesson #7 - Flying TextCreate a new Khan Academy project
Create a custom variable to store text characters, - initailize the the variable with your firstname.Write code to check if the keyIsPressed ( or use keyPressed( )), if true: new characters will be appended or the text will moveWrite code to create logic for appending and moving text detailed below:The text should move when you press the arrow keys (in the direction of the arrow)
If any other key is pressed the character should be added to the text that is being
moved.
Hint: key.toString( ) will give the character value of a key that corresponds to a character.keyCode === UP use similar logic for special keys like UP, DOWN
ISM 643 Ashford University Sprint Planning and Burn Down Chart Paper
Prior to beginning work on this assignment, watch the Spring planning (Links to an external site.) video, which demonstrat ...
ISM 643 Ashford University Sprint Planning and Burn Down Chart Paper
Prior to beginning work on this assignment, watch the Spring planning (Links to an external site.) video, which demonstrates how VSO can be used to plan your first sprint for weekly SCRUM project.Continue with your chosen project from last week by planning your very first iteration. In other words, you will estimate the hours needed to satisfy a product backlog item, calculate team capacities, and assign tasks to team members using Visual Studio Online (VSO).Follow the steps below to complete this assignment:
Determine which product backlog items (user stories) need to be included in the very first iteration.
Add the above user stories to the first iteration backlog.
Select one of the iteration backlog items and break it down into tasks that team members can work on.
Assign hours to complete to each task. Form your iteration team and determine the capacity of each team member and the whole team.
Assign the tasks of your selected iteration backlog item to members of your team.
Assume that you have only 1 SCRUM development team made of three developers.Once you have planned your first iteration in VSO, take one screenshot showing the hours assigned to each task, and a second screenshot showing the capacities of each team members of your project.In addition to your two screenshots, include a 750- to 1250-word (3-5 page) paper with the following:
Summary of your selected user story to include in the first sprint, its tasks, hours on task, team member composition and capacities
Explanation of your approach to completing this assignment, including why you selected the user stories you did and how they support the business needs
Summary of personal reflection and lessons learned in completing this assignment
The assignment
Must be 750-1250 words (3-5 pages) in length (not including title and references pages, or the screenshots of your first iteration) and formatted according to APA style as outlined in the Ashford Writing Center.
Must include a separate title page with the following:
Title of paper
Student’s name
Course name and number
Instructor’s name
Date submitted
Must use at least 1 credible source in addition to the course text.
Must document all sources in APA style as outlined in the Ashford Writing Center.
Must include a separate references page that is formatted according to APA style as outlined in the Ashford Writing Center.
Carefully review the Grading Rubric (Links to an external site.) for the criteria that will be used to evaluate your assignment.
San Diego State University Database Web Interface Project
Database Web Interface First Name Last Name ID# ...
San Diego State University Database Web Interface Project
Database Web Interface First Name Last Name ID# Email Address Table of Contents How to submit1 P1 – Pet Adoption System (40 Points)2 Database (25 Points)2 PHP/HTML Programming (15 Points)3 P2 Cities (35 Points)4 Part 1 – Arrays - City Distances (12 points)4 Part 2 - Central Point (12 Points)5 Part 3 – Add UI (11 Points)5 P3 – Forms - Certificate Generator Tool (25 Points)5 How to submit After filling all the parts in this file, please follow the following steps. Add your name and ID to the first page.Save the file in the original format (Docx or Doc)Rename the file asUpload and submit your file (only via Blackboard). (please do not convert to other file formats e.g. PDF, ZIP, RAR, …). YOUR First Name– YOUR Last Name–ID.docx Example: John-Smith-234566435.docx Note: The final run results of each problem (screenshot or a copy of the results) should be added to the run result section “orange boxes”. Displaying the final run results accounts for 20% of the points given to each part. P1 – Pet Adoption System (40 Points) Part 1 - Database (25 Points) This question requires PhpMyAdmin to create the pet_adoption database.Follow the below instructions to create this database.Make sure to include the database scripts (CREATE, INSERT, etc.) with your PHP project.They are also to be graded along with your PHP/HTML code. The database must be named as pet_adoption.The database will have these tables: PET_TYPES: ID [INT] – Primary key and auto-generatedNAME [VARCHAR(50) / NOT NULL] – Type of a pet. Notes: Currently, there are only two supported pet types (Dog and Cat). You need to manually insert these pet types using the INSERT statements.Despite of having two supported pet types, make sure that no duplicates of pet types is allowed. PET_BREEDS: ID [INT] – Primary key and auto-generatedNAME [VARCHAR(50) / NOT NULL] – Breed of a pet.IS_DOG_BREED [TINYINT / NOT NULL] – If set to 1, this is the dog breed.Otherwise, it’s the cat breed.ID [INT] – Primary key and auto-generatedNAME [VARCHAR(50) / NOT NULL] – Name of a pet to adopted. Notes: You need to manually insert the pet breeds using the INSERT statements.Make sure that there are no duplicates of dog breeds and/or cat breeds.In other words, create a unique key index on both columns (NAME and IS_DOG_BREED).Using the INSERT statements to insert the following cat breeds:PersianSanvannahJapanese BobtailHimalayanUsing the INSERT statements to insert the following dog breeds: BoxerDalmatianGolden RetrieverShih Tzu PETS: BREED [INT / NOT NULL] – Foreign key to the pet_breeds table.TYPE [INT / NOT NULL] – Foreign key to the pet_types table.ARRIVAL_DATE [DATETIME / NOT NULL] – Date when the pet arrives to the adoption center.OWNER_FIRST_NAME [VARCHAR(50) / NULL] – First name of the new owner.OWNER_LAST_NAME [VARCHAR(50) / NULL] – Last name of the new owner.OWNER_MIDDLE_NAME [VARCHAR(50) / NULL] – Middle name of the new owner.ADOPTION_DATE [DATETIME / NULL] – Date when the pet is adopted. Notes: Enable the delete and update cascading for foreign keys for BREED and TYPE.Insert the pets for adoption using the INSERT statements with the information below: The below SELECT statement is used to generate the above data table.You are welcomed to use it as is or to modify it to suite your needs. SELECT p.name AS pet_name, t.name AS pet_type, b.name AS pet_breed, p.arrival_date, CONCAT(IFNULL(p.owner_first_name, ''), IFNULL(p.owner_last_name, ''), IFNULL(p.owner_middle_name, '')) AS owner_full_name, p.adoption_date FROM `pets` p INNER JOIN `pet_types` t ON t.id = p.type INNER JOIN `pet_breeds` b ON b.id = p.breed ORDER BY t.name, b.name; Insert your SQL code for creation of database in the following box. Your SQL code for creating the database --Copy and paste your code here Also please add screenshots of the database tables in the phpMyAdmin environment here. Part 2 - PHP/HTML Programming (15 Points) Implement the home page (index.php) to display the above data table with two additional columns: Edit and Delete.The Edit column will allow the user to enter the new owner name and the adoption date.The Delete column will allow the user to remove the selected pet from the pet adoption center. Your PHP Code --Copy and paste your code here Run the code and insert the result in the following box. The run result Copy and paste the result here (e.g. the screen shot of the result you get by running the code) Please add the result (screenshot) of data table as well as a sample case for deleting and editing one of the pets in the PETS table (result of clicking on the delete and edit buttons). P2 Cities (35 Points) Part 1 – Arrays - City Distances (12 points) Consider the following X and Y values for the locations of 5 cities. City#XY ---------------------------------------- 1|2.55 2|5.13 3|19 4|5.454 5|5.52.1 Write a PHP program that calculates the distance among all cities and display it as a 5 * 5 table. The element at row = i and col = j will show the distance between cities i and j. For example, row 2 and col 3 will show distance between city 2 and city 3. Note: Distance between two cities is defined as Euclidian distance. For example, the distance between city 2 and city 3 will be: D = sqrt ( (x2-x3)^2+(y2-y3)^2 ) = sqrt ( (5.1-1)^2+(3-9)^2 ) = 7.267 Your PHP Code --Copy and paste your code here Run the code and insert the result in the following box. The run result Copy and paste the result here (e.g. the screen shot of the result you get by running the code) Part 2 - Central Point (12 Points) Given a set of cities, the central point is the city that has the shortest total distance to all other cities. Write a PHP program that finds the central city and its total distance to all other cities for the 5 cities in part 1. Your PHP Code --Copy and paste your code here Run the code and insert the result in the following box. The run result Copy and paste the result here (e.g. the screen shot of the result you get by running the code) Part 3 – Add UI (11 Points) Modify the code in part 1 and 2 and add the following UI (Form) to the code. After running the code, by entering X and Y and clicking on “Add New City” we add a new city. This process continues until all the cities are entered. Then we click on “Show Distance Table” to see the distance table (result of part 1). Clicking on the “Find Central City” will show the central point (result of part 2). Test your code with the list of cities given in part 1 (entered one by one) and show the result. Your PHP Code --Copy and paste your code here Run the code and insert the result in the following box. The run result Copy and paste the result here (e.g. the screen shot of the result you get by running the code) P3 – Forms - Certificate Generator Tool (25 Points) In this problem we are going to design a certificate form. For this problem, the design of the certificate (both HTML and CSS files) are given in the “Problem 3” folder. You just need do add the following form to the page and then link it to the certificate fields using PHP code. More details about this problem and expected is given in the following 3-minute YouTube Video (the video has no voice. Please CTRL+Click on the link or simply copy and paste it in the address bar of your web browser). YouTube Video: https://youtu.be/27VbBvx9fOo Note: No design work is needed for this problem. All the files (HTML, CSS and images) are given. Just the above form should be added to the page and then the fields should be linked to the certificate fields, so that when we click on “Create Certificate” button, then the certificate with info entered by the user is created. Your PHP Code --Copy and paste your code here Run the code and create a certificate for Name: John Smith, Date: 10/20/2020 University: San Diego State University, Program: Computer Science and insert the result in the following box. The run result Copy and paste the result here (e.g. the screen shot of the result you get by running the code) The end
Earn money selling
your Study Documents