Question: Write it using PHP. The purpose of this assignment is to create an interactive website by using web forms, manipulating strings and arrays, and validating/handling

Write it using PHP.

Write it using PHP. The purpose of this assignment is to create

The purpose of this assignment is to create an interactive website by using web forms, manipulating strings and arrays, and validating/handling user input and text files (for storing and retrieving information). Aims In this assignment, you will need to develop a website, "Singapore General Knowledge Quiz", that generates quizzes to test users' general knowledge of Singapore's history and geography. The website should generate quizzes on two topics: Singapore History and Singapore Geography. It will offer to the users to answer questions and score points. At the beginning of an attempt, the user should insert the nickname and choose: "Singapore History" or "Singapore Geography". In each attempt, the user starts with 0 points and can have multiple quizzes on the same or different topic. After the user finishes the quiz, the result with the number of correct and incorrect questions, gathered points from the current quiz ([number of correct questions] * 5 - [number of incorrect questions] * 3), as well as the user's overall points in the current attempt (from all quizzes) should be displayed. The user should be offered to start a new quiz on the same or another topic. Also, the user should have the option to see the overall scores of all players in the quiz (Leaderboard cumulative points of all attempts per user), or to "Exit" the quiz. The 'Leaderboard' should give an option to the user to order the players by their nicknames or greatest score. When the "Exit" option is chosen, the nickname and overall points of the user should be displayed. The option to start a new attempt (by entering the nickname) should also be given. The questions for the "Singapore History" and "Singapore Geography" topics should contain both multiple-choice questions (each question with at least 4 choices) and short-answer questions (answers are input via the text field). Every topic should have at least 10 questions in the question pool. In each quiz, 5 questions will be randomly chosen and displayed to the user. During the quiz, the user will answer questions one by one, i.e., each page only displays one question. The user can navigate the questions via the 'next' and 'pre' buttons

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!