6. Write a C++ program that take two string as input from user and check if both strings are same or not. If same, print YES, otherwise print NO.
4. A person is going on a motorway and at one point he can see roads going in three different directions. Based on the destination, he will move either toward left, right or straight. Write a C++ program that guides the traveler based on the following directions:
• If destination is Lahore, then turn left.
• If destination in Islamabad or Murree, then turn right. • Otherwise move straight.
3. Write a program that asks the user to enter a value for x and then displays the value of the following polynomial 2x^5+3x^4-x^3-2x^2+7x-6.
3. Write a program that asks the user to enter a value for x and then displays the value of the following polynomial 2x^5+3x^4-x^3-2x^2+7x-
Write a program in c++ to input your age in years.the program will convert the age in months days,hours, minutes and seconds and then print all these values on screen
Let variable = [1, [2], [[3]],[[[4]]]]
Output should be: [1, 2, 3, 4]
Dont use flatten function.
Use for loop
Write a program to calculate total cost of apples.the number of apples and cost per apples is entered by the user
Create 3 arrays that will hold 5 employee information:
Name
Address
For example: empName[0], empAddress[0], empEmail[0] should belong to the same employee.
We will output the employee's information by using int variable as index.
The user will select what index will be printed on the console so you need to use the java.util.scanner.
Prepare a presentation slide on Binary search (not more than 8 slides )
a) include the process of binary search algorithm and its complexity.
Write a program to increment N by 5, if N me s greater than 10, otherwise by 1.