% ' FP_ASP ASP Automatically generated by a Frontpage Component. Do not Edit. On Error Resume Next Session("FP_OldCodePage") = Session.CodePage Session("FP_OldLCID") = Session.LCID Session.CodePage = 1252 Err.Clear strErrorUrl = "" If Request.ServerVariables("REQUEST_METHOD") = "POST" Then If Request.Form("VTI-GROUP") = "0" Then Err.Clear Set fp_conn = Server.CreateObject("ADODB.Connection") FP_DumpError strErrorUrl, "Cannot create connection" Set fp_rs = Server.CreateObject("ADODB.Recordset") FP_DumpError strErrorUrl, "Cannot create record set" fp_conn.Open Application("Quiz_CircularMotion5_ConnectionString") FP_DumpError strErrorUrl, "Cannot open database" fp_rs.Open "Results", fp_conn, 1, 3, 2 ' adOpenKeySet, adLockOptimistic, adCmdTable FP_DumpError strErrorUrl, "Cannot open record set" fp_rs.AddNew FP_DumpError strErrorUrl, "Cannot add new record set to the database" Dim arFormFields0(25) Dim arFormDBFields0(25) Dim arFormValues0(25) arFormFields0(0) = "Acc_Down" arFormDBFields0(0) = "Acc_Down" arFormValues0(0) = Request("Acc_Down") arFormFields0(1) = "Acc_Right" arFormDBFields0(1) = "Acc_Right" arFormValues0(1) = Request("Acc_Right") arFormFields0(2) = "Vel_Down" arFormDBFields0(2) = "Vel_Down" arFormValues0(2) = Request("Vel_Down") arFormFields0(3) = "cent_speed_1" arFormDBFields0(3) = "cent_speed_1" arFormValues0(3) = Request("cent_speed_1") arFormFields0(4) = "cent_speed_2" arFormDBFields0(4) = "cent_speed_2" arFormValues0(4) = Request("cent_speed_2") arFormFields0(5) = "tang_accel_1" arFormDBFields0(5) = "tang_accel_1" arFormValues0(5) = Request("tang_accel_1") arFormFields0(6) = "tang_accel_2" arFormDBFields0(6) = "tang_accel_2" arFormValues0(6) = Request("tang_accel_2") arFormFields0(7) = "Acc_Up" arFormDBFields0(7) = "Acc_Up" arFormValues0(7) = Request("Acc_Up") arFormFields0(8) = "Acc_Left" arFormDBFields0(8) = "Acc_Left" arFormValues0(8) = Request("Acc_Left") arFormFields0(9) = "Vel_Left" arFormDBFields0(9) = "Vel_Left" arFormValues0(9) = Request("Vel_Left") arFormFields0(10) = "freq" arFormDBFields0(10) = "freq" arFormValues0(10) = Request("freq") arFormFields0(11) = "freq1" arFormDBFields0(11) = "freq1" arFormValues0(11) = Request("freq1") arFormFields0(12) = "cent_accel_1" arFormDBFields0(12) = "cent_accel_1" arFormValues0(12) = Request("cent_accel_1") arFormFields0(13) = "cent_accel_2" arFormDBFields0(13) = "cent_accel_2" arFormValues0(13) = Request("cent_accel_2") arFormFields0(14) = "Def_Centripetal" arFormDBFields0(14) = "Def_Centripetal" arFormValues0(14) = Request("Def_Centripetal") arFormFields0(15) = "Name" arFormDBFields0(15) = "Name" arFormValues0(15) = Request("Name") arFormFields0(16) = "Vel_Up" arFormDBFields0(16) = "Vel_Up" arFormValues0(16) = Request("Vel_Up") arFormFields0(17) = "centripetal_force" arFormDBFields0(17) = "centripetal_force" arFormValues0(17) = Request("centripetal_force") arFormFields0(18) = "no_centripetal_force" arFormDBFields0(18) = "no_centripetal_force" arFormValues0(18) = Request("no_centripetal_force") arFormFields0(19) = "Def_Period" arFormDBFields0(19) = "Def_Period" arFormValues0(19) = Request("Def_Period") arFormFields0(20) = "Vel_Right" arFormDBFields0(20) = "Vel_Right" arFormValues0(20) = Request("Vel_Right") arFormFields0(21) = "tang_speed_1" arFormDBFields0(21) = "tang_speed_1" arFormValues0(21) = Request("tang_speed_1") arFormFields0(22) = "Def_Tangential" arFormDBFields0(22) = "Def_Tangent" arFormValues0(22) = Request("Def_Tangential") arFormFields0(23) = "Did_own_work" arFormDBFields0(23) = "Did_own_work" arFormValues0(23) = Request("Did_own_work") arFormFields0(24) = "tang_speed_2" arFormDBFields0(24) = "tang_speed_2" arFormValues0(24) = Request("tang_speed_2") FP_SaveFormFields fp_rs, arFormFields0, arFormDBFields0 If Request.ServerVariables("REMOTE_HOST") <> "" Then FP_SaveFieldToDB fp_rs, Request.ServerVariables("REMOTE_HOST"), "Remote_computer_name" End If If Request.ServerVariables("HTTP_USER_AGENT") <> "" Then FP_SaveFieldToDB fp_rs, Request.ServerVariables("HTTP_USER_AGENT"), "Browser_type" End If FP_SaveFieldToDB fp_rs, Now, "Timestamp" If Request.ServerVariables("REMOTE_USER") <> "" Then FP_SaveFieldToDB fp_rs, Request.ServerVariables("REMOTE_USER"), "User_name" End If fp_rs.Update FP_DumpError strErrorUrl, "Cannot update the database" fp_rs.Close fp_conn.Close FP_FormConfirmation "text/html; charset=windows-1252",_ "Form Confirmation",_ "Thank you for submitting the following information:",_ "Quiz_CircularMotion.asp",_ "Return to the form." End If End If Session.CodePage = Session("FP_OldCodePage") Session.LCID = Session("FP_OldLCID") %>
Answers must be submitted by 8:00am Monday, Feb 18th.
Read CP Chapter 9 Sections 1-4 and P3 Chapter 7 Section 3 up to "Changing Circular Motion"