Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

CS1050-Lab 2 Spring 2019 Concepts to Practice . Simple input/output . Integer variables Arithmetic operators Extend Prelab 2 Submission Information Submit this assignment fo or

image text in transcribed
CS1050-Lab 2 Spring 2019 Concepts to Practice . Simple input/output . Integer variables Arithmetic operators Extend Prelab 2 Submission Information Submit this assignment fo or executabl using the lab code given by the TA by following the instructions given by your TA. SUBMIT ONLY the .c file (no a.out e hie is required). All of the lab assignments must be submitted before the end of the lab Use the following submit command: submit cclass> cassignment> cfilename> For example submit CS1050 LAB 2 m-lab2.c Filename must be: sectionletter-lab2.c (include your respective lab section), e-g., m-lab2.c Description For the lab assignment, write a C program that reads in two integer numbers from user input. The first integer may be any integer and should be called A. The second integer may be any integer other than zero and should be called B. If the user inputs zero for the second integer, print an error message and ask the user to enter the second integer again. Print the following: Print the values of A and B. Print the value of A and B added together. Print the value of A minus B. Print the value of A and B multiplied together. Print the value of A divided by B .Print the integer remainder of A divided by B BONUS: You can optionally print which number has the larger absolute value for bonus points

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

DB2 11 The Database For Big Data And Analytics

Authors: Cristian Molaro, Surekha Parekh, Terry Purcell, Julian Stuhler

1st Edition

1583473858, 978-1583473856

More Books

Students also viewed these Databases questions

Question

b. Explain how you initially felt about the communication.

Answered: 1 week ago

Question

3. Identify the methods used within each of the three approaches.

Answered: 1 week ago

Question

a. When did your ancestors come to the United States?

Answered: 1 week ago