Determines whether the ascii value is valid for the base

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

Introduction

For this assignment you will create a program that allows a user to select a number base (in the range of 2 to 16, inclusive), enter digits for the number base, validate each digit as it is entered, and display the resulting value in base 2, 8, 10 and 16.

Requirements

Create a program that:

Has six user-defined procedures (UDPs):
o IsLegal - this UDP shall:
Accept an ASCII value in one register.
Accept a number base value in another register.
Determines whether the ASCII value is valid for the base.
Use the AsciiToDigit procedure
Return 1 if the value is valid.
Return 0 if the value is not valid.

o AsciiToDigit - this UDP shall:
Accept an ASCII character value in a register.
Returns the numeric value related to the ASCII character value. For example, if ‘A' (41h) or ‘a' (61h) is passed in, then this procedure would return 10d.
Return -1 if the ASCII character is not valid.

o DigitToAscii - this UDP shall:
Accept a numeric value in a register.
Returns the ASCII character value related to the numeric value. For example, if 15d is passed in, then this procedure would return ‘F' or ‘f' (you must choose one case for letters).
Return -1 if the numeric value is not valid.

o WriteInteger - this UDP shall:
Accept a number in the EAX register.
Accept a number base value in the BL register.
Display the number in its base. For example, if 5 and 2 were passed in, this UDP would display 101.
Use the DigitToAscii procedure.
Not display leading zeroes.

Reference no: EM13850971

Questions Cloud

Relationship between interview scores and behavioral ratings : Write a current APA-style Results section based on your analyses -  Create a simple scatterplot of the relationship between these variables (define interview scores as the x-axis and behavioral ratings as the y-axis).
Prepare the consolidated accounts for the big company ltd : Prepare the consolidated accounts for The Big Company Ltd and The Little Company Ltd as at 30 June 2015.
Compare and contrast the security user interface : Compare and contrast the security, user interface, and performance features of Windows 7 and Windows 8. From an organizational standpoint, support or challenge the decision to upgrade from Windows 7 to Windows 8 based on the available features. J..
What is the standard deviation of the ipss change : What is the standard deviation of the IPSS change for participants in age group 3
Determines whether the ascii value is valid for the base : Accept a number base value in another register. Determines whether the ASCII value is valid for the base. Use the AsciiToDigit procedure
Why do you think this might be elaborate : When it comes to Stroop Effect, usually people have a greater standard deviation on the incongruent trials than on the congruent trials. Why do you think this might be? Elaborate.
Prepare all the journal entries that dumpster limited : Prepare all the journal entries that Dumpster Limited would prepare for the years ending 30 June 2013, 30 June 2014 and 30 June 2015 to account for the acquisition, subsequent expenditure and depreciation on the asset.
Which aspect of task performance in the stroop task : Which aspect of task performance in the Stroop task is automatic and causes the interference? Do you think that this aspect of performance is innately automatic or automatic through practice? Explain.
The idea that neuronal connection involved : The idea that neuronal connection involved in "activities which are reainforce" make stringer connections among themselves was proposed by neuroscientist Donald O. Hebb and is known as "Hebbian Learning Theory" is this True or False?

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