Solve the given C programming codes below. The scanf function will read Input value. Steps to...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Solve the given C programming codes below. The "scanf function will read Input value. Steps to obtain ALL answers MUST be showed. i. Input: agentintellegent #include<stdio.h> int main() ( } char a,c[3], f.e[4],b,d; scanf("%c%2s%c%3s%c%2s",&a,c,&a, c,&f,e); printf("%c%s %c%2s",f,e,a,c); ii. Input: 991829926366 #include<stdio.h> int main() 1 int a-3,e-2,d-6,f-4; scanf ("%3d%*2d %1d%* ld%2d",&a,&e,&d,&a,&e); printf("%04d%+5d%-3d%4d",a%e,e/f,a*e,d-e); } (2 marks) (2 marks) Solve the given C programming codes below. The "scanf function will read Input value. Steps to obtain ALL answers MUST be showed. i. Input: agentintellegent #include<stdio.h> int main() ( } char a,c[3], f.e[4],b,d; scanf("%c%2s%c%3s%c%2s",&a,c,&a, c,&f,e); printf("%c%s %c%2s",f,e,a,c); ii. Input: 991829926366 #include<stdio.h> int main() 1 int a-3,e-2,d-6,f-4; scanf ("%3d%*2d %1d%* ld%2d",&a,&e,&d,&a,&e); printf("%04d%+5d%-3d%4d",a%e,e/f,a*e,d-e); } (2 marks) (2 marks)
Expert Answer:
Answer rating: 100% (QA)
It appears youve provided two different C programming examples and are looking for an explanation of what input they take and what output they will produce Lets analyze both pieces of code one by one ... View the full answer
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these algorithms questions
-
The following additional information is available for the Dr. Ivan and Irene Incisor family from Chapters 1-6. On December 12, Irene purchased the building where her store is located. She paid...
-
The following additional information is available for the Dr. Ivan and Irene Incisor family from Chapters 1-5. Ivan's grandfather died and left a portfolio of municipal bonds. In 2012, they pay Ivan...
-
1. Because triangle A is congruent with triangle B, and triangle A is isosceles, it follows that triangle B is isosceles. 2. The plaque on the Leaning Tower of Pisa says that Galileo performed...
-
Determine the missing amounts in the following accounting equations? Stockholders' Equity Liabilities Assets $24,000 a. $106,000 b. $63.000 S28.000 C. $94.000 $45.000 I| ||||
-
Identify the following by describing their functions: EF-G, EF-Tu, EF-Ts, EF-P, and peptidyl transferase.
-
Suppose we fit the model $\mathbf{y}=\mathbf{X}_{1} \boldsymbol{\beta}_{2}+\boldsymbol{\varepsilon}$ when the true model is actually given by $\mathbf{y}=\mathbf{X}_{1}...
-
Following is a description of the basic financial statements extracted from an example citys managements discussion and analysis (MD&A). Review the description and respond to the requirements at the...
-
Does the game have a dominant-strategy equilibrium? If so, what is it and why is it that? If not, why not?
-
Use polygons and lines to create a graphics image that looks like a fireworks display. Write an application that extends JPanel and displays the fireworks. Save the file as JFireworksPanel.java.
-
A petty cash fund was originally established with a check for $210. On September 10, the petty cash fund was replenished when there was $16.25 remaining and there were petty cash receipts for...
-
a. Describe how an express warranty is created. b. Describe how an implied warranty of merchantability is created. c. Describe how an implied warrant of fitness for a particular purpose is created.
-
When a new health club opens, the owners offer a discount to the first 100 members who enter into a five-year contract. The fee is \($2,400\) annually for the first five years, prepaid, regardless of...
-
Explain the working of four-stroke petrol engine with neat sketch.
-
Describe and illustrate the following four types of damages: Nominal Actual General Punitive
-
Berkley Corp. wanted to buy 1,000 customized umbrellas imprinted with their logo to use for promotional purposes. It planned to use 250 of the umbrellas for an event scheduled for early February 2012...
-
4. From the data given below, find out the Spearman's rank coefficient of correlation between the internal assessment and external exam performance of MBA students in a college. Name of students Aman...
-
Research an article from an online source, such as The Economist, Wall Street Journal, Journal of Economic Perspectives, American Journal of Agricultural Economics, or another academic journal. The...
-
Clarita is a single taxpayer with two dependent children, ages 10 and 12. Clarita pays $3,000 in qualified child care expenses during the year. If her adjusted gross income (all from wages) for the...
-
Larry Gaines, age 42, sells his personal residence on November 12, 2012, for $144,000. He lived in the house for 7 years. The expenses of the sale are $10,500, and he has made capital improvements of...
-
Jason and Mary Wells, friends of yours, were married on December 30, 2012. They know you are studying taxes and have come to you with a question concerning their filing status. Jason and Mary would...
-
A typical timber wolf has a mass of \(40 \mathrm{~kg}\), a typical jackrabbit a mass of \(2.5 \mathrm{~kg}\). Given the scaling law presented in the passage, we'd expect the specific metabolic rate...
-
A standard gold bar stored at Fort Knox, Kentucky, is 7.00 inches long, 3.63 inches wide, and 1.75 inches tall. Gold has a density of \(19,300 \mathrm{~kg} / \mathrm{m}^{3}\). What is the mass of...
-
A typical timber wolf has a mass of \(40 \mathrm{~kg}\), a typical jackrabbit a mass of \(2.5 \mathrm{~kg}\). Given the scaling law presented in the passage, we'd expect the wolf to use times more...
Study smarter with the SolutionInn App