Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hey experts, I need your help with this simple C programming questions IV. Questions 18-26 assume that the following declarations have been made: Name Date

Hey experts, I need your help with this simple C programming questions

image text in transcribed

IV. Questions 18-26 assume that the following declarations have been made: Name Date int m=10, n-6; double pi 3.14; char c 94 Tell whether each assignment statement is a valid Cstatement. If it is I. Find the value of each of the expressions In questions 1-9 by showing work or explain why it is not a valid expression 1. 13-12-1 2. 3.0+3.0/6.0 3. 3+3/6 4. 7/2+3 5716964 6 (7+6) % 4 7. 3*4)/(8-21) 8. 12.0/2.0 3.0 not valid, explain why it is not. 18, pl = 3.0; 19, D n 20, n=n+n; 22, m=1; 23. m-"1 24, m= n= 1; 25, c 65 26, c=65; Il. Questions 9-14 assume that two, three, and four are reals with values 2.0, 3.0, and 4.0, respectively, and intFight and intFive are integers with values 8 and 5, respectively. Find the value of each expression. V. Questions 27 30 assume that the following declarations have been made: 9. twothree three 10. intFive/2 11.the+ two/four)2 12. IntEight/intrive 5.1 13. four * 5the 2 14. IntFive2/three 2 int double intEight = 8, intFive = 5, jobid: two= 2.0, three = 3.0, four = 4.0, XValue Tell whrther ach statennt s id C statement. If it is not valid, explain why it Is not. IIl Write an equrvalent C expression for the following mathematical expression in questions 15-17 27, xValue three+ two/four; 28. xValue intdight/intFive 5.1; 29, jobid = intEight / intFive + 5.1; 30, xvalue-three three + four & four; 15. 10+5e- 4AC 16. A +3B 17. Three times the difference 4-n drvided by twice the quantity mn

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

How To Build A Million Dollar Database

Authors: Michelle Bergquist

1st Edition

0615246842, 978-0615246840

More Books

Students also viewed these Databases questions