subject
Computers and Technology, 16.03.2020 17:02 dranio

Write an assembly language program (windows32) that: • Prompts the user to enter 10 positive integers less than or equal to 1000, one at a time. The program should store these values into an array as they are entered. • Only after the array has been populated should the program then display the contents of the array, in the order they were entered, all in one single output. • Then the program should sort the array from smallest value to largest value. • Then the program should display the contents of the array again, in the new sorted order, all in one single output. Then the program should search through the array and display all values that are multiples of 3. These can be displayed one at a time. Notes: • Zero is NOT a positive integer. • Your program should guard against non-positive integers and integers above 1000. If the user enters an invalid number, your program should display an error message, and repeatedly ask for a new value until the user enters a valid number. You MUST use exactly one numerical array. No more. Of course, you will have a string (or array of characters for the display). That's OK. • Your output should have message headers that are informative as to what you are displaying (e. g. "The array as entered", "The sorted array", etc.) • You MUST include ample, meaningful comments. Points will be deducted for hard to read code. Comments really help readability. • You MUST have a comment in the program, in the appropriate spot, indicating what type of sorting algorithm you are using. • Use regular indirect addressing.

ansver
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 02:50, CrusaderLord
Define a class named movie. include private fields for the title, year, and name of the director. include three public functions withprototypes void movie: : settitle(cstring); , voidmovie: : setyear(int); , void movie: : setdirector(string); . includeanother function that displays all the information about a movie. write a main() function that declares a movie object namedmyfavoritemovie. set and display the object's fields. this is what i have but know its wrong since it will notcompile: #include#includeusing namespace std; //class declarationclass movie{private: string movietitle ; string movieyear; string directorname; public: void settitle(string title); void setyear(string year); void setdirector(string director); void displayinfo(); }; //class implementationvoid movie: : settitle(string title){ movietitle = title; cout< < "what is the title of themovie? "< > temp; myfavoritemovie. settitle(temp); cout< < "enter movie year"< > temp; myfavoritemovie. setyear(temp); cout< < "enter director'sname"< > temp; myfavoritemovie. setdirector(temp); //display all the data myfavoritemovie. displayinfo(); system("pause"); return 0; this code is not entirely mine someone on cramster edited my firstcode but then i try manipulating the new code and i still get acompile error message : \documents\visual studio 2008\projects\movie\movie\movie. cpp(46) : error c2679: binary '< < ' : no operator found which takes aright-hand operand of type 'std: : string' (or there is no acceptableconversion)c: \program files (x86)\microsoft visual studio9.0\vc\include\ostream(653): could be'std: : basic_ostream< _elem,_traits> & std: : operator< < > (std: : basic_ostream< _elem,_traits> & ,const char *)w
Answers: 1
image
Computers and Technology, 23.06.2019 12:00, kp2078
What type of slide show is a dynamic and eye-catching way to familiarize potential customers with what your company has to offer? a. ole b. photo album c. brochure d. office clipboard
Answers: 2
image
Computers and Technology, 23.06.2019 22:30, BilliePaul95
Janice usually works on a particular workbook that contains all business related data. she decides to keep a backup of all the data in a separate workbook. she opens a new workbook to transfer the data. which option should she use to copy all the data from one workbook to another workbook?
Answers: 1
image
Computers and Technology, 24.06.2019 03:30, laylay120
Other - a written response, no less than arial 12-point font, to the following: of the following, which would you consider is most important to customer service goals? choose one and explain why. (1) accuracy (2) punctuality and attendance (3) courtesy (4) productivity (5) organization
Answers: 1
You know the right answer?
Write an assembly language program (windows32) that: • Prompts the user to enter 10 positive integer...

Questions in other subjects:

Konu
English, 30.09.2019 02:30
Konu
English, 30.09.2019 02:30
Konu
Mathematics, 30.09.2019 02:30