Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using C programming In your main, write code to evaluate the following expressions shown here: o 3x3 -5x2 6 for x 2.55 . (3.31 x

Using C programming
image text in transcribed
In your main, write code to evaluate the following expressions shown here: o 3x3 -5x2 6 for x 2.55 . (3.31 x 10 2.01 x 10) (7.16x 10 2.01x10) Part B To round off an integer i to the next largest even multiple of another integer j, the following formula can be used int next-multiple = i + j-i % j o o For example, to round off 256 days to the next largest number of days evenly divisible by a week, values of i 256 andj 7 can be substituted nto the preceding formula as follows it next, multiple 256 + 7.256 % 7 Write a program to find the next largest even multiple for the following values of i and j: o 365 12258 996 28 All of your code should go into the main function (do not use separate functions). Print your output for each exercise to the console in a nicely formatted way (as shown in class) to differentiate the answers. Make sure to save your answer from each exercise in a separate variable o . Part C print out each answer to the console again, this time typecast to an o double char Again, format the output nicely using format specifiers, and be aware that some results will be junk o

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

AutoCAD Database Connectivity

Authors: Scott McFarlane

1st Edition

0766816400, 978-0766816404

More Books

Students also viewed these Databases questions

Question

=+P* fails to agree with P on 70 and explain why.

Answered: 1 week ago