Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

4. Write a PHP program that calculates and prints the area and perimeter of a rectangle whose width is 4cm and its height is 6cm.

image text in transcribed
4. Write a PHP program that calculates and prints the area and perimeter of a rectangle whose width is 4cm and its height is 6cm. Hint: area = width height perimeter =2( width + height ) 5. Write a PHP program that prints the diameter, area and circumference of a circle of a radius of 5.25cm. Use the constant value 3.14 for pi (). Hint: diameter =2r area =r2 circumference =2r 6. Write a PHP program that calculates and prints both the arithmetic mean and the harmonic mean of the two integers x and y, where x=12 and y=13. Arithmetic mean =2x+y Harmonic mean =1/x+1/y2 7. Given that $a=6,$b=7,$c=2, and $d=5, figure out the value of $x for the following expressions (do not write a program): 1) $x=Sa5.0 2) $x=$d/$c+6; 3) $x=$a+$b/($c$d); 4) $x=$a+$b/$c$d; 5) $x=($a+$b)/$c$d 6) $x=($a/($c$d)+$b)($c$d) 7) $x=($a/$c$d+$b)$c$d 8) $x=$b%$dSc+$a

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Introduction To Data Mining

Authors: Pang Ning Tan, Michael Steinbach, Vipin Kumar

1st Edition

321321367, 978-0321321367

More Books

Students also viewed these Databases questions

Question

Define supply chain and supply chain management.

Answered: 1 week ago

Question

Which quarter had the highest total purchases?

Answered: 1 week ago

Question

=+3. How does an agenda help make a meeting more successful? [LO-3]

Answered: 1 week ago

Question

=+1. What are five characteristics of effective teams? [LO-1]

Answered: 1 week ago