Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

(C3,C01,POI) QUESTION 1 (a) Sketch a flowchart to determine multiples of 4 in between 2 integers entered. Sample output is described in Figure 1. Enter

image text in transcribed
(C3,C01,POI) QUESTION 1 (a) Sketch a flowchart to determine multiples of 4 in between 2 integers entered. Sample output is described in Figure 1. Enter 2 integers :5 20 8 is a multiple of 4 12 is a multiple of 4 16 is a multiple of 4 20 is a multiple of 4 Figure 1 [5 Marks] (b) Write printf statement(s) to have the output as described in Figure 2. Given variable a = 3301 and variable b = 2.567. X X 33 016 = 2 56 Figure 2 (Hint: variable a is to print right justify and variable b is to print left justify] ES Marks] (C3, COI, POI) QUESTION 2 Predict the output values for variable sine and cosine of the program segment in Figure 3 if the input value sine - 2. Show your work swatch (sine) JON case 1: case 2: sine -- 1; case 3: cosine - (sine > 1)? 11: 44; case 4: cosine = sinett; break; default: cosine- Figure 3 [4 Marks)

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

Informix Database Administrators Survival Guide

Authors: Joe Lumbley

1st Edition

0131243144, 978-0131243149

More Books

Students also viewed these Databases questions

Question

Be aware of workplace issues that are specific to LGBT employees

Answered: 1 week ago

Question

=+ At what rate does capital per person grow?

Answered: 1 week ago