Questions
Our idea is a platform that includes services to online shoppers who do not have visa...

Our idea is a platform that includes services to online shoppers who do not have visa we pay instead of them when they transfer money to us by transferring money through local bank also shoppers they have a problem in some websites that do not ship outside the United States we will provide addresses in America receive shipments and then ship them here.

writhe the five competitive forces model for this idea :

In: Operations Management

PHP Question - Subject: PHP File Handling and Uploads INSTRUCTIONS: Objective: • Create a sticky HTML...

PHP Question -

Subject: PHP File Handling and Uploads

INSTRUCTIONS:

Objective:

• Create a sticky HTML form.
• Submit form for processing.
• Sanitize and validate form data.
• Upload a profile image.
• Add a record to a text file.
• Display form results with content from another text file and the uploaded image.

Description:

This assignment deals with file management. It requires the use of 3 new files and 1 new directory. You will create the new file-uploads.php file, a new membership.txt file to record form data, a poem.txt file to store a "poem" of your choice and a new images directory. All information in this assignment is processed and displayed using the file-uploads.php page. There are no redirects.

You will need to build a form to upload user images and access a couple of files on the server. The form will be processed and validated. The sanitized and validated form information will be saved to a text file (membership.txt) you create on the server. Once the form has been processed and the image uploaded to the new images directory, you will not redirect the user to a new page to display the results as specified. Instead, you will code the existing page to process the form, including the image upload, then display the formatted information (instead of the form) along with some information from a text file (poem.txt) you create.

Requirements:

Create a PHP page named file-uploads.php with a form using the following field controls:

• Single line text box for the user's first name.
• Single line text box for the user's last name.
• Single line text field for email.
• Single line text field for password.
• Single line text field for password verify.
• Add a file control to the form to upload a profile image file.

Process the form text information.

• Upon form submission, sanitize and validate the text information.
• If the information is valid, create a new lowercase username with the first initial of the first name concatenated with the last name. (IE: sherd)
• Set the first letter of the first and last names to uppercase then concatenate the first name and last name into one field with a separation space between the names.
• Append the membership.txt file with the user's name, email, password and new username.

Process the image upload.

• Add validation to make sure the image file is an appropriate image type and size is 100KB or less.
• If the image passes validation, check to see if it already exists. If so, display an error and return the form to the user..
• If the image file doesn't exist, upload the image to the server.

Style and prep the HTML in both pages.

• Include the functions file.
• Wrap the page output in your header and footer.
• Utilize the Bootstrap framework to style your page contents.

Add form processing to the file to sanitize and validate the form submission. Include sticky form fields and error messages.

• Text fields must be present and convert any HTML tags present using htmlspecialchars().
• Text fields and passwords must be trimmed using trim().
• Email must validate using preg_match().
• Convert all names in name field to first letter uppercase.
• All form fields must be checked for content. Any missing content should trigger the form to be redisplayed to the user with a warning to provide acceptable information.

In: Computer Science

Problem description Write a program that uses a loop to read integer values from the standard...

Problem description

Write a program that uses a loop to read integer values from the standard input stream. Each non-zero value, x, is the first number of a sequence.

Define a0 = x; an+1 = an / 2 if an is even; an+1 = 3 * an + 1 if an is odd. Then there exists an integer k such that ak = 1.

For each non-zero value of x, the program outputs the integer k such that ak = 1 and the numbers a0, a1, a2, ..., ak, the value of k, the largest number in the sequence, and its position in the sequence. (See Output specification.)

Input specification

The input will consist of a series of non-negative integers, one integer per line. All integers will be less than 65536. The last integer in the series is zero, signalling the end of input. You can assume that no operation overflows a 32-bit integer. (See Sample input.)

Output specification

The program writes to the standard output stream.

There will be two lines of output for each line of input. The output should be formatted exactly as specified.

For each non-zero integer input, you should output the sequence a0, a1, a2, ..., ak, terminated by a newline. On the next line you should output the value of k, the largest number in the sequence, and its position in the sequence. These three numbers should be separated by one space with all three numbers on one line, terminated by a newline. (See Sample interaction.)

Sample input

I have provided sample input and expected output files in our shared directory. For example:

$ cat /home/shared/cs135/kmess/pa05-input0.txt
24
106
7
0
$

Sample interaction

$ ./a.out < pa05-input0.txt
24 12 6 3 10 5 16 8 4 2 1
10 24 0
106 53 160 80 40 20 10 5 16 8 4 2 1
12 160 2
7 22 11 34 17 52 26 13 40 20 10 5 16 8 4 2 1
16 52 5
$

