Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need the full answer please! 1. (60 points) Evaluate the following expressions. Assume: x is 10.5, y is 7.2, m is 5, n is

I need the full answer please!image text in transcribed

1. (60 points) Evaluate the following expressions. Assume: x is 10.5, y is 7.2, m is 5, n is 2 Hint: You can use printf to verify your answers. But you must know which format control character to use a. x / (double) m (double) (n * m) d. (double) (n / m) + y (double) (n / m) 35 % 6 2. (40 points) Evaluate the following expressions, assuming that letters or digits have consecutive character codes. This means that the codes for letters: A', B', .., Z' are consecutive num!bers. The codes for digits: '1, 2', ..,-9, are consecutive numbers. The codes for letters: a', 'b,,.., are consecutive numbers. Hints: You can use printf to verify your answers. But you must know which format control character to use. Refer to the code char demo.c in Lec#4 notes. (int) 'M' - (int) J' (char) ((int) 'T' + 3) c.(int) '9' - (int) '6

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

Learning MySQL Get A Handle On Your Data

Authors: Seyed M M Tahaghoghi

1st Edition

0596529465, 9780596529468

More Books

Students also viewed these Databases questions

Question

7 6 . .

Answered: 1 week ago