Write a program which takes two strings as input from the user (str1 and str2). This...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Write a program which takes two strings as input from the user (str1 and str2). This program should print two strings as output (op1 and op2). op1 should contain all the characters which are present in str1 but NOT present in str2. op2 should contain all the characters which are present in str2 but NOT present in str1. For example: Example 1 Example 2 str1 ABC BC str2 BC BANGALORE op1 A op2 <null> ANGLORE Write a program to call the below mentioned rest APIs. Display the email ids returned by the GET method https://reqres.in/api/users/1 https://reqres.in/api/users/3 https://reqres.in/api/users/10 Outputs should be: george.bluth@reqres.in emma.wong@regres.in byron.fields@reqres.in Write a program which takes two strings as input from the user (str1 and str2). This program should print two strings as output (op1 and op2). op1 should contain all the characters which are present in str1 but NOT present in str2. op2 should contain all the characters which are present in str2 but NOT present in str1. For example: Example 1 Example 2 str1 ABC BC str2 BC BANGALORE op1 A op2 <null> ANGLORE Write a program to call the below mentioned rest APIs. Display the email ids returned by the GET method https://reqres.in/api/users/1 https://reqres.in/api/users/3 https://reqres.in/api/users/10 Outputs should be: george.bluth@reqres.in emma.wong@regres.in byron.fields@reqres.in
Expert Answer:
Related Book For
Managerial accounting
ISBN: 978-0471467854
1st edition
Authors: ramji balakrishnan, k. s i varamakrishnan, Geoffrey b. sprin
Posted Date:
Students also viewed these operating system questions
-
Microprocessor Lab work Using emu8086-assembler and microprocessor emulator Solve all the problems,I will upvote you. Following the codes to be done by assembly language Task 01 Write a program that...
-
Remember, most of the lab problems are mostly solved within the lab. So, if you can utilize your lab time, you can solve completely or most of the problem within the lab time This problem will be...
-
It is not impossible for ML to fly high in the future but there is a lot of area that need to be improved by Mun Leong. As a business analyst, what will be the areas for future improvement that need...
-
A data analyst decided to do all design work from home and wants to create a home office. The analyst needs a new computer for $1,900 and printer/scanner for $250. A vendor offers a financing option...
-
What was the public issue facing The Coca-Cola Company in this case? Describe the performance-expectations gap found in the case - what were the stakeholders concerns, and how did their expectations...
-
Direct Materials and Direct Labor Variance Analysis Abbeville Company manufactures faucets in a small manufacturing facility. The faucets are made from brass. Manufacturing has 9 0 employees. Each...
-
The equation of motion of a simple pendulum subject to viscous damping can be expressed as \[\ddot{\theta}+c \dot{\theta}+\sin \theta=0\] If the initial conditions are \(\theta(0)=\theta_{0}\) and...
-
Westin Watercrafts predetermined overhead rate for year 2011 is 200% of direct labor. Information on the companys production activities during May 2011 follows. a. Purchased raw materials on credit,...
-
Let Timco use a capital structure that is 30% debt and 70% equity, The firm can borrow at 5%. The tax rate is 40%. Let the firm beta be 1.5, the market return 14%, and the risk free rate 2%. Find the...
-
Brindon Thayn, president and owner of Orangeville Metal Works, has just returned from a trip to Europe. While there, he toured several plants that use robotic manufacturing. Seeing the efficiency and...
-
Jamie wants to have $1,000,000 for her retirement in 25 years. How much should she save annually if she thinks she can earn 10% on her investments?
-
A uranium-238 atom can break up into a thorium-234 atom and a particle called an alpha particle, \(\alpha-4\). The numbers indicate the inertias of the atoms and the alpha particle in atomicmass...
-
A small bullet is fired into a large piece of wood. After the bullet penetrates the wood, the assembly moves as one unit along a low-friction track in the direction of travel of the bullet. (a) After...
-
If the video of an explosive separation (like the firing of a gun) is run backward, the event looks like a totally inelastic collision, with two or more originally separate pieces all sticking...
-
What is the reservedeposit ratio, and how does it affect bank runs?
-
Can you tell from the coefficient of restitution whether a collision has added kinetic energy to a system, taken some away, or left the system's kinetic energy unchanged?
-
niap F0 = f(0) kilograms of fuel. It is released from an orbiter at time zero at height H0 = h(0) with an initial downwards velocity of zero. It must touch down at less than 1 metre per second. Its...
-
F.(3e* -2x 3 sin(2x)) is equal to 2 3 Cos 8. IT 3, t (4+@ 2 3, 1+o 1 4 Cos 4 4 1 3. 1 +4cos V7 (1+o 4 1 4 Cos 4 1+0 4-
-
List two key advantages of the payback method.
-
The Glass Vessel Company has established the following budget for producing one of its hand-blown vases: Materials (silica) . 2 pounds @ 1.25 per pound Labor ...... 1.5 hours @ $15.00 per hour In...
-
List one advantage and one disadvantage of the account classification method. Discuss.
-
A thin stainless steel disk of thickness \(b\) and outer radius \(r_{o}\) has been heat treated to a high, uniform initial temperature of \(T_{i}\). The disk is then placed upon a small stand and...
-
A power transistor mounted on a finned heat sink can be modeled as a spatially isothermal object with internal heat generation and an external convection resistance. (a) Consider such a system of...
-
Steel balls \(10 \mathrm{~mm}\) in diameter are annealed by heating to \(1150 \mathrm{~K}\) and then slowly cooling to \(450 \mathrm{~K}\) in an air environment for which \(T_{\infty}=325...
Study smarter with the SolutionInn App