1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Masja [62]
4 years ago
8

Consider the following MARIE Code: 100 If, Load X /Load the first value 101 Subt Y /Subtract the value of Y, store result in AC

102 Skipcond 400 /If AC=0 (X=Y), skip the next instruction 103 Jump Else /Jump to Else part if AC is not equal to 0 104 Then, Load X /Reload X so it can be doubled 105 Add X /Double X Store X /Store the new value 107 Jump Endif /Skip over the false, or else, part to the end of if 108 Else, Load Y /Start the else part by loading Y 109 Subt X /Subtract X from Y 10A Store Y /Store Y-X in Y 10B Endif, Halt /Terminate program (it doesn't do much!) 10C X, Dec 12 /Assume these values for X and Y 10D Y, Dec 20 Find the values stored in the following registers after the execution of "Skipcond 400" instruction: [5 marks] (i) PC (ii) IR (iii) MAR (iv) MBR (v) AC
Computers and Technology
1 answer:
Strike441 [17]4 years ago
4 0

The values stored in the registers is calculated by using the following codes:

<u>Explanation</u>:

The program is given below,

100 If, Load / by Load the first value

101 Subt Y / Subtract the value of Y, store result in AC

102 Skipcond 400 / If AC=0 (X=Y), skip the next instruction

103 Jump Else / Jump to Else part if AC is not equal to 0

104 Then, Load X / Reload X so it can be doubled

105 Add X / Double X

106 Store X / Store the new value

107 Jump Endif / Skip over the false, or else, part to the end of if

108 Else, Load Y / Start the else part by loading Y

109 Subt X / Subtract X from Y

10A Store Y / Store Y-X in Y

10B Endif, Halt / Terminate program (it doesn't do much!)

10C X, Dec 12 / Assume these values for X and Y

10D Y, Dec 20

You might be interested in
What information system would be most useful in determining what direction to go in the next two years?
cluponka [151]

Its actually Executive information system

3 0
4 years ago
Read 2 more answers
What command do we use to enter data from the keyboard?
SVEN [57.7K]
D I would think……… good luck
6 0
3 years ago
Is the IOT governable by frameworks? Explain your rationale.
polet [3.4K]

Answer:

Absolutely yes.

Explanation:

IoT is an acronym for Internet of Things. This is a system of network devices connected together in order to transmit data over the internet. And since communication of these devices is over the internet, there's a need for some protocols for control and moderation. Hence, the need for IoT governance frameworks.

Some of the aspects that should be governed by these frameworks are;

i. Data confidentiality:

Data such as Social Security Numbers, Bank Verification Numbers and Credit card details, that are being transmitted in an IoT system should be assured of protection from unwanted usage or access.

ii. Data integrity:

These data should also be assured of consistency and accuracy over a long period of time.

iii. Accountability:

When there is a breach or some sort of mishappening, there has to be a body that would be held accountable.

8 0
3 years ago
Create an array of that size and then prompt the user for numbers to fill each position in the array. When all of the positions
andreyandreev [35.5K]

Answer:

In Java

import java.util.Scanner;

public class Main {

  public static void main(String[] args) {

     Scanner input = new Scanner(System.in);

     int arrsize;

     System.out.print("Please enter the number of digits to be stored: ");

     arrsize = input.nextInt();

     int[] myarr = new int[arrsize];

     for (int kount = 0; kount < arrsize; kount++) {

        System.out.print("Enter integer: ");

        myarr[kount] = input.nextInt();      }

     System.out.println("The contents of your array:\nNumber of digits in array: "+arrsize);

     System.out.print("Digits in array: ");

     for (int kount = 0; kount < arrsize; kount++) {

        System.out.print(myarr[kount]+" ");      }

  }

}

Explanation:

This declares the length of the array

     int arrsize;

This prompts the user for the array length

     System.out.print("Please enter the number of digits to be stored: ");

This gets the input for array length

     arrsize = input.nextInt();

This declares the array

     int[] myarr = new int[arrsize];

The following iteration gets input for the array elements

<em>      for (int kount = 0; kount < arrsize; kount++) { </em>

<em>         System.out.print("Enter integer: "); </em>

<em>         myarr[kount] = input.nextInt();      } </em>

This prints the header and the number of digits

     System.out.println("The contents of your array:\nNumber of digits in array: "+arrsize);

     System.out.print("Digits in array: ");

The following iteration prints the array elements

<em>      for (int kount = 0; kount < arrsize; kount++) { </em>

<em>         System.out.print(myarr[kount]+" ");      }</em>

4 0
3 years ago
Thao tác trên mảng hai chiều với các yêu cầu sau đây: Khai báo mảng hai chiều; Nhập dữ liệu cho mảng hai chiều; Xuất theo dòng;
stepan [7]

Answer:

<h3>THIS SERVER IS FOR THE PEOPLES WHO'S ON THE UNITED STATES ONLY . IF U WANT US TO ANSWER YOUR QUESTION TRANSLATE IT TO ENGLISH </h3>
8 0
3 years ago
Other questions:
  • What is the difference between hardware and software?
    11·1 answer
  • What is plagiarism?<br> EXPLAIN IT
    15·2 answers
  • Every computer consists of physical components and nonphysical components. the nonphysical components of a computer that underst
    9·1 answer
  • Data that are collected on large populations of individuals and stored in databases are referred to as _____.
    15·1 answer
  • Tina has made a database table in access containing field name class roll number and contact number she has set primary key for
    5·1 answer
  • Which of the following statements correctly instantiate the Rectangle object myRectangle? (i) myRectangle Rectangle = new Rectan
    6·2 answers
  • Write a program in C++ that will ask the user to enter a five-digit integer. The program will detect if the number entered is a
    6·1 answer
  • As a sports store owner, the higher the price you charge for gear...
    8·2 answers
  • What does it mean "Be Proactive"?
    10·2 answers
  • Why is it important to enforce access controls and to keep logs regarding who has access to data closets
    14·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!