Note: If you use geany to build the executable, use pa05 instead of a.out.

Judge script

You can validate your program's output using the judge. I have provided a couple sets of input files and expected output files for you in our shared directory. Assuming you copied these files to your project directory, you can use the following command:

$ judge -p a.out -i pa05-input0.txt -o pa05-output0.txt

You may append the -v option to the above command to enable verbose output.

Note: If you use geany to build the executable, use pa05 instead of a.out.

Assignment-specific requirements

The General Programming Guidelines apply (e.g., readability, documentation, restricted keywords, etc). This program expects input from cin and output to cout; do not use any ifstream or ofstream variables in this program.

In: Computer Science

PHP Question - Subject: PHP File Handling and Uploads INSTRUCTIONS: Objective: • Create a sticky HTML...

PHP Question -

Subject: PHP File Handling and Uploads

INSTRUCTIONS:

Objective:

• Create a sticky HTML form.
• Submit form for processing.
• Sanitize and validate form data.
• Upload a profile image.
• Add a record to a text file.
• Display form results with content from another text file and the uploaded image.

Description:

This assignment deals with file management. It requires the use of 3 new files and 1 new directory. You will create the new file-uploads.php file, a new membership.txt file to record form data, a poem.txt file to store a "poem" of your choice and a new images directory. All information in this assignment is processed and displayed using the file-uploads.php page. There are no redirects.

You will need to build a form to upload user images and access a couple of files on the server. The form will be processed and validated. The sanitized and validated form information will be saved to a text file (membership.txt) you create on the server. Once the form has been processed and the image uploaded to the new images directory, you will not redirect the user to a new page to display the results as specified. Instead, you will code the existing page to process the form, including the image upload, then display the formatted information (instead of the form) along with some information from a text file (poem.txt) you create.

Requirements:

Create a PHP page named file-uploads.php with a form using the following field controls:

• Single line text box for the user's first name.
• Single line text box for the user's last name.
• Single line text field for email.
• Single line text field for password.
• Single line text field for password verify.
• Add a file control to the form to upload a profile image file.

Process the form text information.

• Upon form submission, sanitize and validate the text information.
• If the information is valid, create a new lowercase username with the first initial of the first name concatenated with the last name. (IE: sherd)
• Set the first letter of the first and last names to uppercase then concatenate the first name and last name into one field with a separation space between the names.
• Append the membership.txt file with the user's name, email, password and new username.

Process the image upload.

• Add validation to make sure the image file is an appropriate image type and size is 100KB or less.
• If the image passes validation, check to see if it already exists. If so, display an error and return the form to the user..
• If the image file doesn't exist, upload the image to the server.

Style and prep the HTML in both pages.

• Include the functions file.
• Wrap the page output in your header and footer.
• Utilize the Bootstrap framework to style your page contents.

Add form processing to the file to sanitize and validate the form submission. Include sticky form fields and error messages.

• Text fields must be present and convert any HTML tags present using htmlspecialchars().
• Text fields and passwords must be trimmed using trim().
• Email must validate using preg_match().
• Convert all names in name field to first letter uppercase.
• All form fields must be checked for content. Any missing content should trigger the form to be redisplayed to the user with a warning to provide acceptable information.

In: Computer Science

The autonomy of (American) colonists to conduct their own affairs prior to the revolutionary period was...

The autonomy of (American) colonists to conduct their own affairs prior to the revolutionary period was known as __________.

Home rule.

Compromise.

Colonialism.

Treaty-power.

In: Economics

Is the presidency too powerful? What should be the role of the First Lady?

AMERICAN GOVERNMENT

Is the presidency too powerful?

What should be the role of the First Lady?

Who would you nominate for president in 2020?

In: Economics

Relative to both the path and pace of American economic progress, how would Hamilton’s and Jefferson’s...

Relative to both the path and pace of American economic progress, how would Hamilton’s and Jefferson’s alternative positions on the role of debt matter?

In: Economics

How did rapid industrialization impact American society?

Analyze the forces driving the rapid industrialization of the US between 1815-1850. How did this rapid industrialization impact American society?

In: History

How did American principles and values affected the settlement after the World War (Treaty of Versailles,...

How did American principles and values affected the settlement after the World War (Treaty of Versailles, League of Nations, "self-determination)?

In: Economics

How is the current American diet is influenced by the following factors personal life-style, profession, cultural...

How is the current American diet is influenced by the following factors personal life-style, profession, cultural and physcological factors? 5 paragraphs...

In: Nursing