Menu

[Solved]Teacher Wants Write Algorithm Would Later Used Write Code Solve Problem M Assuming Wants K Q37188157

so my teacher wants me to write an algorithm thatwould later be used to write the code to solve this problem. I’massuming he wants some kind of pseudo code or something like thatbut I’m not sure what to write. any ideas?

Assignment Using the MS DOS command line terminal, open the MS text editor notepad and write a program th following: at does

Once again, I dont need the exact code. it should besome algorithm that will eventually help me write the code

Assignment Using the MS DOS command line terminal, open the MS text editor notepad and write a program th following: at does the a) Generate a list of all prime numbers between startNumber and endNumber. Where startNumber and endNumber are user entered integer values. Prime numbers are numbers that can only be divided by and itseltf b) Guarantee the first input value is less than the second. c) Develop an algorithm that can solve this problem. Use the SpendingSpree example on page 235-237 d) Page 236 gives the algorithm using pseudocode for the SpendingSpree program on page 237. e) There are several ways to solve this problem. Certain solutions are more efficient than other solutions as a guide for writing the algorithm to solve this problem. Pseudocode consists of English words and java like code. Use pseudocode when you write your algorithm. You may find the SpendingSpree solution helpful as you think about your solution. and therefore will run faster. The computer is very fast and for the purpose of this assignment a fast solution and a slow solution will appear to solve the problem immediately. When thinking about your solution try and make it as efficient as you can. When you have finished writing and saving the program, compile and run the program in the MS DOS terminal. After you get the program running correctly display the program in the terminal window using the “more” command. Capture your display of the code, and the compiling and running of the program by using the Ctrl-A then Ctrl-C keyboard commands, to capture the contents of the terminal, and then pasting the results into a Word document. Below are two sample runs of the program. This program finds the prime numbers between two client entered Numbers. Please enter two integer numbers. The first is smaller than the second. 40 20 Please enter two integer numbers. The first must be smaller than the second. 28 Show transcribed image text Assignment Using the MS DOS command line terminal, open the MS text editor notepad and write a program th following: at does the a) Generate a list of all prime numbers between startNumber and endNumber. Where startNumber and endNumber are user entered integer values. Prime numbers are numbers that can only be divided by and itseltf b) Guarantee the first input value is less than the second. c) Develop an algorithm that can solve this problem. Use the SpendingSpree example on page 235-237 d) Page 236 gives the algorithm using pseudocode for the SpendingSpree program on page 237. e) There are several ways to solve this problem. Certain solutions are more efficient than other solutions as a guide for writing the algorithm to solve this problem. Pseudocode consists of English words and java like code. Use pseudocode when you write your algorithm. You may find the SpendingSpree solution helpful as you think about your solution. and therefore will run faster. The computer is very fast and for the purpose of this assignment a fast solution and a slow solution will appear to solve the problem immediately. When thinking about your solution try and make it as efficient as you can. When you have finished writing and saving the program, compile and run the program in the MS DOS terminal. After you get the program running correctly display the program in the terminal window using the “more” command. Capture your display of the code, and the compiling and running of the program by using the Ctrl-A then Ctrl-C keyboard commands, to capture the contents of the terminal, and then pasting the results into a Word document. Below are two sample runs of the program. This program finds the prime numbers between two client entered Numbers. Please enter two integer numbers. The first is smaller than the second. 40 20 Please enter two integer numbers. The first must be smaller than the second. 28

Expert Answer


Answer to so my teacher wants me to write an algorithm that would later be used to write the code to solve this problem. I’m assum… . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *