Question: Given a first (long long) integer (Y) representing the data to analyze and alter in this program, then a second integer (X) corresponding to the

Given a first (long long) integer (Y) representing the data to analyze and alter in this program, then a second integer (X) corresponding to the size of a number to extract from the first integer Y, identify the largest value in Y composed of X consecutive and adjacent digits. Divide this largest value by two, round it to the nearest whole number, and replace it into the number Y. Your program will need to validate that the first integer is positive and the second integer is both positive and not greater than the number of digits in the first input. Do this in C90 and don't use for loop.

Given a first (long long) integer (Y) representing the data to analyzeand alter in this program, then a second integer (X) corresponding to

Problem: Given a first (long long) integer (Y) representing the data to analyze and alter in this program, then a second integer (X) corresponding to the size of a number to extract from the first integer Y, identify the largest value in Y composed of X consecutive and adjacent digits. Divide this largest value by two, round it to the nearest whole number, and replace it into the number Y. Your program will need to validate that the first integer is positive and the second integer is both positive and not greater than the number of digits in the first input

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!