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

  Write a count occurrences() function that accepts a string

Write a CountOccurrences() function that accepts a string to be searched and a sub-string to be found. The function should return the # of times the sub-string is found. Write a tester file that declares a secret sentence as a constant.

  Find the prime numbers

Write a c++ program to find the prime numbers

  How do firms maximize profits

How do firms maximize profits? How do firms minimize risk?

  Task your task is to write a simple program that converts

task your task is to write a simple program that converts between app and ppm values. the screenshots below

  Find the moment of inertia

Display a brief description of the program and ask the user to specify the type of loading (end load, intermediate load, uniform load)

  Research paper on c++ loop statements

Create codes for the following problem/s. Compile, test run, and edit them if necessary. Include your original .cpp and related file(s) (if any) in a single folder.

  Design a modularized body mass index program

You are the nutritional coach for a local high school football team. You realize that some of the players are not up to par having returned from summer break. Realizing nutrition plays a key in a productive team, you decide to implement a Body Mas..

  A pattern detector has an input

A pattern detector has an input a 4 x 4 matrix whose elements take values a, b, c, or d. The output is 1 if the matrix contains one b surrounded by eight a's and 0 otherwise.

  Prepare the weighted scoring model for three exams

Prepare the weighted scoring model. Final grades are based on three exams worth 15%, 20%, and 25%, respectively; homework is worth 20%.

  Describe floyd''s algorithm finds the shortest paths

A shortest path between vertex a and b is a path with the minimum sum of weights of the edges on the path. Floyd's algorithm finds the shortest paths of all vertex pairs of a graph.

  Appropriate structure to use to program the statement

A home improvement store is giving a discount of 20% on all purchases of more than $250. Which of the following is the appropriate structure to use to program the statement

  1 write a c program that takes an eastern standard time

1. write a c program that takes an eastern standard time in hours minutes and secondsand prints it out in central

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