Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Intelligent Information And Database Systems Asian Conference Aciids 2012 Kaohsiung Taiwan March 19 21 2012 Proceedings Part 3 Lnai 7198

Authors: Jeng-Shyang Pan ,Shyi-Ming Chen ,Ngoc-Thanh Nguyen

2012th Edition

3642284922, 978-3642284922

More Books

Students also viewed these Databases questions

Question

How does an organization know if it is pursuing optimal strategies?

Answered: 1 week ago