Question: it done in php html with xampp 2. Write a PHP program that accepts temperature as a variable and print Too Cold if value is

 it done in php html with xampp 2. Write a PHP
it done in php html with xampp

2. Write a PHP program that accepts temperature as a variable and print "Too Cold" if value is less than 10; print "Too Hot" if value is at least 34 or print "Ideal temperature" if the input is between 1 and 33. Print like below. Input 1: temperature = 15 Output 1: Ideal temperature Input 2: temperature = -2 Output 2: Too cold Input 3: temperature = 45 Output 3: Too hot 3. Write a PHP program that accepts integer array as variable as below, and display a new array by performing following modifications, The values in odd index positions must be incremented by 1 The values in even index positions must be decremented by 1. Assume the array index starts from 0. Print like below Input 1: arr = [1,2,3,4] Output 1: arr = [0,3,2,5)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!