Computers and Technology

Find the maximum value and minimum value in milestracker. assign the maximum value to maxmiles, and the minimum value to minmiles. sample output for the given program: min miles: -10max miles: 40#include using namespace std; int main( ) { const int num_rows = 2; const int num_cols = 2; int milestracker[num_rows][num_cols]; int i = 0; int j = 0; int maxmiles = -99; // assign with first element in milestracker before loop int minmiles = -99; // assign with first element in milestracker before loop milestracker[0][0] = -10; milestracker[0][1] = 20; milestracker[1][0] = 30; milestracker[1][1] = 40; /* your solution goes here */ cout < < "min miles: " < < minmiles < < endl; cout < < "max miles: " < < maxmiles < < endl; }

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 17:30, uh8hardiek
Ou listened to a song on your computer. did you use hardware or software?
Answers: 2
image
Computers and Technology, 22.06.2019 20:30, fickllyd000
In this lab, you complete a prewritten c program that calculates an employee’s productivity bonus and prints the employee’s name and bonus. bonuses are calculated based on an employee’s productivity score as shown below. a productivity score is calculated by first dividing an employee’s transactions dollar value by the number of transactions and then dividing the result by the number of shifts worked.
Answers: 3
image
Computers and Technology, 23.06.2019 10:00, austintules2005
Whats three fourths of 15(this is supposed to be in math but i clicked too fast)
Answers: 1
image
Computers and Technology, 23.06.2019 12:40, melaniem50
Curriculum exam to process a resident's payment, you must click on onesite payments home page. from the a. reports b. my settings o c. transactions o d. rent tab
Answers: 1
Do you know the correct answer?
Find the maximum value and minimum value in milestracker. assign the maximum value to maxmiles, and...

Questions in other subjects: