subject
Engineering, 03.03.2020 03:49 maxgeacryne2199

Add two more statements to main() to test inputs 3 and -1. Use print statements similar to the existing one (don't use assert).import java. util. Scanner;public class UnitTesting {// Function returns origNum cubedpublic static int cubeNum(int origNum) {return origNum * origNum * origNum;}public static void main (String [] args) {System. out. println("Testing started");System. out. println("2, expecting 8, got: " + cubeNum(2));/* Your solution goes here */System. out. println("Testing completed");return;}

ansver
Answers: 3

Another question on Engineering

question
Engineering, 04.07.2019 18:10
Afluid flows with a velocity field given by v=(x/t)i.. determine the local and convective accelerations when x=3 and t=1.
Answers: 2
question
Engineering, 04.07.2019 18:10
Carbon dioxide gas expands isotherm a turbine from 1 mpa, 500 k at 200 kpa. assuming the ideal gas model and neglecting the kinetic and potential energies, determine the change in entropy, heat transfer and work for each kilogram of co2.
Answers: 2
question
Engineering, 04.07.2019 19:20
A21-tooth spur pinion mates with a 28-tooth gear. the diametral pitch is 3 teeth/in and the pressure angle is 20°, find the following values: the addendum, dedendum, circular pitch, tooth thickness, and base circle diameters.
Answers: 2
question
Engineering, 06.07.2019 02:30
A12 mm diameter shaft runs in a plain cylindrical bush 30 mm long that is located in an 18 mm diameter hole in a housing. the shaft-inner bush fit is h8 f and the outer bush-housing fit is h7-p6. make a fully cimensioned sketch of the bush with tolerances. find the maximum and minimum clearance or interference for both fits on the inner and outer diameters of the bush
Answers: 3
You know the right answer?
Add two more statements to main() to test inputs 3 and -1. Use print statements similar to the exist...
Questions
question
Social Studies, 28.09.2019 16:30