Hi, i am HILARIOUSLY and embarrassingly new to Java, i don’t even know the difference between JAVA and JavaScript (i plan to learn it tho.)
So my main reason for coming here is this..
I am VERY new to Java, as i said earlier in fact the only thing i’m solid at is If statements and variables; and i also love the T.V. show Shark Tank…so i decided to create a Javascript dialogue box code (if you would call it that) to calculate the company’s presumed worth from what their equity is and how much they are asking for that equity. The code works fine, and i am a little proud of it although its REALLY noobish and is probably a disgrace to the high level stuff done on here.
The problem is with the feedback part. here’s what i wanted to do
out of 10 if they rate me above or equal to 7 :> confirm(“Thank you for the feedback”)
if they rate me below 6 :> confirm(“good to know, I will continue to improve my skills”)
and if they rate me above 10 :> confirm(“WELL, thank you, i will still continue to improve my skills”)
Here is the code:
[CODE]
var equity=prompt(“How much equity (%) are they offering”)
var price=prompt(“How much money ($) are they asking for that equity”)
var cal1=100/equity
var cal2=cal1*price
confirm(“the entrepreneur is valuing their company at $”+ cal2)
var feedback=prompt(“rate our Shark Tank equity/Company value calculator out of 10”)
if (feedback>=7)
{
confirm(“Thank you for the feedback”)
}
// feedback
if (feedback<6)
{ confirm(“good to know, I will continue to improve my skills”)
}
if (feedback>10)
{
confirm(“WELL, thank you, i will still continue to improve my skills”)
}
how do i make the above10 rating confirm(“WELL, thank you, i will still continue to improve my skills”) show up without affecting the first confirm(“Thank you for the feedback”).