Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Here is one of the problems for my C++ homework. i am supposed to write the code to complete this progrom. I also included an

image text in transcribed

image text in transcribed

Here is one of the problems for my C++ homework. i am supposed to write the code to complete this progrom. I also included an example of how the code should like once its finished. For this problem i cannot use strings or if statements. I am stuck and would love help

Problem 1: Write a program that 1. Asks the user for a two digit number. (The smallest mumber allowed is 10 and the largest allowed is 99.) 2. Tells the user the number 3. Tells the user the tens digit and the ones digit. 4. Tells the user which of these numbers is larger. 5. Computes the sum. product, and absolute difference of two digits. (The absolute difference of two numbers r and y is given by 1 - yl.) 6. Tells the user what you get when you divide the larger digit by the smaller digit. Please enter a two digit number. (The smallest number allowed is 10 and the largest allowed is 99.) 37 Your number is: 37 The tens digit is: 3 The ones digit is: 7 The larger digit is: 7 In order to do the calculation on the line above, I wrote #include in the top of this file. 1 The sum of the digits is: 10 The product of the digits is: 21 The absolute difference of the digits is: 4 When you divide the larger digit by the smaller digit, you get: 2.33333

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_2

Step: 3

blur-text-image_3

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

Database Processing Fundamentals Design And Implementation

Authors: KROENKE DAVID M.

1st Edition

8120322258, 978-8120322257

More Books

Students also viewed these Databases questions

Question

5.7

Answered: 1 week ago