Write a program to produce a double table

Assignment Help Basic Computer Science
Reference no: EM13167040

Using the ROL instruction to perform multiplication, write a program to produce a double table. This table should be built from a single int32 value provided by the user and print 3 rows beginning with the starting value. Within that row, the pattern of doubled numbers should be calculated by issuing ROL instructions. For the next row, start it with the first number from the prior row increment by one.

For example, the following output should be produced when the user inputs the starting value 2:

Gimme a starting value: 2
Double Table
2 4 8
3 6 12
4 8 16

And here would be the output produced when the user inputs the starting value 4:

Gimme a starting value: 4
Double Table
4 8 16
5 10 20

 

 

Reference no: EM13167040

Questions Cloud

Define a class called counter : Define a class called Counter. An object of this class is used to count things, so it records a count that is a non negative whole number. Include methods to set the counter to 0, to increase the count by
Prompts for an int8 value to inspect and then prints : Write an HLA Assembly program that prompts for an int8 value to inspect and then prints it in binary format.
Temporarily move to the street so that the : Driveway is a "last-in, first-out" stack. Of course, when a car owner retrieves a vehicle that wasn't the last one in, the cars blocking it must temporarily move to the street so that the requested vehicle can leave
Fair and responsible use of college computer : Fair and Responsible Use of College Computers" and is based on the rules and regulation provided by your institution. Does your school have a similar policy? Does it contain all the elements listed in the text?
Write a program to produce a double table : Using the ROL instruction to perform multiplication, write a program to produce a double table. This table should be built from a single int32 value provided by the user and print 3 rows beginning with the starting value. Within that row, the pattern..
Most cost-effective in terms of both time and money : Search the Web for security education and training programs in your area. Keep a list and see which category has the most examples. See if you can determine the costs associated with each example. Which do think would be most cost-effective in terms ..
Write a program that will accept the names of 3 processes : Write a program that will accept the names of 3 processes as command-line arguments. Each of these processes will run for as many seconds as: (PID%10)*2+3 and terminate.�
Random numbers : Create a program that will generate a list of 200 random numbers (ranging from 1- 1000) and determine the medium, mode, and average of the list of numbers. Have the program display the original list and then display the list in ascending and desce..
Searches for items that are not in the list : How many searches for items that are not in the list would you have to do to make sorting and using binary search a better strategy than using linear search?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Explaining service strategy or service design

Select a topic that most interests you from Service Strategy or Service Design and then write a paper around that topic. Try to use as much of your own creativity and originality when writing the paper.

  Create a class named commission

Create a class named Commission that includes two numeric variables: a sales figure and a commission rate. Also create two overloaded methods name computeCommission().

  Compute minimum-maximum possible values for distance

During run, compute the minimum and maximum possible values for the following distance measures (from the center of the track): Manhattan, Euclidean and Chebyshev distance.

  Write a program to prompt the user to enter a postfix expres

Write a program to prompt the user to enter a postfix expression. When the user presses enter, the stack based method for constructing expression trees will be executed

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  Explaining responsibility ofconfidentiality to employer

Describe what you must do in such a situation. You know that cost to your present employer will increase if ambiguities are not resolved. Though, you also have a responsibility of confidentiality to previous employer.

  Structure stack that represents

Design a structure stack that represents a stack of elements of some arbitrary type. Include the functions: create(returns an empty stack), push(add an element to the top of the stack and return the resulting stack)

  Task manager to recognize and troubleshoot problems

Which system resources are probable to be at root of problem? How can you use system tools, like the Task Manager, to help recognize and troubleshoot these problems?

  Hardware and system software qualify as infrastructure

What is infrastructure? In what was do hardware and system software qualify as infrastructure? What basic strategic planning questions should be addressed with respect to infrastructure?

  Write a scheme funtion that takes a list

Write a Scheme funtion that takes a list and an atom as parameters and returns a list identical to its parameter list except with all top level instances of the given atom deleted

  Whena router encounters

Whena router encounters an error in an IP header it:  a.returns the packet to the sending router. b. returns the packet to the sending router with an error advisement.

  Web forms controls

Using Web Forms controls,create a Web application to include a TextBox object,a Button object,and a ListBox object. Allow the user to input values into the TextBox.Use those values to populate the ListBox object.

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