Sharing positivity.
A quote of the day utility picks a random quote from a 2D list of quotes and outputs it.
Write a program that stores quotes in a 2D array. The first index stores the quote and the second index stores the author. The program should output a random quote and the author.
Use this boilerplate code as a starting point:
Remember to add a comment before a subprogram, selection or iteration statement to explain its purpose.
You can use the following data:
Any fool can write code that a computer can understand. Good programmers write code that humans can understand.
Martin Fowler
Code is like humour. When you have to explain it, it’s bad.
Cory House
Simplicity is the soul of efficiency.
Austin Freeman
The data structure for the first quote would be initialised as:
quote[0][0] = "Any fool can write code that a computer can understand. Good programmers write code that humans can understand."
quote[0][1] = "Martin Fowler"
"Simplicity is the soul of efficiency."
- Austin Freeman
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand."
- Martin Fowler
Use these resources as a reference to help you meet the success criteria.
Run the program several times to check that your program has met the success criteria.
Check that you have: