Sunday, November 22, 2015

"Columbus.exe" Lisette del Pino

Program that user sees: 

Source code:


Materials: BLUEJ IDE (Enviroment for small, simple text based Java programs, free download)

Statement: In this piece I wrote the program so that a user (in this case supposedly Isabella Queen of Spain in 1492) could sit down at the computer and talk to Christopher Columbus during his sixth month in North America. While the pictures do not show it well, the user must type responses to Christopher's pressing yet romantic questions. By implying a secret love between the "most catholic and virtuous" queen that Spain has ever had and a ruthless conquistador I am further creating and embodying the character of the seemingly hyper-masculine and self-obsessed historical figures that established the norms of my countries. This piece was an experiment in characterization through text based early 2000's visual computer language rather than through performance. The source code is below and can be copy/pasted into an Java IDE.
Source code:

/**
 * The purpose of this program is for the user to be able to communicate to Christopher Columbus in the year 1492
 * Intended audience is Felipe and Isabella, the King and Queen of Spain. 
 * EDIT: added output for maximum heart rate of user
 * EDIT: added && logical operator to simplify boolean statement
 * 
 * @Lisette del Pino)
 * @11/13/15
 */
import java.util.Scanner;
public class CristobalColon
{
    public static void main(String[] args)
    {
        System.out.println("Isabella mi reina Isabella la \n reina bella \n");
        System.out.println("Isabella and Felipe el rey y la reina de Dios");
        System.out.println("Les habla Cristobal");
        System.out.println("___________________________________________________________________________________________________________");
        System.out.println();
        //Initialize and declare variables
        
        double months; 
        double times;
        double enteredHeartRateRiches;
        String answerOne; //answer to war question
        String answerTwo; //answer to if you miss me
        String answerThree;
        String answerFour;
        
        boolean inLove; 
        boolean ifMiss;
        boolean ifSuppliesOnWay;
        boolean ifAnyNewWar;
        Scanner in = new Scanner(System.in); //import scanner methods
        
        //Prompt user for input
        System.out.println("Please enter how long in months it has been since I have gone away: ");
        months = in.nextDouble();
        System.out.println();
        System.out.println("It has been " + months + " months but without Espana it has felt like " + (months * 100.0) + " months ");
        
        System.out.println("Please enter the number of times the thought of me has passed through your head ");
        times = in.nextDouble();
        System.out.println();
        System.out.println("You have thought of me " + times + " times but I have remembered you  " + (times * 100.0) + " times in " + months);
        System.out.println();
                
        System.out.println("Please enter your heart rate right now as you think of me amassing riches for the crown: ");
        enteredHeartRateRiches = in.nextDouble();
        System.out.println();
        System.out.println("My heart beats at least thirty times as much when I think of you, at least, " + (enteredHeartRateRiches * 30) + "times when \n I think about \n you");
        System.out.println();
        
        System.out.println("We have run out of food and are eating of the little animals that walk on the coast over our \n measurement strings \n they are often tangled and our \n measurements are inaccurate");
        System.out.println("I have been away for \n" + months + " months and you have thought of me " + times + "times");
        System.out.println("And you have thought of me exactly " + times + " times and your heart rate as you think of me is " + enteredHeartRateRiches + " bpm ");
        
        System.out.println();
        
        System.out.println("Please enter how long in months it has REALLY BEEN been since I have gone away: ");
        months = in.nextDouble();
        System.out.println();
        System.out.println("It has been " + months + " months but without Espana it has felt like " + (months * 100.0) + " months ");
        
        System.out.println("Please enter the number of times the thought of me has passed through your head REALLY ");
        times = in.nextDouble();
        System.out.println();
        System.out.println("You have thought of me " + times + " times but I have remembered you  " + (times * 100.0) + " times in " + months);
        System.out.println();
                
        System.out.println("Please enter your heart rate right now as you think of me amassing riches for the crown REALLY REALLY REALLY: ");
        enteredHeartRateRiches = in.nextDouble();
        System.out.println();
        System.out.println("My heart beats at least thirty times as much when I think of you, at least, " + (enteredHeartRateRiches * 30) + "times when \n I think about \n you");
        System.out.println();
       
        System.out.println("Has there been a war or war acts against Spain since I left? Answer 1 for yes or 2 for no");
        answerOne = in.next();
        System.out.println(" nice ");
        
      
        
      
        
        
        
         
    } //end main
}//end class TargetZone