Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Processing Fundamentals, Design, and Implementation

Authors: David M. Kroenke, David J. Auer

14th edition

133876705, 9781292107639, 1292107634, 978-0133876703

More Books

Students also viewed these Databases questions

Question

What is the most important part of any HCM Project Map and why?

Answered: 1 week ago