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, 22.06.2019 01:00
Search the web for two examples of digital art that you like. the examples must be from different mediums (example: one digital photo and one computer animation not two computer animations). compose an essay for each example you choose about why the piece appeals to you, and identify the medium used.
Answers: 1
question
Computers and Technology, 22.06.2019 04:30
Eye injuries usually occur as a result of all of the following things, except: a) proper machine operation b) battery explosion c) falling or flying debris d) electric welding arc
Answers: 2
question
Computers and Technology, 24.06.2019 11:00
Need fast im timed in a paragraph of 125 words, explain at least three ways that engineers explore possible solutions in their projects.
Answers: 2
question
Computers and Technology, 24.06.2019 17:40
The value of sin(x) (in radians) can be approximated by the alternating infinite series create a function (prob3_2) that takes inputs of a scalar angle measure (in radians) and the number of approximation terms, n, and estimates sin(x). do not use the sin function in your solution. you may use the factorial function. though this can be done without a loop (more efficiently), your program must use (at least) one. you may find the mod() function useful in solving the problem.
Answers: 1
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, 20.08.2019 06:20
Questions on the website: 13722363