Reference no: EM13162937
1) Put the given numbers into an array int A[48].
97 24 77 58 76 92 43 68 18 52 55 53
33 39 22 73 49 47 17 27 45 67 20 21
35 63 19 64 81 51 97 29 98 20 53 14
94 24 29 86 46 65 58 65 27 65 39 56.
Use selection sort to sort A[48] into increasing order, and then print out the sorted list in four rows. There may be duplicates, but that's OK. (65 and 53 appear twice.) Duplicates will appear next to each other in the sorted list.
2) Program binary search. .
Your program should give a prompt to the user "Please enter the number to search for."
After doing the binary search, your program should print out either
* Your number is in position ____, which is a number between 0 and 47.
When there are duplicates, such as 65, or 53, the program will print out the position of one of them.
The TA will come by to test your program. He will give you 3 numbers:
*A number not in the list.
*A number such as 65 that appears more than once.
*A number that appears exactly once.
your code should print out
"*I'm sorry, your number was not in the list."
If it is not in the list
Example of sexual harassment according to text''s definition
: According to a Lou Harris poll, compared to workers in the recent past, the average American worker today. and an example of sexual harassment according to the text's definition?
|
Compute the approximate molarity
: Calculate the approximate molarity of this solution from the volume, percent composition, and density.
|
Determine the abundance of each isotpe
: there are two natuarlly occuring isotopes of rubidum. (85)Rb has a mass of84.9118 amu. (87)Rb has a mass of 86.9092 amu. Determine the abundance of each isotpe.
|
Write computer program to implement this algorithm
: Write computer program to implement this algorithm and demonstrate the results and what is the machine run time in second for sorting array A?
|
Use selection sort to sort a[48] into increasing order
: Use selection sort to sort A[48] into increasing order, and then print out the sorted list in four rows. There may be duplicates, but that's OK. (65 and 53 appear twice.) Duplicates will appear next to each other in the sorted list.
|
Compute the molar mass of the monoprotic acid
: dissolved in water and completely neutralized by the addition of 43.70 mL of 0.303 M NaOH. Calculate the molar mass of the acid, assuming it to be a monoprotic acid.
|
What type of social influence situation
: In what type of social influence situation do we follow direct commands from others? forming, storming, norming, and performing
|
Analyze and create unique solutions
: The ability to analyze and create unique solutions designed to make decisive and immediate resolutions, which allows for timely completion of tasks
|
Explain what is the volume of the gas at stp conditions
: What is the volume of the gas at STP conditions? b.) What is the molar volume of the gas?
|