Answer:
list = {10, 18, 24, 75, 70, 20, 60, 35}
Explanation:
Selection is a sorting algorithm that will set a cursor position and search for a minimum number from the list. When the minimum number is found, that minimum number will be swapped with the number in the cursor position. Only one number will be swapped and sorted in one iteration of outer loop. To sort the next number in the following outer loop iteration, the cursor will be moved to the next position and repeat the same search and swapping process as in the first iteration. When finishing all the iterations of outer loop, all numbers shall be sorted in ascending order.
Answer:
The answer is described below
Explanation:
E safety means means protection of private information and personal safety when using the internet. E safety involve the protection of private information, passwords against identity theft or property theft. A persons private information, passwords can be gotten through the use of phishing or malwares.
Also, the use of internet has exposed people to cyber bullying(i.e abuse of an individual), stalking, engaging underage children into sexual relationships and sextortion.
E safety help protect children from harmful content and services as those listed.
Answer:
#include <iostream>
using namespace std;
void miles_to_km(float &miles)//function to convert miles to kilo meters.
{
miles=miles*1.6;
}
int main() {
float miles;
cout<<"Enter the miles"<<endl;
cin>>miles;//taking input of the miles..
miles_to_km(miles);//calling function that converts miles to km..
cout<<"The number of km is "<<miles<<endl;//printing the km.
return 0;
}
Output:-
Enter the miles
54
The number of km is 86.4
Explanation:
I have created a function miles_to_km of type void which has the argument miles passed by reference.In the function the variable miles is converted to kilo meters.Then in the main function the function is called with the value prompted from the user.Then printing the changed value.