Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

Given a sentence with numbers representing a word's location embedded within each word of given sentence, return the sentence according to the number in each word.




Example:


str = "is2 thi1s T4est 3a"




the word " is2 " contains 2 - so the word "is location is 2


the word "Thi1s" contains 1 - so the word "this" location is 1


the word "T4est" contains 4 - so the word "Test" location is 4


the word "3a" contain 3 - so the word "a" location is 3




this is a Test




Constraints:


only the integers 1-9 will be there




input format :


the first line contains a string input


Input:

is3 cri1stiano 4the rona2ldo 5best


expected output:

cristiano Ronaldo is the best




Given a sentence with numbers representing a word's location embedded within each word of given sentence, return the sentence according to the number in each word.


Example:

str = "is2 thi1s T4est 3a"


the word " is2 " contains 2 - so the word "is location is 2

the word "Thi1s" contains 1 - so the word "this" location is 1

the word "T4est" contains 4 - so the word "Test" location is 4

the word "3a" contain 3 - so the word "a" location is 3


this is a Test


Constraints:

only the integers 1-9 will be there


input format :

the first line contains a string input






























a) Write a method PopulationTotal that accepts 2 positive values, namely the current





population and the growth rate . The method determines and returns the total population based on the current





population and growth rate.




b) Write a method Over180Million that accepts a positive value representing the population. The method determines whether the population is over 180 million people, and returns




a value of true if this is so, otherwise returns a value of false.




c) Write a program that requests the user for a year (you can assume the year will always be at




least 2000), the population of Brazil in that year and the annual




population growth rate (always as a real number in the range 0 – 1), and then uses the two




methods written above to determine and display the year in which Brazil’s population first




exceeded/exceeds 180 million people. The program must also display Brazil’s total population




in this year.

a) Write a method GetOneStudent that asks a student for both of his/her WRAV101 and



WRSC111 marks (each as a real number). The method must return both of these marks. The



method must ensure that each of the marks is in the range 0 to 100.



b) Write a method CanContinue that takes as input two marks, one for WRAV101 and one for



WRSC111. Each of these marks is in the range 0 to 100. The method must return the value



true if both of these marks are at least 50, otherwise the method must return the value false.



c) Write a method DisplayDecision that takes as input two marks, one for WRAV101 and one



for WRSC111. Each of these marks is in the range 0 to 100. If the student can continue with



the second semester modules (use CanContinue above), an appropriate message and the



average mark for the two modules is displayed, otherwise the student is informed that he may



not continue.



Write a program to overload operators in the same program by writing suitable operator member functions for following set of expressions:

O5= (O1/O2) *(O3+O4)

[Here O1,O2,O3,O4 and O5 are objects of a class “overloading”, and this class is having one integer data member]  


Write a program to overload operators in the same program by writing suitable operator member functions for the following set of expressions:


O5=(O1/O2)*(O3+O4)


(Here O1,O2,O3,O4 and O5 are objects of a class overloading and this class is having one integer data member

you want to buy a particular stock at its lowest price and sell it later at its highest price,since the stock market is unpredictable,you steal the price plans of a company for this stock for the next N days.

Find the best price you can get to buy this stock to achieve maximum profit.

Note:The initial price of the stock is 0.

Input1:Nnumber of days.

Input2:Array representing changing stock price for the day.

Output: Your function must return the best price to buy the stock at.

Example:

Input1:5

Input2:{-39957,-17136,35466,21820,-26711}

Output:-57093


Write a program to take input for n number of employee records and write records of all employees in a file named: “record1”. Also write records of all those employees in another file named: “record2” who are taking salary more than 50,000. After writing records in both files, merge their contents in another file: “finalrecord” and read all records of “finalrecord” file and display on screen. [Attributes of employee: emp_id, emp_name, emp_experience, emp_salary]


Ramesh and suresh started doing fun activity in which ramesh writes down the word and tell suresh the number of letters in his word. Then suresh tries to guess the word that ramesh had written. After suresh guesses the word they both compare the words to determine the minimum number of letters suresh has to replace his guessed word becomes an anagram of ramesh word.



Note: suresh and ramesh words are same length



Input line contains two space seperated strings



Output must be in single line representing minimum number of letters to be replaced




Input: honey moon



Output: 1



Input: ccbp pbcc



Output: 0




Need correct output sir

Write a C++program to accept two integers and check if it is greater than or equal to 100. If not, return a message "The number is less than 100". Specify the input of first and second of the possible output.



LATEST TUTORIALS
APPROVED BY CLIENTS