Question

Programming classes (C, C++, Matlab, Java), regardless of language, often revolve around syntax. However, the underlying algorithm and the planning that goes into it is often the more critical part of computer programming This assignment will walk you through the steps of basic algorithm development. our job is to write a flowchart and pseudocode for the task below. You can follow the example given in the appendix as a guide. We have an array of size 10 . The entries are indexed 0 through 9·The contents of the entries is not strictly relevant. Your job is to efficiently switch the first and last entry, then the 2d and2d to last entry, then the 3d and3 to last, etc. until you get the entire table flipped. For example, Before: After Entry Number Entry Value Entry Number Entry Value Make the algorithm as efficient as possible. This could mean making multiple passes at the same process.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

The pseudocode would be

for i=0 to 5

temp=arr[i]

arr[i]=arr[9-i]

arr[9-i]=temp

Loop end

The flowchart is

Start i45 True arr[9-i]-temp Stop

Add a comment
Know the answer?
Add Answer to:
Programming classes (C, C++, Matlab, Java), regardless of language, often revolve around syntax. However, the underlying...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT