Skip to content

Paniz-Peiravani/Sorting-Hat-Quiz-App

Repository files navigation

Sorting Hat Quiz App

Welcome to Hogwarts!

Want to know which Hogwarts House you would fall into? Come and let the Sorting Hat cast judgment upon you!

There are four houses:
Gryffindor
Hufflepuff
Ravenclaw
Slytherin

After answering all the questions, the Sorting Hat will determine your house based on your responses.

Android Studio

.xml sections

Jump on to .xml sections in Android Studio for app design

activity_main.xml -> which is the design for the first page when a user opens the app.
https://github.com/Paniz-Peiravani/SortingHatQuizApp/blob/master/app/src/main/res/layout/activity_main.xml

activity_quiz_questions.xml -> which is the design for questions sections.
https://github.com/Paniz-Peiravani/SortingHatQuizApp/blob/master/app/src/main/res/layout/activity_quiz_questions.xml

activity_result.xml -> which is the last design page that shows the user what house they are sorted into.
https://github.com/Paniz-Peiravani/SortingHatQuizApp/blob/master/app/src/main/res/layout/activity_result.xml

.java sections

Jump on to .java in android studio for java classes.

MainActivity.java -> which is class for first window of the app that ask the user name to show at the end.
https://github.com/Paniz-Peiravani/SortingHatQuizApp/blob/master/app/src/main/java/com/example/sortinghat/MainActivity.java

Questions.java ->Questions and Answers class that contains getter and setter.
https://github.com/Paniz-Peiravani/SortingHatQuizApp/blob/master/app/src/main/java/com/example/sortinghat/Questions.java

QuizQuestionsActivity.java -> Display the questions class.
https://github.com/Paniz-Peiravani/Sorting-Hat-Quiz-App/blob/master/app/src/main/java/com/example/sortinghat/QuizQuestionsActivity.java

ResultActivity.java -> Sorting the Hogwarts house and show the result.
https://github.com/Paniz-Peiravani/SortingHatQuizApp/blob/master/app/src/main/java/com/example/sortinghat/ResultActivity.java

App Overview

First, it asks a user to enter their name.

__________________________________________________________________________

After the user presses enter, it will start sorting them into their house by asking them some questions.

__________________________________________________________________________

After the user answered the last question, it will sort them to their house and shows the result.

Language and Tools

About

A quiz app developed in Java using Android Studio, allowing users to discover their Hogwarts house. Please read the readme section for more information.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages