web programming

profilewloamy606
weekly_assignments_4-1_1_web.docx

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.