Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C programming assignment Competencies demonstrated: Input, Output, Math, Design, Documentation, Logic and Decision. Specification: You are to write a program what will input four whole

C programming assignment

Competencies demonstrated:

Input, Output, Math, Design, Documentation, Logic and Decision.

Specification:

You are to write a program what will input four whole numbers between -100 and 100. The program will output the four numbers, their sum, their product, the largest of the number and the smallest of the numbers.

You will output if each of the numbers are Even or Odd.

You will output if each of the numbers is PRIME or NOT PRIME.

Example Run of Program (the user and enter any three numbers he or she wishes)

Enter First Number: 10

Enter Second Number: 15

Enter Third Number: 7

Enter Fourth Number: 1

Output

The number entered are 10, 15, 7, and 1.

The sum of 10 + 15 + 7 + 1 = 23.

The product of 10 x 15 x 7 X 1= 1050.

The largest number is 15.

The smallest number is 1.

The number 10 is even and is not prime.

The number 15 is odd and is not prime.

The number 7 is odd and is prime.

The number 1 is odd and is not prime.

QS2 : Design Tool

Design tool : (IPO Chart) (Input, Process, Output)

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

Students also viewed these Databases questions

Question

What is the purpose of data cleanup?

Answered: 1 week ago

Question

socialist egalitarianism which resulted in wage levelling;

Answered: 1 week ago

Question

soyuznye (all-Union, controlling enterprises directly from Moscow);

Answered: 1 week ago