This helps people to ask questions or report if something wrong happens but yeah it can be included in the profile collection.hope this helps.
Explanation:
the process of displaying the information from the table is called query
<h2>hey friend </h2><h2>your answer is here </h2><h2>I hope it will be helpful you </h2><h2>please mark as brainiest answer </h2><h2>thank you </h2>
Answer:
#include<iostream>
using namespace std;
int main() {
cout<<"Enter The Size Of Array: ";
int size;
bool isBestCase=false;
cin>>size;
if(size<=0){
cout<<"Error: You entered an incorrect value of the array size!"<<endl;
return(0);
}
int array[size], key;
cout<<"Enter the numbers in the array, separated by a space, and press enter:";
// Taking Input In Array
for(int j=0;j<size;j++){
cin>>array[j];
}
//Your Entered Array Is
for(int a=0;a<size;a++){
cout<<"array[ "<<a<<" ] = ";
cout<<array[a]<<endl;
}
cout<<"Enter a number to search for in the array:";
cin>>key;
for(i=0;i<size;i++){
if(key==array[i]){
if(i==0){
isBestCase=true; // best case scenario when key found in 1st iteration
break;
}
}
}
if(i != size){
cout<<"Found value "<<key<<" at index "<<i<<", which took " <<++i<<" checks."<<endl;
} else{
cout<<"The value "<<key<<" was not found in array!"<<endl;
cout<<"We ran into the worst-case scenario!"; // worst-case scenario when key not found
}
if(isBestCase){
cout<<"We ran into the best case scenario!";
}
return 0;
}
Explanation:
The C++ source dynamically generates an array by prompting the user for the size of the array and fills the array with inputs from the user. A search term is used to determine the best and worst-case scenario of the created array and the index and search time is displayed.
I'm guessing your television if it's a flat screen
If the load weighs 350 N, the effort that is required to lift the weight is 70 N
To answer the question, we need to know what mechanical advantage is.
<h3>What is mechanical advantage?</h3>
The mechanical advantage of the hydraulic lift M.A = L/E where
<h3>Effort required to lift the weight</h3>
Making E subject of the formula, we have
E = L/M.A
Given that
substituting the values of the variables into the equation, we have
E = L/M.A
E = 350 N/5
E = 70 N
So, the effort that is required to lift the weight is 70 N
Learn more about mechanical advantage here:
brainly.com/question/26440561
#SPJ1