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
AveGali [126]
3 years ago
13

Write an assembly language program that will accept a single character from the keyboard, and then output the next character in

the ASCII sequence. For example, if the character 'A' is entered, the character 'B' will be typed out.
Computers and Technology
1 answer:
lana66690 [7]3 years ago
4 0

Answer:

<u>Explanation:</u>

.LC0:

.string "Enter a alphabet "

.LC1:

.string "%c"

.LC2:

.string "The next alphabet is %c"

main:

push rbp

mov rbp, rsp

sub rsp, 16

mov edi, OFFSET FLAT:.LC0

mov eax, 0

call printf

lea rax, [rbp-5]

mov rsi, rax

mov edi, OFFSET FLAT:.LC1

mov eax, 0

call scanf

movzx eax, BYTE PTR [rbp-5]

movsx eax, al

add eax, 1

mov DWORD PTR [rbp-4], eax

mov eax, DWORD PTR [rbp-4]

mov esi, eax

mov edi, OFFSET FLAT:.LC2

mov eax, 0

call printf

mov eax, 0

leave

ret

OUTPUT

Enter a alphabet C

The next alphabet is D

Explanation

Here the logic used is first we converted the input character to its corresponding ASCII value and we added one to it and again it is converted back to corresponding alphabet and displayed

You might be interested in
You are designing a wireless network for a client. your client needs the network to support a data rate of at least 54 mbps. in
vitfil [10]
Um... that is hard to explain Idk
5 0
4 years ago
What does the clone tile command do?
Angelina_Jolie [31]
It allows you to create tiled copies of an object while tweaking the variables
5 0
3 years ago
Read 2 more answers
Write a program that prompts the user to enter: The cost of renting one room The number of rooms booked The number of days the r
Shtirlitz [24]

Answer:

Written in Python

cost = float(input("Cost of one room: "))

numrooms = int(input("Number of rooms: "))

days = int(input("Number of days: "))

salestax = float(input("Sales tax (%): "))

print("Cost of one room: "+str(cost))

print("Discount: 0%")

print("Number of rooms: "+str(numrooms))

print("Number of days: "+str(days))

totalcost = numrooms * cost

print("Total cost: "+str(totalcost))

salestax = salestax * totalcost/100

print("Sales tax: "+str(salestax))

print("Total Billing: "+str(salestax + totalcost))

Explanation:

The next four lines prompts user for inputs as stated in the question

<em>cost = float(input("Cost of one room: "))</em>

<em>numrooms = int(input("Number of rooms: "))</em>

<em>days = int(input("Number of days: "))</em>

<em>salestax = float(input("Sales tax (%): "))</em>

<em />

The following line prints cost of a room

print("Cost of one room: "+str(cost))

The following line prints the discount on each room (No information about discount; So, we assume it is 0%)

print("Discount: 0%")

The following line prints number of rooms

print("Number of rooms: "+str(numrooms))

The following line prints number of days

print("Number of days: "+str(days))

The following line calculates total cost of rooms

totalcost = numrooms * cost

The following line prints total cost

print("Total cost: "+str(totalcost))

The following line calculates sales tax

salestax = salestax * totalcost/100

The following line prints sales tax

print("Sales tax: "+str(salestax))

The following line calculates and prints total billings

print("Total Billing: "+str(salestax + totalcost))

6 0
3 years ago
Which of the following best describes open-source web browsers?
Lostsunrise [7]
<span>Following are some best open source CRM software: Really Simple Systems
</span><span>Bitrix24 Raynet SuiteCRM vTiger 
</span>
is this what you are asking for
4 0
3 years ago
Read 2 more answers
In a short essay, discuss the question, “How are you an innovator?”
rusak2 [61]
What class Is this 4 ? I think we have some thing similar
7 0
3 years ago
Other questions:
  • Roblox published a series of videos to help their audience use their creation engine, what are they called?​
    9·2 answers
  • In 3–5 sentences, describe how technology helps business professionals to be more efficient.
    7·2 answers
  • Grace Hopper led the development of ______, a programming language for business applications.
    6·2 answers
  • Here is a series of address references given as word addresses: 2, 3, 11, 16, 21, 13, 64, 48, 19, 11, 3, 22, 4, 27, 6, and 11. A
    9·1 answer
  • Write the class definition for a class named Employee. The class should include data members for an employee object%u2019s name
    12·1 answer
  • During his last performance review, Franco's boss urged him to set some short-term and long-term sales goals to help him perform
    6·2 answers
  • You receive an email from a woman claiming her father was poisoned by business associates, but before his passing placed 12 mill
    12·2 answers
  • Write any two features of Guided media​
    5·1 answer
  • 1. Who is affected by electronic theft of a song?
    5·2 answers
  • True or False? Voice recognition is the process of determining the meaning of the words spoken by a human.
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!