Using the knowledge in computational language in LC-3 Assembly it is possible to write a code that replaces the value in R0 with its absolute value
<h3>Writting the code </h3>
.ORIG x0200
START
AND R0, R0, #0 ; copy R0 to itself to set the condition codes based on R0;
; i.e performing addition operation with Zero option to set the flags
BRzp DONE ; if R0 is NON-NEGATIVE, skip the negation (already correct);
; Branch to DONE if number is poistive
NOT R0, R0 ; R0 is negative, so negate it i.e taking 2's complement
ADD R0, R0, #1 ; R0 = -R0 is performed successfully
DONE BR START
.END
See more about LC-3 Assembly at brainly.com/question/12978370
#SPJ1
Answer: (A) Tactical support
Explanation:
GIS is the global information system in which the data is delivered worldwide in the form of information system. The global information system achieve long term goals in an organization.
- The tactical support is used in the global information system for concentrating the activities on the medium range in an organization.
- The tactical support is one of the effective way to producing the desirable result and also achieve the main strategic objective.
Therefore, Option (A) is correct.
local stores in neighborhood do not have computerized cash registers but they may have cameras if they are in a bad neighborhood. inventory is controlled by checking the shelves.
the Qs about computers, servers and clients are for national chain stores. they use clients at each store which are connected to the central servers at HQ. employees need special training as the system is complicated. the whole system is maintained by their IT department.
The answer is drag and drop.
With drag and drop editing, word automatically displays a paste option button near the pasted or moved text.
Answer:
C++ code is given below
Explanation:
#include <iostream>
#include <cctype>
#include <string.h>
#include <cstring>
#include <sstream>
using namespace std;
struct Car {
public:
char reportingMark[5];
int carNumber;
string kind;
bool loaded;
string destination;
};
void input(Car *);
void output(Car *);
int main() {
Car *T = new Car;
input(T);
output(T);
delete T;
return 0;
}
void input(Car *T)
{
string str, s;
cout << " Enter the reporting mark as a 5 or less character uppercase string: ";
cin >> str;
for (int i = 0; i < str.length(); i++)
T->reportingMark[i] = toupper(str[i]);
cout << " Enter the car number: ";
cin >> T->carNumber;
cout << " Enter the kind: ";
cin >> T->kind;
cout << " Enter the loaded status as true or false: ";
cin >> s;
istringstream(s) >> boolalpha >> T->loaded;
if (T->loaded == true) {
cout << " Enter the destination: ";
cin.ignore();
getline(cin, T->destination);
}
else
T->destination = "NONE";
}
void output(Car *T)
{
cout << " Reporting Mark: " << T->reportingMark;
cout << " Car Number: " << T->carNumber;
cout << " Kind: " << T->kind;
cout << " Loaded Status: " << boolalpha << T->loaded;
cout << " Destination: " << T->destination << " ";
}