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
Fudgin [204]
3 years ago
5

Write a complete program that: 1. Prompt the user to enter 10 numbers. 2. save those numbers in a 32-bit integer array. 3. Print

the array with the same order it was entered. 3. Calculate the sum of the numbers and display it. 4. Calculate the mean of the array and display it. 5. Rotate the members in the array forward one position for 9 times. so the last rotation will display the array in reverse order. 6. Print the array after each rotation. check the sample run.
Computers and Technology
1 answer:
FrozenT [24]3 years ago
7 0

Answer:

see explaination

Explanation:

oid changeCase (char char_array[], int array_size ) {

__asm{

// BEGIN YOUR CODE HERE

mov eax, char_array; //eax is base image

mov edi, 0;

readArray:

cmp edi, array_size;

jge exit;

mov ebx, edi; //using ebx as offset

shl ebx, 2;

mov cl, [eax + ebx]; //using ecx to be the storage register

check:

//working on it

cmp cl, 0x41; //check if cl is <= than ASCII value 65 (A)

jl next_indx;

cmp cl, 0x7A; //check if cl is >= than ASCII value 122 (z)

jg next_indx;

cmp cl, 'a';

jl convert_down;

jge convert_up;

convert_down:

or cl, 0x20; //make it lowercase

jmp write;

convert_up:

and cl, 0x20; //make it uppercase

jmp write;

write:

mov byte ptr [eax + ebx], cl //slight funky town issue here,

next_indx:

inc edi;

exit:

cmp edi, array_size;

jl readArray;

mov char_array, eax;

// END YOUR CODE HERE

}

}

You might be interested in
Write your own accessor and mutator method for the Rectangle class instance variables. You should create the following methods:
frozen [14]

Answer:

Public int getHeight(){

return height;

}

public int getWidht(){

return widht;

}

public int setHeight(int change){

height = change;

}

public int setWidht(int change){

widht = change;

}

public int getPerimeter(){

int perimeter = 2 ( getWidht() + getHeight ());

return perimeter;

If the width is 10 and height 4, the perimeter should be 28.

Explanation:

An accessor in Java is a method that is used to get the value of an object variable. The program above has three accessor methods, getHeight, getWidht and getPerimeter.

Mutators are methods that is used to change of mutate the value of object variables. They are denoted or identified by the set prefix in their names. From the class code, the mutator are setHeight and setWidht.

7 0
3 years ago
Anyone have an answer for 4.9 lesson code practice
castortr0y [4]

Answer:

loop

Explanation:

4 0
3 years ago
Print the two strings in alphabetical order. Assume the strings are lowercase. End with newline. Sample output: capes rabbits im
ValentinkaMS [17]

Answer:

Following are the code to the given question:

import java.util.Scanner;//import package

public class OrderStrings // defining a class OrderStrings  

{

   public static void main(String[] args) //defining a main method

   {

       Scanner scnr = new Scanner(System.in);//defining a Scanner class object  

       String firstString;//defining a String variable

       String secondString; //defining a String variable

       firstString = scnr.next();//input value

       secondString = scnr.next();//input value

       if (firstString.compareTo(secondString) < 0)//use if to compare sting value

           System.out.println(firstString + " " + secondString);//print sting value  

       else//else block

           System.out.println(secondString + " " + firstString);//print sting value

   }

}

Output:

rabbits capes

capes rabbits

Explanation:

In this code a class "OrderStrings" is defined inside the class the main method is defined that declares the two string variable that uses the input method to input the string value and after input, it uses the conditional statement. Inside this compareTo method is declared that compare string value and prints the string value.

4 0
3 years ago
Which one of the following is a benefit of using a contact group?
lisov135 [29]

Answer:

There are some benefit of using a contact group.

Explanation:

An email address collection consists of a contact group (formerly known as a "distribution list."). You can send an E-mail or invitation to meet to all addresses at the same time by using a contact group. In the messages, task requests, requests for meetings, and other contact groups you can include contact groups. Another advantage of contact groups is that they categorize your contacts so that a particular person can be found more easily in future. Depending on how far you want to reach with your contact organization, you can contact one group or more groups

6 0
3 years ago
Which occupation is expected to increase according to the segment? Plz help me with question 5
pantera1 [17]
In the Declaration of Independence it states, "To secure these rights, governments are instituted among men deriving their just power from the consent of the governed. Whenever any form of government becomes destructive of these ends, it is the right of the people to alter or abolish it."

What Enlightenment idea is reflected in this passage?
6 0
3 years ago
Other questions:
  • When can you access the BIOS setup utility?
    14·2 answers
  • _______ are fasteners that connect parts and are intended to resist pulling forces. A. Extension springs B. Compression springs
    12·1 answer
  • (count single digits) * write a program that generates 100 random integers between 0 and 9 * and displays the count for each num
    7·1 answer
  • What appears in the document after you have inserted a video?
    14·2 answers
  • Different ____________ are assigned to track multiple reviewers of a document.
    9·1 answer
  • Which is a popular IRC chat service?
    8·1 answer
  • 1.       An ________ works for a company to design, carry out, and solve its electronic equipment related problems.
    11·1 answer
  • Explain why interrupt times and dispatch delays must be limited to a hard real-time system?
    8·1 answer
  • PLEASE HELP!! THIS IS DUE TODAY!!
    13·2 answers
  • Online banking is a convenience that mostly affects which area of your life?
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!