The keyboard and display on the screen

Assignment Help C/C++ Programming
Reference no: EM13890702

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.

 

Reference no: EM13890702

Questions Cloud

Fed funds rate and the three month treasury narrowed : The Federal funds purchased & repurchase agreements of Washington Mutual Bank declined from 4.1% of assets to .09% of assets between 6/30/2007 and 6/30/2008. The difference between the Fed Funds rate and the three month treasury narrowed as investors..
Create a studentgrade class that includes two data members : Create a StudentGrade class that includes two data members: a student ID number and the student's score on a test. Both of these are integers. Include "get" and "set" member functions for each of the data members, plus a displayRecord method which ou..
Describe the health care system of canada : Technology in health care can be viewed both positively and negatively. Using cost, access, or the human aspect of health care, identify two advantages and two disadvantages of the increased use of technology in health care. Describe the health ca..
Financial crisis inquiry report : The authors of the Financial Crisis Inquiry Report were not concerned that from 1999 to 2008, the financial sector expended $2.7 billion in reported federal lobbying expenses; individuals and political action committees in the sector made more than $..
The keyboard and display on the screen : 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 pat..
Make financial sense-compact fluroscent lamps : Compact fluroscent lamps (CFLs) have become popular in recent years, but do they make financial sense? Suppose a typical 60-watt incandescent light bulb costs $.50 and lasts 1,000 hours. A Kilowatt-hour of electricity costs $.101, which is about nati..
How these roles influence the workforce : Briefly describe the three roles you chose, and provide a rationale for why they are important to a human services manager and how these roles influence the workforce
Banks would not fail simply from a lack of liquidity : According to the FCIC report; during the Financial Crisis of 207-2009 The Fed, acting as lender of last resort, ensured that banks would not fail simply from a lack of liquidity.
Minimum-variance portfolio of the two risky funds : A pension fund manager is considering three mutual funds. The first is a stock fund, the second is a long-term government and corporate bond fund, and the third is a T-bill money market fund that yields a sure rate of 5.5%. The probability distributi..

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd