1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Elina [12.6K]
3 years ago
14

Create a php user defined function called MinMax. The function accepts two numbers as arguments and it returns the string: "The

minimum number is x and the maximum number is y" where x and y are the minimum and the maximum numbers respectively. For example, if the numbers 20 and 4 are passed to the function MinMax, it should return the string:
Computers and Technology
1 answer:
Diano4ka-milaya [45]3 years ago
5 0

Answer:

<?php

function MinMax($x,$y) {

 if($x > $y){

     echo("The minimum is ".$y." and the maximum number is ".$x);

 }

 else{

   echo("The minimum is ".$x." and the maximum number is ".$y);    

 }

}

MinMax(20,4);

?>

Explanation:

<?php

This defines the user function with two parameters x and y

function MinMax($x,$y) {

This checks if parameter x is greater than parameter y

 if($x > $y){

If yes, it prints x as the maximum and y as the minimum

     echo("The minimum is ".$y." and the maximum number is ".$x);

 }

If otherwised

 else{

If yes, it prints y as the maximum and x as the minimum

   echo("The minimum is ".$x." and the maximum number is ".$y);    

 }

}

This calls the function

MinMax(20,4);

?>

You might be interested in
What do GUI use except​
gregori [183]

Answer:

Lol this is your first question.

Explanation:

This is so easy how is this even a question

4 0
3 years ago
With which type of satellite is there a propagation delay?
Flauer [41]

Geostationary satellites have a high propagation delay.

8 0
3 years ago
Plato: A university wants to install a client-server network. Which feature do you think is important for them as they set up th
Lana71 [14]

Answer:

its sending emails and low cost to set up

Explanation:

this is how most universities work and how they do things

5 0
3 years ago
Alice is an investor who has created a device controlled by an app that will water plants automatically. Alice has no experience
oksian1 [2.3K]

Answer:

3rd one

Explanation:

took test

5 0
3 years ago
Memory unit is amount of data that can be stored in a storage unit true or false​
vladimir1956 [14]

Answer:

amount of data and the researcher in a bit and I'll get you can use my card if I'm going well for us the best part is a copy sir pasenya the same thing I

4 0
3 years ago
Other questions:
  • Operating systems that have windows and icons have which type of user interface?
    15·1 answer
  • What are three situations when recursion is the only option available to address problems?
    10·1 answer
  • What is the first step in planning a multi-table query?
    14·1 answer
  • What occurs when an application sends user-fed data directly to a web browser without authenticating or deleting the content? Cr
    15·1 answer
  • Different video files and ______ can cause compatibility issues to arise between computer systems.
    8·1 answer
  • What is the final value for X ?<br><br> x= 1<br><br> x=13<br><br> x= x+3<br><br> x=0
    9·1 answer
  • The writers that most likely influenced our Founding Fathers were _____. Select all that apply. Swift and Bacon Marlowe and Kant
    14·2 answers
  • This type of connector is the most common for connecting peripherals (printers, monitors, storage devices, etc.) to a windows co
    10·1 answer
  • Which generation computer supported GUI operating system?​
    11·1 answer
  • Sort the layout options for two types of masters in PowerPoint.
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!