web programming

profilewloamy606
weekly_assignments_4-2_web.docx

Weekly assignment # 6 part 3 of the ice cream cake order form

Weekly assignment #5 (see below ) and weekly assignment #6

Are both due beginning of class 10/07/2016.

Late policy details for CS322

All assignments have a specific due date.

Any assignment no turned in on that date will receive a grade of ZERO

Incomplete assignments maybe turned in for partial credit.

Any assignment that use a code generator to create their code will receive a grade of

ZERO.

You may use any code I give you or any small pieces of code that you find on the internet and modify for your use.

All final grades for assignment will be determined after the code has been reviewed by the instructor, in class demos are just the first step in grading.

Schedule of assignments and test between now and 10/07/2016

Weekly assignment #5 and weekly assignment #6 are due 10/07/2016, and must be loaded on the web server, these assignments can be combined into one web page and one .cs file as long as all the requirements are there.

Assignment #6 details

Do the following:

Upload all need files to your webserver account at teach.park.edu, provide the link to your finished assignment.

Change one of your dropdown lists in the original form to use a flat file. This means that you will need one dropdown list that is created from an array (for assignment #5) and one that is created from a flat file.

Using the following information from the form you are going to create an image using CANVAS showing a visual representation on the cake the client ordered. This will be a 2d image and will only show whether it is a round cake or a square cake.

On the image you will show the background color and the trim by using the border rule. You will also show the text the user wants on the cake. This will be displayed on the thank you page.

From the original form you will need the following information;

· Type of cake -- round or square –(determines square or circle)

· Frosting color – (determines background color)

· Trim frosting color -- (determines border color)

· Text color -- (determines text color)

· Text -- text that is on image

This link is an example of what you are going to do

http://teach.park.edu/~mlong322/textbox/CS.aspx

THIS IS NOT WHAT YOUR PROJECT WILL DO THIS IS JUST WHAT NEEDS TO HAPPEN IN ADDITION TO THE OTHER REQUIREMENTS

Weekly assignment part 5 30 points

Due date: 09/30/2016 at beginning of class

Will be graded in class and you will need to turn in your code.

You must have all of week 4 requirements completed, if not you will not be able to complete this assignment.

Add the following to you .cs file

1. Remove all Response.Write("<p>" + ""); and replace with code that uses the ASP concept to put values in a text area on the original page. Make sure you do not show the original form on the page.

2. Cake prices have changed, using the prices that were set in week 4 assignment you will do the following;

If the user is from Missouri or Kansas you decrease the price of the cake by 15%, if the user is from any other state you will raise the price of the cake by 20%

3. On you thank you page that you created for the week 4 assignment, you need to create a new

form for the user to fill out this form will contain the following:

· Do you want to sign up for one of our weekly offers?

· Coupons, blog, reports, or picture of cake of the week.

· Once the user has completed the form send them to another page that will tell them their choice they made from the new form make sure it is personalized with their name from the first form and have a coupon for 25% off on the page. (the 25% off coupon, can be an image file).

4. Change one of your dropdown lists in the original form to use an array, you may use either the data dictionary method or the hash table method.

The following project is for weekly assignments 4, 5, 6, and 7 You will be given requirements for each week as you progress though the semester.

YOU MUST HAVE THE PREVIOUS WEEKLY ASSIGNMENT DONE IN ORDER TO COMPLETE THE NEXT WEEKLY ASSIGNMENT. So even though they are separate grades they are connected grades, each weekly assignment will help towards the completion of the overall project.

The following is a complete over view of the entire project:

You are going to create an online ordering process for a small ice cream shop, to allow customers to order ice cream cakes. The form they current use is below.

Name: ___________ date:___________ Date to pick up (need 2 days min) __________________

Address: ______________________

City: ___________________________

State: ___ zip:________

Phone (best number): __________________

Email ___________________________

Please circle the following

Type of cake:

9 inch round ------- number of layers 1, 2, 3

12 inch round -------number of layers 1, 2, 3

18 by 18 inch square

24 by 24 inch square

Flavor of ice cream: (pick any combo or just one)

· Vanilla

· Chocolate

· Strawberry

Frosting color:

white yellow red purple blue green

Trim frosting color: (suggest not the same color as frosting color)

white yellow red purple blue green

Text color: : (suggest not the same color as frosting color)

white yellow red purple blue green

What you want it to say on the cake

Letter limits

· 9 inch round cake: 3 lines 5 letters per line ---- total of 15 letters

· 12 inch round cake: 3 lines 7 letters per line ---- total of 21 letters

· 18 by 18 inch square cake 3 lines 10 letters per line – total of 30 letters

· 24 by 24 inch square cake 4 lines 10 letters per line – total of 40 letters

Total charge _________________________

Signed by customer: _________________________________________

Wk4 – home work requirement:

Using ASP.NET

Recreate the paper form above into an on-line web based application:

· In place of date and date to pick up have a calendar displayed for the current month and allow the user to pick the date, (may use 2 calendars) if work with your layout.

· Create field names that will be useable in a database at a late date.

· State must be a drop down box

· Other selections maybe a checkbox, radio button, or dropdown box: BUT CANNOT BE TEXT ENTRY BOXES

· Test boxes need to be validated using HTML5 validation standards

RESULTS what needs to be on the screen when the user presses SUBMIT and all fields are valid.

· All entered user information, BUT CAKE DESCRTIPTION

· Under the entered user information you will show the following;

· Cake size

· Cake shape

· Cake number of layers if round

· Frosting to be used on cake

· Base color

· Trim color

· Letter color

· Flavor(s) of ice cream

· The wording on the cake

· Date ordered

· Date needed

· Price of the cake (based on your calculations)

· SUBMIT button to accept the order, this replaces the signature (once they press the SUBMIT button show them a thank you page)

You will need to calculate a price based on the user information here is the pricing table, THIS IS NOT TO BE SHOWN TO THE USER YOU WILL JUST SHOW THEM A PRICE.

9 inch round 1 layer

12.00

9 inch round 2 layer

24.00

9 inch round 3 layer

36.00

12 inch round 1 layer

14.00

12 inch round 2 layer

28.00

12 inch round 3 layer

42.00

18 by 18 inch square

30.00

24 by 24 inch square

48.00

Weekly assignment part 5 30 points

Due date: 0930/2016 at beginning of class

Will be graded in class and you will need to turn in your code.

You must have all of week 4 requirements completed, if not you will not be able to complete this assignment.

Add the following to you .cs file

4. Remove all Response.Write("<p>" + ""); and replace with code that uses the ASP concept to put values in a text area on the original page. Make sure you do not show the original form on the page.

5. Cake prices have changed, using the prices that were set in week 4 assignment you will do the following;

If the user is from Missouri or Kansas you decrease the price of the cake by 15%, if the user is from any other state you will raise the price of the cake by 20%

6. On you thank you page that you created for the week 4 assignment, you need to create a new

form for the user to fill out this form will contain the following:

· Do you want to sign up for one of our weekly offers?

· Coupons, blog, reports, or picture of cake of the week.

· Once the user has completed the form send them to another page that will tell them their choice they made from the new form make sure it is personalized with their name from the first form and have a coupon for 25% off on the page. (the 25% off coupon, can be an image file).

4. Change one of your dropdown lists in the original form to use an array, you may use either the data dictionary method or the hash table method.