Use the readln and writestr functionsnbspto read from the


In visual studio 2015,

Write a C++  program that prompts the user to enter unsigned decimal integer, multiplies it by ten, then displays the result in binary. ("Binary" here means that the user communicates with the program in ones and zeros.)

Your main function should

a) declare a char array,

b) call the readLn function to read from the keyboard,

c) call a function to convert the input text string to an int,

d) multiply the int by ten,

e) call a function to convert the int to its corresponding decimal text string,

f) call writeStr to display the resulting decimal text string.

Use the readLn and writeStr functions to read from the keyboard and display on the screen. Your function to convert from a decimal text string to an int should be placed in a separate function. this problem cannot be solved by simply shifting bit patterns. Think carefully about the mathematical equivalence of shifting bit patterns left or right.

 

Request for Solution File

Ask an Expert for Answer!!
C/C++ Programming: Use the readln and writestr functionsnbspto read from the
Reference No:- TGS01183949

Expected delivery within 24 Hours