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 a friend class bestfriend to the class frac

Create a friend class BestFriend to the class frac. Inside the class BestFriend, and implement a function outputfrac() to print the content of the frac instance

  Write in c++. read an inputfile.txt

write in C++.  read an inputFile.txt which contains integers that are virutal addresses, and I am suppossed to translate that into physical addresses using a page table and a transition lookaside buffer

  Write a complete c++ program that read

Write a complete C++ program that read in from the key board a string and converts all letters in the string to upper cases. You are not allowed to use topper function.

  Create codes for the following problem compile and test run

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. Name the folder CIS110_Module_4. Compress (zip) the folder and submit the sing..

  Display the array, the average and the number of days above

Write a program that stores the daily temperatures for the month of April in an array name dailytemp. Calculate the average temperature for the month and the count the number of days that the daily temperature was above the average.

  Use object oriented design to create a program to shuffle

Use object oriented design to create a program to shuffle and deal a deck of cards. Deal two, five card hands.

  This project is to develop a program that implements a

this project is to develop a program that implements a hierarchical jpeg encoderdecoder for greyscale images.write your

  Compute for the monthly billing of their customers

An electric company wants to compute for the monthly billing of their customers. the company charges P2.50 per kwh and utility tax of 3% of the current bill shall be added.

  Implement a function named sort

Write a function named sort that takes three integer parameters by reference.The function should rearrange the parameter values so that the first parameter gets set to the smallest value

  Write a program that will convert us dollar amounts

Write a program that will convert US dollar amounts to Canadian dollar (1 CND = 0.92 USD). Format your currency amounts in two decimal places and trailing zeros.

  Develop an application for the game of memory

Use object-oriented programming to develop an application for the game of memory. Memory consists of a 20 × 20 grid of face down cards where there is at most one pair of each card in the grid. The types of cards that are available in this versi..

  Convert celsius temperatures to fahrenheit temperatures

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

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