Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
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

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

Learning MySQL Get A Handle On Your Data

Authors: Seyed M M Tahaghoghi

1st Edition

0596529465, 9780596529468

More Books

Students also viewed these Databases questions