Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

program in C 1. (12 pts) Assume that m and mare int variables and z is a float variable. What is the value of each

image text in transcribed
program in C
1. (12 pts) Assume that m and mare int variables and z is a float variable. What is the value of each variable after the following scanf is called? scanf("%d%f%d", &m, &z, &n); Suppose the user enters: 1.23 4.56 78.9 2. (10 pts) Write a single statement to read the time from the standard input in the form of month/day/year and store it in three integer variables named month, day and year. 3. (8 pts) Write a single statement to read a two percentage numbers from the standard input. For example, the user enters 33.33% and 66.6% and program stores 33.33 into a float variable named first Percentage and 66.6 into a float variable named secondPercentage, respectively. The variables firstPercentage and secondPercentage have been declared to be float. 4. (8 pts) Write a single statement that requires a match between "Price" and the beginning part of the user input and read number following "Price="from the user into a float variable myPrice. Assume that the variable myPrice has been declared as float. 5. (12 pts) Give the output of the following statements. Explain why. int a = 7, b=2, c=4; printf("Output=%d", a/b+c)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Microsoft Visual Basic 2017 For Windows Web And Database Applications

Authors: Corinne Hoisington

1st Edition

1337102113, 978-1337102117

More Books

Students also viewed these Databases questions

Question

What are the key causes of system implementation failure?

Answered: 1 week ago