Input
Output
(Sorry for not being detailed)
Answer:
A linear search is one that scans every record/file until it discovers the value being searched for.
Binary search, on the other hand, is also known as <em>Logarithmic search</em>. It is used to locate the position of a value inside an array that has already been sorted.
The linear search will return the lowest value faster than the binary search when small arrays are involved.
This will only be feasible when the array is sorted prior.
Cheers!
Answer:
1. Understand your audience
2. Add a header
3. Put a face to the name
4. Write a professional headline
5. Be contactable
6. Summarize your story
7. Showcase your experience
8. Let your network speak for you
Hoped this helped
What’s the question?
Always remember to add any reasonable information for someone to help or answer!!
Have a good rest of your day.
Answer:
In C++:
#include<iostream>
using namespace std;
int main(){
int numDays;
cin>>numDays;
cout<<"Days: "<<numDays<<endl;
return 0;
}
Explanation:
This line declares numDays as integer
int numDays;
This line gets user input for numDays
cin>>numDays;
This line prints the required output and ends with a newline
cout<<"Days: "<<numDays<<endl;