Assume your team is part of a research project. Your team wants to create a simple software that compares two strings, but they're undecided about whetheror not to use pointers. Your group now has the duty of creating or converting your initial code into a pointer-based compare two strings program and determining whether or not pointers are useful in this program.
Example like this:
#include <iostream>
using namespace std;
string convert(string s)
{
for (int i=0; i<s.length() ;i++)
{
s[i]=toupper (s[i]);
}
return s;
}
int main()
{
string string01,string02;
cout<<"String 1 : ";
cin>>string01;
cout<<"String 2 : ";
cin>>string02;
if(convert(string01)==convert(string02)) {
cout<<"Two strings is equal";
}
else{
cout<<"Two strings is not equal";
}
}
If the events have the same theoretical probability of happening, then they are called
Consider a population consisting of the values (1, 3, 8), n= 2 with replacement.
The time taken to assemble a car in a certain plant is a random variable having a normal
distribution of 20 hours and a standard deviation of 2 hours. What is the probability that a
car can be assembled at this plant in a period of time less than 19.5 hours?
x>0, n>=1, prove that 1 + x + x2 + .....+ x2n >= (2n+1)xn
Elucidate how A* algorithm is better than Best First Search algorithm with the help of a suitable example.
Consequences of Unemployment and then respond to the following:
Based on your own life observations, identify one personal and one social consequence of unemployment in your country or society. What role, if any, do you believe the government should play to reduce negative consequences
Write a complete program to convert infix expression to postfix expression using stack implemented through linked list. Keep in mind limited operations available to stack.
Trace the curve y^2=x^2 / ((x+1)^3)
1. If a population has a mean of 5.7, what is the mean of the sampling distribution of its means?