Question
Completely lost on how to complete this please help :( Below I have written a main function for you. I have also shown what the
Completely lost on how to complete this please help :(
Below I have written a main function for you. I have also shown what the output should be. You are notallowed to change main in any way nor add static variables. Implement the functions to make the program make the correct output. These ones here. Below. No changing. Seriously. Scorn otherwise. Content can be seen at grahamsmallwood.com/wp-content/uploads/2013/01/Homework74.pdf
public static void main(String[] args)
{
///// System.out.println("Enter first number between 1 and 10") int tFirst = GetGoodInt(1, 10)
System.out.println("Enter second number between 1 and 10")
int tSecond = GetGoodInt(1, 10) int tAnswer = BlertTwoNumbers(tFirst, tSecond)
System.out.println(tAnswer) ///// String tPony = "Pony" String tMonkey = "Monkey"
String tMonster = tMonkey+tPony for(int i = 0 i < 8 i++ ) tMonster = PerformScience(tMonster, tMonkey)
System.out.println(tMonster)
} // This doesnt return until it has a good number. (It doesnt rely on the caller to do the loop.)
static int GetGoodInt(int tLow, int tHigh)
{
???
}
// To Blert is to raise the second number to the first's power and then subtract two // *coughimportMathcough*
static int BlertTwoNumbers(int tOne, int tAnother )
{
???
}
// Insert creature two in to the middle of creature one. Science! // Hamster and Emu make a HamEmuster
static String PerformScience( String tCreatureOne, String tCreatureTwo )
{
???
}
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started