Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

help me plz the code use C++ Title: Maximum & Minimum Use the code for sorted and unsorted list that we created before and add

help me plz
the code use C++ image text in transcribed
Title: Maximum & Minimum Use the code for sorted and unsorted list that we created before and add two new functions: 1. Max: to print the Max number in the inserted List 2. Min: To print the Minimum in the Inserted List AIM: To find the maximum and minimum value in a given list of numbers ALGORITHM: Step 1: Initialize the variables in the main function Step 2: Get the total number of items to be inserted int the list before you insert the items to the list. Step 3: Insert the items to the list (both Sorted and Unsorted) Step 4: The function is called. If there is only one element then the max and min is the same element Step 5: If there is two element then check if a[x] is less than a[y] then a[x] is min and aly) is max Step 6: If there is more number of items mid value is found Step 7: Now max is assigned to t1 and min to t2 Step 8: If the max is less than t1 the max is t1, if min is greater than t2 the min t2 Step 9: The min and max values are found and printed 22 INPUT How many numbers you want to add: 6 Enter the numbers: 33 59 11 67 92 05 OUTPUT Maximum Number = 92 Minimum Number = 05

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_2

Step: 3

blur-text-image_3

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

Professional Microsoft SQL Server 2012 Administration

Authors: Adam Jorgensen, Steven Wort

1st Edition

1118106881, 9781118106884

More Books

Students also viewed these Databases questions

Question

What are the Five Phases of SDLC? Explain each briefly.

Answered: 1 week ago

Question

How can Change Control Procedures manage Project Creep?

Answered: 1 week ago