Question

1. **Create a simple 68K program called ADDER**.
Your program should add together the numbers: 6, 4, 12, and 5.
Store two of those values in variables and rest two are immediate
addressing.

Answer #1

LANGUAGE: SCHEME R5RS
Create a procedure called preceeding that will take a list of
numbers as argument and determine the elements and indices of those
elements that preceed a negative number in the given list. The
returned information should be in the form of a pair of lists:
((values) . (indices)).
E.g.
(preceeding '(1 -2 3 4 -5 6 -7 -8)) → ((1 4 6 -7).(0 3 5 6))
;note: drracket will display this as ((1 4 6 -7) 0...

Create a simple addition calculator in Java. The program should
prompt the user to enter 2 integers, then adds the numbers and
prints the result. Make sure the program includes appropriate
exception handling in case the user does not enter appropriate
integer values.

python program
1. create a .txt file and call it fruits.txt, add the following
items to the file
Apple
Banana
Peach
Strawberry
Watermelon
Kiwi
Grape
2. Write a program that does the following:
- Reads the fruit.txt
- Converts the contents into all uppercase
- Writes the uppercased values into a text file called
"UpperFruit.txt"
OUTPUT SHOULD BE:
APPLE
BANANA
PEACH
STRAWBERRY
WATERMELON
KIWI
GRAPE

Adder
Start out by picking 2 positive six bit binary numbers that are
less than 3210, written in 2's complement notation. The
eventual goal is to add these two numbers.
1) Look at the LSB bit of the numbers, and using logic gates
(NANDs, NORs, etc.) design a circuit that correctly gives the right
output for any possible combination of bits in the LSB place.
2) Now look at the next column to the left (next to LSB). In
this...

In C++
1.) Create a function called copyMyArray. It should take in an
array and copy array1 into array2.
2.) Create a vector and fill it with the numbers 1 to 10.
Replace the number 3 with the number 3000. Insert the number 5000
between the 5 and 6.

PROGRAM PYHTON
Write a function called "calculateInput" that when called, it
asks the user to enter an number. Then, it asks for a second
number. These will use the "input" command. Store these as two
separate variables. This function takes NO arguments and is also a
VOID function, there is no return statement. The function should
print the result of these two numbers multiplied together. The
program should be able to multiply floats.
For example:
Test
Input
Result
calculateInput()
5...

Write a method using JAVA called "maximum4"
that returns the maximum of 4 decimal numbers. Use the
"math.max" method to implement
"maximum4". The user should enter the 4 values and
the program determines the maximum and then display the result.
The steps for the Project could be the
following:
Create the Maximum4 method that includes the
math.max
Define and enter the variables
Apply the Maximum4 method you created to find the maximum of
the 4 decimal numbers you entered and...

In mathematics, the Fibonacci numbers are the numbers in the
following integer sequence, called the Fibonacci sequence, and
characterized by the fact that every number after the first two is
the sum of the two preceding ones:
1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, …
The sequence Fn of Fibonacci numbers is defined by
the recurrence relation:
Fn = Fn-1 + Fn
with seed values F1 = 1 F2 = 1
For more information on...

1) Write a java programming using a while
loop where you will add numbers and when you
press number 0 it will add all your
numbers and display the results.
Use Scanner object.
Steps:
1) Declare variables integer called sum which is equal to
zero
2) Declare Scanner object
3) Declare while condition where is true
4) Inside of that condition prompt the user to enter
the numbers
5) Declare variable integer called number and input
the number statement
6)...

Write a C++ program to demonstrate thread synchronization. Your
main function should first create a file called synch.txt. Then it
will create two separate threads, Thread-A and Thread-B. Both
threads will open synch.txt and write to it. Thread-A will write
the numbers 1 - 26 twenty times in nested for loops then exit. In
other words, print 1 - 26 over and over again on separate lines for
at least 20 times. Thread-B will write the letters A - Z...

ADVERTISEMENT

Get Answers For Free

Most questions answered within 1 hours.

ADVERTISEMENT

asked 1 minute ago

asked 2 minutes ago

asked 7 minutes ago

asked 9 minutes ago

asked 11 minutes ago

asked 31 minutes ago

asked 45 minutes ago

asked 45 minutes ago

asked 46 minutes ago

asked 55 minutes ago

asked 1 hour ago

asked 1 hour ago