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
MA_775_DIABLO [31]
4 years ago
5

Using the College Registration example from Section 6.7.3 as a starting point, do the following:

Computers and Technology
1 answer:
Margarita [4]4 years ago
4 0

Answer:

Check the explanation

Explanation:

INCLUDE Irvine32.inc

TRUE = 1

FALSE = 0

.data

gradeAverage WORD ?

credits WORD ?

oKToRegister BYTE ?

str1 BYTE "Error: Credits must be between 1 and 30" , 0dh,0ah,0

main PROC

call CheckRegs

exit

main ENDP

CheckRegs PROC

push edx

mov OkToRegister,FALSE

; Check credits for valid range 1-30

cmp credits,1 ; credits < 1?

jb E1

cmp credits,30 ; credits > 30?

ja E1

jmp L1 ; credits are ok

; Display error message: credits out of range

E1:

mov edx,OFFSET str1

call WriteString

jmp L4

L1:

cmp gradeAverage,350 ; if gradeAverage > 350

jna L2

mov OkToRegister,TRUE ; OkToRegister = TRUE

jmp L4

L2:

cmp gradeAverage,250 ; elseif gradeAverage > 250

jna L3

cmp credits,16 ; && credits <= 16

jnbe L3

mov OkToRegister,TRUE ; OKToRegister = TRUE

jmp L4

L3:

cmp credits,12 ; elseif credits <= 12

ja L4

mov OkToRegister,TRUE ; OKToRegister = TRUE

L4:

pop edx ; endif

ret

CheckRegs ENDP

END main

You might be interested in
Intro to cs 3.7 edhesive g=float(input("Enter your English test grade:")) if(g&lt;=64): print("F") if (g&gt;=65 and g&lt;69): pr
qwelly [4]

Answer:

The correct code for this question:

g=float(input("Enter your English test grade:")) #take input from user.

#check conditions

if (g>=100 and g<=90):

print ("A")

#g greater then equal to 100 and less then equal to 90.

if (g>=89 and g<=80):

print("B")

#g greater then equal to 89 and less then equal to 80.

if (g>=79 and g<=70):

print("C")

#g greater then equal to 79 and less then equal to 70.

if (g>=69 and g<=65):

print("D")

#g greater then equal to 69 and less then equal to 69.

if(g<=64):

print("F")

#g less then equal to 64.

else:

print ("Not a grade")

#not a grade or fail.

Explanation:

In this program, we use to take a value from the user and check the value from the various conditions. To check all the condition we use if-else statement and AND operator that check to the range to together.

If -else is a conditional operator. In that, If block is used to check the true part and else part takes false value, and AND is a logical operator that check the two range together  

5 0
3 years ago
Which of these functions may be used with positional arguments? Select four options.
Rina8888 [55]

Answer:

A, C, D, E.

Explanation:

6 0
4 years ago
Read 2 more answers
Which of the following is not true about a list of lists
Thepotemich [5.8K]

Answer:

Where's the list??

3 0
3 years ago
An example of a(n) _____ is a software defect in an operating system that allows an unauthorized user to gain access to a comput
mel-nik [20]

Answer:

C. Vulnerability

Explanation:

Vulnerabilities

Vulnerabilities involve bugs in software. <em>Bugs</em> are coding errors that cause the system to make an unwanted action. All software has bugs of one form or another. Some bugs cause the system to crash, some cause connectivity to fail, some do not let a person to log in, and some cause printing not to work properly.  Some bugs create information leakage or elevate user privileges or grant otherwise unauthorised access. These are security vulnerabilities. If all software has bugs and it is inevitable that some bugs will be security vulnerabilities, all software will have security vulnerabilities

7 0
3 years ago
This is a special language used to write computer programs.
Nitella [24]
The question is vague but the answer is probably : code
7 0
3 years ago
Other questions:
  • Which of the following is NOT one of the most important elements when designing a website?
    8·2 answers
  • The more critical a component or service, the higher the level of availability required. True False
    5·1 answer
  • A ____ is commonly a single device or server that attaches to a network and uses TCP/IP-based protocols and communications metho
    9·1 answer
  • Can anyone find any words in here?
    14·2 answers
  • Which of the following are provided by most professional organizations
    11·1 answer
  • Which of the following best describes the protocol used on the internet?
    8·1 answer
  • You cannot be everywhere at once, but your freedom allows you to
    5·1 answer
  • PLEASE HELP!!!
    7·1 answer
  • Re-write the below program correcting the bugs
    8·1 answer
  • How to download film​
    14·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!