please find attached, i need the solution by today 8pm.

1 answer below »
please find attached, i need the solution by today 8pm.
Answered Same DaySep 28, 2022

Answer To: please find attached, i need the solution by today 8pm.

Baljit answered on Sep 28 2022
55 Votes
//Name
//Student number 9365247
#include
using namespace std;
int main()
{
int stud
ent_number=9365247,number,number1=1000000;
//starting of first task
// we will assume number is seven digit long
/*since we are assuming 7 digit number first we need to find first digit of number than second till the last number from left to right.
To get first number we will divide the number with 1000000.Now remainder will be the rest of the number.than we will divide remainder with 100000 to get second
number and so on.Once we get digit we will check whether its even or odd than manipulate number accordingly.For this purpose we will apply while loop */
    while(student_number>0&&number1<=1000000) // we are appling while loop on student number to check first number
    {...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here