Write the C code below and take snapshot of the output. Write comment next to every...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Write the C code below and take snapshot of the output. Write comment next to every line what function the code does. (Don't worry if you do not understand what is done exactly, do your best!) #include int main() { char your_name [15]; int your age, brother_age, difference; "); printf("Whats your name? scanf("%s", &your_name); printf("How old are you? "); scanf("%d", &your_age); printf("How old is your brother? (have a fictional brother if you don't have one!) scanf("%d", &brother age); difference = your_age-brother_age; printf("You are %d years old and your name is %s ", your_age, your_name); printf("You are %d years older than your brother ", difference); return(0); "); Write the C code below and take snapshot of the output. Write comment next to every line what function the code does. (Don't worry if you do not understand what is done exactly, do your best!) #include int main() { char your_name [15]; int your age, brother_age, difference; "); printf("Whats your name? scanf("%s", &your_name); printf("How old are you? "); scanf("%d", &your_age); printf("How old is your brother? (have a fictional brother if you don't have one!) scanf("%d", &brother age); difference = your_age-brother_age; printf("You are %d years old and your name is %s ", your_age, your_name); printf("You are %d years older than your brother ", difference); return(0); ");
Expert Answer:
Answer rating: 100% (QA)
include stdio h int main char yourname15 int yourage brotherage difference Prompt the ... 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 programming questions
-
Construct the pseudoinverse of A. Begin by using a matrix program to produce the SVD of A, or, if that is not available, begin with an orthogonal diagonalization of A T A. Use the, pseudoinverse to...
-
QUESTION 14 Aya and Harumi would like to buy a house and their dream house costs $500,000. They have $50,000 saved up for a down payment but would still need to take out a mortgage loan for the...
-
This assignment requires you to complete the 2022 tax reporting for a fictional woman named Anna Smith. Question 1 T1 - step 4 - line 66 This is Anna's taxable income Answer: Question 2 T1 - step...
-
I need one or more queries on the basis of database of netflix. I can upload the picture of database Create Index Modify Table Schema Delete Table Print CREATE TABLE Dates ( [PK] INTEGER PRIMARY KEY...
-
Use figure 22 to find all angles between 0 and 2Ï satisfying the given condition. 9. cos θ = 1 11. tan θ = -1 13. sin x = 23/2 3 12 2 3r 4 2 2 612'2 0 (0,0) 11 7A...
-
The population of Haiti has a growth rate of 1.08% per year. In 2015, the population was 9,996,731, and the land area of Haiti is 32,961,561,600 square yards. Assuming that this growth rate continues...
-
The following documents are used in the expenditure cycle: Vendor invoice Purchase order Disbursement voucher Purchase requisition Packing slip Receiving report Check Required a. Identify which of...
-
During the month of March, QNI Corporation made the following credit sales and had the Following related collections. QNI prepares financial statements for the first quarter of operations at the end...
-
Alcott's preferred stock pays a dividend of $1.00 per quarter. If the price of the stock is $67.50, what is its nominal (not effective) annual rate of return? Select the correct answer. a. 7.29% b....
-
In an injection moulding process, at 170C, polyethylene behaves as a power law fluid with the shear stress (Pa) and shear strain rate (s) related by the following equation: T = 500 (y)-0.5 The flow...
-
What statutory and mandatory professional pronouncements require a review to be published?
-
Find someone who has been involved in the project selection process within an organization. Prepare several interview questions, and then ask him or her the questions in person, via the phone, or via...
-
What is (a) a debit balance, (b) a credit balance?
-
What type of information will normally be included in the last few pages of an annual report?
-
What has caused so many accounting irregularities in recent years?
-
You work at a firm and your supervisor has asked you to review six contracts and determine the type of each contract, research the key elements of contracts and assess their validity. You will need...
-
MgO prevents premature evaporation of Al in a furnace by maintaining the aluminum as Al2O3. Another type of matrix modifier prevents loss of signal from the atom X that readily forms the molecular...
-
John Williams (age 42) is a single taxpayer, and he lives at 1324 Forest Dr., Reno, NV 89501. His Social Security number is 555-94-9358. John's earnings and withholdings as the manager of a local...
-
Van makes an investment in a partnership in 2012. Van's capital contributions to the partnership consisted of $30,000 cash and a building with an adjusted basis of$70,000, subject to a nonrecourse...
-
Linda and Richard are married and file a joint return for 2012. During the year, Linda, who works as an accountant for a national airline, used $2,100 worth of free passes for travel on the airline;...
-
Many choices involve _________ of something to do rather than whether to do something.
-
In acting rationally, people respond to _________.
-
Economists emphasize _________ thinking because the focus is on additional, or _________, choices, which involve the effects of _________ or _________ the current situation.
Study smarter with the SolutionInn App