Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Function Name: sepDigits Inputs: 1. (double) A three-digit integer Outputs: 1. (double) The hundreds-place digit of the input 2. (double) The tens-place digit of the

Function Name: sepDigits Inputs: 1. (double) A three-digit integer Outputs: 1. (double) The hundreds-place digit of the input 2. (double) The tens-place digit of the input 3. (double) The ones-place digit of the input Function Description: This function will take in a three-digit integer (integer between 100 and 999 , inclusive) and should return each digit as a separate number. For example, if the input is 472 , the first output would be 4 , the second would be 7 and the third would be 2 . Notes: You only have to deal with three-digit positive integers. The mod() and floor() functions will do all the heavy lifting.

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

Database Internals A Deep Dive Into How Distributed Data Systems Work

Authors: Alex Petrov

1st Edition

1492040347, 978-1492040347

More Books

Students also viewed these Databases questions