Already have an account? Get multiple benefits of using own account!
Login in your account..!
Remember me
Don't have an account? Create your account in less than a minutes,
Forgot password? how can I recover my password now!
Enter right registered email to receive password!
Question: Read a sentence with period at the end. Display the sentence so that all vowels are in uppercase
sample I/O
Enter a sentence: proud is self-respect.
Output: prOUd Is sElf-rEspEct.
I have written a c++ code for this, I need to translate that to assembly language, we use c++to implement the assembly language. I have written some code for transferring a and e to uppercase, but still get wrong, can you help me with that? Thanks!
c++:
#include <iostream>
#include <string>
using namespace std;
char a[50];
int i;
void read() {
cout << "Enter a sentence: ";
cin.get(a, 50);
}
void display() {
for (int i = 0; i < 50; i++) {
if (a[i] == 'a') {
a[i] = 'A';
}else if (a[i] == 'e') {
a[i] = 'E';
}else if (a[i] == 'i') {
a[i] = 'I';
}else if (a[i] == 'o') {
a[i] = 'O';
}else if(a[i] == 'u') {
a[i] = 'U';
my assembly code:
void toUppercaseA() {
void toUppercaseE() {
cout << a << endl;
int main() {
_asm {
call read;
mov i, 0;
forloop:
mov eax, i;
//mov eax, i;
cmp i, 3;
jg endloop;
cmp [a + eax], 'a';
je uppercaseA;
cmp [a + eax], 'e';
je uppercaseE;
inc i;
jmp forloop;
uppercaseA:
call toUppercaseA;
uppercaseE:
call toUppercaseE;
endloop:
call display;
system("pause");
return 0;
Explain why a firm with market power faces a downward sloping demand curve, while a perfectly competitive firm faces a horizontal demand curve.
A text message to customers who are overdue for more than 3 days is generated every day. The current system is run on old standalone PCs that are not connected in a central system. The owner of the company requested a software expert to develop a ..
o The table number and Waiter's name must be entered. The restaurant has only 10 tables, therefore, the only valid table numbers are 1-10. After the user enters the table number and waiters name, then the table number and the waiters name shou..
Explain in your own words the purpose of the Software Engineering Institute's (SEI) exercises regarding team communication, and determine whether or not you believe this type of testing and analysis is a beneficial use of resources. Justify your a..
Who in Lipner's model can make this change? Explain the reads and writes necessary to make this change and justify the read and write using Lipner's matrix.
Using the draw.io site or a flowcharting tool of your choice, create a flowchart that models a complete Java program called StringSlicer that uses methods to:
Price of product in short-term and long-term also describe why you believe supply, demand, or equilibrium price will be different, if at all, in short-term and long-term.
Write a Windows application to make a user interface to allow users to choose what information from the anAuthorStyle.xml XML document to display
Describe the equivalence classes that the equivalence relation defines.
The following project network and table provide the normal times and costs as well as the crash times and costs for the activities required to complete a project. Crash the completion time to the minimum level.
What are the most important issues to consider? Support your answer with web research on these issues.
A wholesale T-shirt company offers sizes small, medium, large, and extra-large in organic or non-organic cotton and colors white, black, gray, blue, and red.
Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!
whatsapp: +1-415-670-9521
Phone: +1-415-670-9521
Email: [email protected]
All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd