#P2 Capital quiz on Android platform


Project Background
Develop a Quiz application to Display Country name and four capital options (out of one is correct). User could tap on any of the four options to select correct capital. Next question will be displayed once user selects correct answer.

Output
  
   

Project Structure in the Eclipse



























Source code 



package com.myapps.model;



/**

 * Model to hold information about each question and related four answer options,

 * out of which one is correct.

 * @author Santosh Lawoo

 * @version 1.2
 */
public class Question {
           private int index;
           private String description;
           private String answer;
           private String[] options;
          
          
           public int getIndex() {
                      return index;
           }
           public void setIndex(int index) {
                      this.index = index;
           }
           public String getDescription() {
                      return description;
           }
           public void setDescription(String description) {
                      this.description = description;
           }
           public String getAnswer() {
                      return answer;
           }
           public void setAnswer(String answer) {
                      this.answer = answer;
           }
           public String[] getOptions() {
                      return options;
           }
           public void setOptions(String[] options) {
                      this.options = options;
           }
}






-----------------------

2 comments :

  1. can you send me your project ?
    ths my email mc.miftahudin@gmail.com

    pleaseee.........

    ReplyDelete
  2. excellent work Santosh!!!.....please you send me your source code?....thank you so very much!!!...camil.sub.arvech@gmail.com

    ReplyDelete