Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Survey hw3 #1

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified .DS_Store
Binary file not shown.
Binary file modified Junior Yr/.DS_Store
Binary file not shown.
Binary file modified Junior Yr/Spring_2012/.DS_Store
Binary file not shown.
Binary file modified Junior Yr/Spring_2012/cs350-SoftwareDesign/.DS_Store
Binary file not shown.
Binary file modified Junior Yr/Spring_2012/cs350-SoftwareDesign/survey/.DS_Store
Binary file not shown.
Binary file not shown.

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file modified Junior Yr/Spring_2012/cs350-SoftwareDesign/survey/bin/Essay.class
Binary file not shown.
Binary file not shown.
Binary file modified Junior Yr/Spring_2012/cs350-SoftwareDesign/survey/bin/Main.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified Junior Yr/Spring_2012/cs350-SoftwareDesign/survey/bin/Menu.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified Junior Yr/Spring_2012/cs350-SoftwareDesign/survey/bin/Test.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,21 @@ public void setAns(ArrayList<Response> ans){
public Response getAns(int i){
return this.correctAns.get(i);
}

public void setAns(Response res){
this.correctAns.add(res);
}

public void setAns(int i, Response res){
this.correctAns.add(i, res);
}

public void setAns(int i, String input){
Response res = new Response();
res.setResponse(input);
this.setAns(i, res);
}

public void addAns(Response r){
this.correctAns.add(r);
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
import java.io.Serializable;

public abstract class DisplayDriver {

public abstract class DisplayDriver implements Serializable {


private static final long serialVersionUID = 5320033258894212217L;

public DisplayDriver(){

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@

public class Display_Singleton {
private static Display_Singleton instance = null;
private DisplayDriver mainDriver;

protected Display_Singleton(){
mainDriver = new TextDriver();
}

public static Display_Singleton getInstance(){
if(instance == null)
instance = new Display_Singleton();

return instance;
}

public DisplayDriver getMainDriver(){
return this.mainDriver;

}

}
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,8 @@ public String getQuestionType() {
return questionType;
}

public void modify(){
this.changePrompt();
}

}
Loading