Tuesday, June 30, 2020

Answering Programming Questions I.E. Practical Coding - 550 Words

Answering Programming Questions I.E. Practical Coding (Other (Not Listed) Sample) Content: Computer Science Assignment[Student Name Here][Institutions Name Here][Professors Name Here][Date Here]Question 1Design a form for a publishing house called foot bar that allows the books to be ordered via the Internet. The form should include the customers name, address, phone no. and Books title, author and edition. Payment has to be made in cash on delivery so no credit card information is needed.131445063501295400441960Book Title:Author:1285875698600Edition:1285875-635Customers Name:12954008890Address:center4222750015525744318000013049258890Phone Number:263715518415RESET00RESET15335258255SUBMIT00SUBMITNew Page 1 FORM TO PURCHASE BOOKONLINE Book Title:;nbsp; Author:;nbsp;nbsp; Edition:nbsp;nbsp;nbsp;nbsp; Customer's Name : T NAME="NAME2" TYPE = "TEXT" SIZE="50" Address:nbsp;nbsp; Phone Number: PUT NAME="NAME4" TYPE = "TEXT" SIZE="18" webbot-action="--WEBBOT-SELF--"onSubmit="location.href='_derived/nortbots.htm';returnfalse;" WEBBOT-onSubmit nbsp;;nbsp;nbsp;nbsp;;name="B1";nbsp; Question 2Write a CGI program that displays a count of how many times a browser on each computer has contacted the serverecho Content -type: text /htmlechoN=$QUERY_STRINGEcho " HTML "Case "x$N" inx) N = 1Echo "This is the initial page. BR BR "; ;X[0-9]*) N = 'expr$n + 1'Echo "you have displayed this page $N times. BR BR ; ;*) echo "The URL you used is inval id /HTML "exi t 0; ;esacecho " A HREF=\ht tp: / /$SERVER_NAME$SCRIPT_NAME?$N\ "echo " Click here to refresh the page. / A"Question 3Write an applet that sets the background colour to cyan and foreground colour to red and displays a message that illustrates the order in which various applet methods are called when an applet starts up. For example: inside init()inside start()import java.awt.*import java.applet.*public class Method _ order Extends Applet{String msg;/ /Sets the background and foreground color. Public void init( ){setBackground(Color.cyan);setForeground(Color.red);msg = "inside init 0 - - ";}/ / Initialize the stri ng to be displayed.public void init ( ){msg = " inside start O - - ";}lSets the background and foreground color.public void paint(Graphics g){msg = " inside pain...

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.