subject

Here is a set of month data for a fictitious country that does not use the twelve-month roman calendar. $monthDays = array ('Splorch' => 23, 'Sploo' => 28,
'Splat' => 2, 'Splatt' => 3,
'Spleen' => 44, 'Splune' => 30,
'Spling' => 61, 'Slendo' => 61,
'Sploctember' => 31, 'Splictember' => 31,
'Splanet' => 30, 'TheRest' => 22);
a. Write a program that finds the number of days in the shortest month and the longest month in this calendar. Ideally, you will do so without relying on loops. Instead, you should take advantage of built-in functions for exploring and manipulating arrays. You may wishto refer to the PHP documentation to identify the functions that determine the minimum and maximum values within an array.
b. Write a program that finds the total number of days in a year with this arrangement of months. Again, you should try to do so without relying on explicit loops. (You certainly should assume no knowledge of the underlying data.)
c. Write a program that prints the name of the shortest and longest month.
Exercise 2: Sorting Associative Arrays
Consider your program that prints out the table of months and the corresponding number of days in that month.
a. Suppose we arranged to sort the array before printing the table. What effect do you expectsuch sorting to have on the output?
b. Check your answer experimentally

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 22:00
Which one of the following would administrators use to connect to a remote server securely for administration? a. telnetb. secure file transfer protocol (sftp)c. secure copy (scp)d. secure shell (ssh)
Answers: 1
question
Computers and Technology, 22.06.2019 10:40
When running anti-virus software , what could be a reason where recipitent is not guaranteed that data being streamed will not get interrupted?
Answers: 1
question
Computers and Technology, 22.06.2019 16:00
You have inserted new slides based on a word outline. how do you format these new slides to match the powerpoint presentation formatting? a. select all slides in the presentation and click format on the home tab. b. select the new slides and click reset on the home tab. c. select all slides in the presentation and click reset on the home tab. d. select the new slides and click format on the home tab.
Answers: 3
question
Computers and Technology, 22.06.2019 22:00
During physical science class ben and jerry connected three identical lightbulbs in parallel to a battery where happens when ben removes one of the lightbulbs from it’s socket
Answers: 2
You know the right answer?
Here is a set of month data for a fictitious country that does not use the twelve-month roman calend...
Questions
question
Mathematics, 06.05.2020 02:11
question
Mathematics, 06.05.2020 02:11
question
Mathematics, 06.05.2020 02:11
question
Mathematics, 06.05.2020 02:11
Questions on the website: 13722363