3. Design an HTML form that asks the user to submit his/her personal data. Then write a PHP program that prints the submitted data, as the following example: Info Info x + + CO O localhost. : + + CO O localhost:8. : E Apps * Bookmarks Apps Bookmarks Full Name Full Name Ali Allam GPA GPA 3.6 Gender Male Female Gender • Male OFemale Nationality Egyptian Egyplian Non-Egyptian Resident Foreigner Nationality Egyptian Submit Submit Reset localhost8080/input/inc x + + CO O localhost:8080/Inp.. ☆ E Apps * Bookmarks 3 CNDC - SSL VPN Ser Personal Information Fullname: Ali Allam GPA: 3.6 Gender: Male Nationality: Egyptian Oegistatian Olocahot Y CO O tocaihost0 EApp* lesmart locaho E Apps* lookma Uename Succesfully Regiastered aalam Paswword Confirm Pasnord Register Reset

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
4.
Write a program that asks the user to select the month number (e.g. 5). Then, the
program prints the corresponding month name according to the following table:
3. Design an HTML form that asks the user to submit his/her personal data. Then write
a PHP program that prints the submitted data, as the following example:
11 12
Number
Month
6.
Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
4.
9
10
O Info
O Info
e
O localhost:8.
O localhost:8...
D Date ofx
O localher
Co O localhostnon *
CO O localhost 08
E Apps * Bookmarks
E Apps * Bookmarks
Apps * lookmarks
E Apps * lookmarks
Full Name
Full Name Ali Allam
Enter your date of birth
You were born on May, 13, 1998
GPA
GPA
3.6
Gender
• Male O Female
Gender
• Male OFemale
Day Month Year
Nationality Egyptian
Egyptian
Non-Egyptian Resident
Foreigner
Nationality Egyptian
13 5 1998
Submit Reset
Submit
Submit
Reset
5. Write a program that asks the user to enter the month as an integer (e.g. 4). Then, the
program prints the season according to the following table:
output color
pink
red
Months
Season
3,4,5
6,7,8
9,10,11
12,1,2
O localhost8080/Input/inc x
Spring
Summer
O localhost:8080/Inp.
Autumn
linen
Winter
cyan
E Apps * Bookmarks CNDC - SSL VPN Ser
Personal Information
O Season x
D localhe x
Co o localhost 0 I
E Apps * Boomarks
CO O localhost o
Fullname: Ali Allam
GPA: 3.6
Gender: Male
Nationality: Egyptian
E Apps * Bookmarks
Enter the month number
The sa ipring
4
Submit
O Registration x
O locahost x
+ cO O localho 6 I
CO O localhost 0
10. A client applies for a bank loan to buy home appliances. The banker enters the
loan amount and the interest rate, then the program prints a detailed statement
E Apps * ookmars
E Apps ookmarka
Usermame
Successfully Registered
al alam
of the total amount required to be paid throughout 12 months, as shown below.
The following formula is used by the bank to calculate the amount to be paid
according to the number of months:
Password
Confirm Password
Register
Reset
Amount = Loan x (1+ Interest)month
Note: Use the PHP function pow(base,exp). i.e. pow(5,3)=5'
O Loan Calcx
O localhost x
Write a program that calculates the factorial of a number (N), using the
following formula: [ n*(n-1)*(n-2)* ... *2*1], where N is an input entered by
the user. (e.g. 5! = 5*4*3*2*1 = 120)
8.
O local
*** O >»
O local
*** O >
Loan Amount
10000 Egyptian Pounds
Months
Amount
Interest Rate
0.04
Modify the previous program to print the factorial of all the numbers between
I and N in a tabular format as the following example:
9.
10000
Loan Statement
10400
2
10816
O localhos x
11248.64
11698 5856
O O localhost:8.
5
12166.529024
E Apps
* Bookmarks
12653.19018496
7.
13159.317792358
n n!
13685.690504053
1 1
O Facto x
9
14233.118124215
2.
O localhost 8
10
14802.442849183
E Apps * Bookmarks
36
15394.540563151
11
4 24
12
16010.322185677
Enter a number 6
Get Factorial
5 120
6 720
Transcribed Image Text:4. Write a program that asks the user to select the month number (e.g. 5). Then, the program prints the corresponding month name according to the following table: 3. Design an HTML form that asks the user to submit his/her personal data. Then write a PHP program that prints the submitted data, as the following example: 11 12 Number Month 6. Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec 4. 9 10 O Info O Info e O localhost:8. O localhost:8... D Date ofx O localher Co O localhostnon * CO O localhost 08 E Apps * Bookmarks E Apps * Bookmarks Apps * lookmarks E Apps * lookmarks Full Name Full Name Ali Allam Enter your date of birth You were born on May, 13, 1998 GPA GPA 3.6 Gender • Male O Female Gender • Male OFemale Day Month Year Nationality Egyptian Egyptian Non-Egyptian Resident Foreigner Nationality Egyptian 13 5 1998 Submit Reset Submit Submit Reset 5. Write a program that asks the user to enter the month as an integer (e.g. 4). Then, the program prints the season according to the following table: output color pink red Months Season 3,4,5 6,7,8 9,10,11 12,1,2 O localhost8080/Input/inc x Spring Summer O localhost:8080/Inp. Autumn linen Winter cyan E Apps * Bookmarks CNDC - SSL VPN Ser Personal Information O Season x D localhe x Co o localhost 0 I E Apps * Boomarks CO O localhost o Fullname: Ali Allam GPA: 3.6 Gender: Male Nationality: Egyptian E Apps * Bookmarks Enter the month number The sa ipring 4 Submit O Registration x O locahost x + cO O localho 6 I CO O localhost 0 10. A client applies for a bank loan to buy home appliances. The banker enters the loan amount and the interest rate, then the program prints a detailed statement E Apps * ookmars E Apps ookmarka Usermame Successfully Registered al alam of the total amount required to be paid throughout 12 months, as shown below. The following formula is used by the bank to calculate the amount to be paid according to the number of months: Password Confirm Password Register Reset Amount = Loan x (1+ Interest)month Note: Use the PHP function pow(base,exp). i.e. pow(5,3)=5' O Loan Calcx O localhost x Write a program that calculates the factorial of a number (N), using the following formula: [ n*(n-1)*(n-2)* ... *2*1], where N is an input entered by the user. (e.g. 5! = 5*4*3*2*1 = 120) 8. O local *** O >» O local *** O > Loan Amount 10000 Egyptian Pounds Months Amount Interest Rate 0.04 Modify the previous program to print the factorial of all the numbers between I and N in a tabular format as the following example: 9. 10000 Loan Statement 10400 2 10816 O localhos x 11248.64 11698 5856 O O localhost:8. 5 12166.529024 E Apps * Bookmarks 12653.19018496 7. 13159.317792358 n n! 13685.690504053 1 1 O Facto x 9 14233.118124215 2. O localhost 8 10 14802.442849183 E Apps * Bookmarks 36 15394.540563151 11 4 24 12 16010.322185677 Enter a number 6 Get Factorial 5 120 6 720
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY