Computers and Technology, 27.11.2019 20:31 kcombest2979
Revise the meanmedian class so that the user can enter any number of values up to 20. if the list has an even number of values, the median is the numeric average of the values in the two middle positions. allow the user to enter to quit entering numbers. import java. util.*; class meanmedian2{public static void main(string[] args){// int[] nums; int num = 0; string entry; string list = "you entered: "; int a, b; int temp; double median; int total = 0; double mean = 0; final int quit = ; int size = 0; for(a = 0; num ! = quit & & a < nums. length; ++a){// your code here}system. out. println("size is " + a); if(num ! = quit)size = nums. length; elsesize = a - 1; system. out. println("size is " + size); system. out. println(list); int comparisonstomake = size - 1; for(a = 0; a < size - 1; ++a){for(b = 0; b < comparisonstomake; ++b){if(nums[b] > nums[b + 1]){temp = nums[b]; nums[b] = nums[b + 1]; nums[b + 1] = temp; }}--comparisonstomake; } // your code heresystem. out. println("the mean is " + mean +" and the median is " + median); }}
Answers: 2
Computers and Technology, 23.06.2019 00:10
Write a function so that the main0 code below can be replaced by the simpler code that calls function mphandminutes tomiles0. original main0 int main) l double milesperhour-70.0; double minutestraveled = 100.0; double hourstraveled; double milestraveled; hourstraveled = minutestraveled / 60.0; milestraveled = hourstraveled * milesperhour; cout < "miles" 2 using namespace std; 4 /* your solution goes here/ 6 int maino 1 test passed 7 double milesperhour 70.0 all tests passed 8 double minutestraveled 100.0; 10 cout < < "miles: " < < mphandminutestomiles(milesper-hour, minutestraveled) < < endl; 12 return 0; 13
Answers: 1
Computers and Technology, 23.06.2019 22:00
Technician a says engine assemblies can be mounted longitudinally in a chassis. technician b says engine assemblies can be mounted transversely in a chassis. who is correct?
Answers: 2
Computers and Technology, 25.06.2019 08:10
Which of the following is a difference between the systems development life cycle (sdlc) and extreme programming (xp)? the sdlc model has a separate planning and analysis phase, whereas xp combines both the phases into one phase.in the sdlc model, changes cannot be made to a system once it is delivered to the user, whereas the xp method delivers the system to the users and then make changes suggested by the user.the sdlc model develops an entire system at once, whereas xp uses incremental steps to improve an information system's qualitydevelopers following the sdlc model cannot go on to the next phase until the current phase is finished, whereas in xp, developers can move to any phase from the current phase.
Answers: 1
Revise the meanmedian class so that the user can enter any number of values up to 20. if the list ha...
Mathematics, 20.10.2020 20:01
Biology, 20.10.2020 20:01
Mathematics, 20.10.2020 20:01
Mathematics, 20.10.2020 20:01
Mathematics, 20.10.2020 20:01
Geography, 20.10.2020 20:01
Mathematics, 20.10.2020 20:01
Computers and Technology, 20.10.2020 20:01
Mathematics, 20.10.2020 20:01