Visit Blog

Explore Tumblr blogs with no restrictions, modern design and the best experience.

Fun Fact

If you dial 1-866-584-6757, you can leave an audio post for your followers.

Trending Blogs
#advanced placement

var originalCost = “itemCost”;

var newPrice;

var discount = “discount”;

onEvent(“startBtn”, “click”, function( ) {

  setScreen(“calculator”);

});

onEvent(“itemCost”,“click”, function() { 

  getNumber;

});

onEvent(“continue”,“click”, function() {

  setScreen(“calculate2”);

});

onEvent(“calculate”,“click”, function() {

  setScreen(“price”);

  calculate();

  setText(“finalPrice”, newPrice);

});

onEvent(“resetBtn”,“click”, function(){

  reset();

});

/// something isnt working here, I keep getting NaN “not a number as my result when i calculate”

function calculate() {

 percentage();

 newPrice = originalCost - (originalCost * discount);

}

function percentage() {

  discount = discount/100;

}

function reset() {

  onEvent(“resetBtn”,“click”,function() {

    setScreen(“calculator”);

  });

}


I am working on an app for my AP Computer Science Principles Create Portion, and I cannot get the app to run without the end result number showing as NaN, which I assume means “Not a Number”. If anybody could help that would be amazing. 

1 notes · See All

ap euro exam discussion?

I just finished my ap euro exam! I was talking to my friends and we all had different questions. So anyways, how was your exam? I would love to know! I got fairly lucky with my prompt (I got the French Revolution enlightenment vs economic one). I think I did fairly well. Love to all that read this :)

7 notes · See All

may 11 2020 - apush

ap exams start this week and im trying to study as easily as i can–im trying not to burn myself before my first exam, friday. so, today was sushi, crash course, incense, and just letting myself be calm before i go into cramming mode. just three exams between me and the end of junior year. 

studynwrite
studynwrite
23 notes · See All
Next Page