Can you think of a new way to collect consumer data that will give CPG companies the information they need to improve products and services, but at the same time, deliver real benefits to consumers?
Task 2:
Write C++ program, with multiple functions, that reads text, txt, from the file and accepts two patterns, pat and rpat, from the user. The program replace all occurrences of pat from the txt with rpat. The program output shall be as shown below in the example.
Suppose, there is a legacy system utilizing the Von Neumann architecture for the past twenty years of sales forecast. But due to the increasing amount of data and processing requirements, the Von Neumann Bottleneck has reduced the overall system’s performance. Among the many ways, you need to select either “in-memory processing” or providing a “cache” between the processor and main memory to overcome the Von Neumann bottleneck. The factors to be considered are cost, floating point operations, and scalability.
Your selection must be supported by logical arguments.
In a Fortran program, if I have set x=2.0,a=2.0, b=4.0, what is the value of y. If y=a*x+b**2/x?
Write a regular expression for the following languages, over sigma=(a,b) All strings that do not end with aa.All strings that contain an even number of b’s. All strings which do not contain the substring ba.
Construct NFA for the regular Expression R=(a+b) ∗abb
Draw DFAs for the regular expression R= a ∗ (ba∗ ba∗ ) ∗
– If a programmer chooses java, a special approach is used. Identify one feature of this special approach.