Chat with us, powered by LiveChat IFT 194 CH 8 | Writedemy

IFT 194 CH 8

IFT 194 CH 8

1.     Draw and name a one-dimensional array that would hold 10 temperatures. Number the elements.

 

2.     Draw and name four parallel arrays that would hold the following data:

       Store                       sales                  customers                        Region

        A24                        5000                        500                                    A

        A26                        3000                        200                                    A

        C30                        6000                        550                                    C

        B44                        4000                        560                                    B

 

3.     Can all the data in question 2 be put into a two-dimensional array? Explain.

4.     Mr. Jones always gives True/False tests to his class. His tests always have 20 questions. The maximum class size is 35. He needs a program that will calculate the student’s grades based on the best score

A will range from the best score, to the best score minus 2.

B will range from the best score minus 3, to the best score minus 4.

C will range from the best score minus 5, to the best score minus 6.

D will range from the best score minus 7, to the best score minus 8.

F will be below the best score minus 8.  

 

## Each student’s ID and test answers will be entered. The output will be each student’s ID, number correct, and grade, along with the single highest score for the class. Develop a solution for Mr. Jones problem. Use four one-dimensional arrays—one for the correct scores and the other three for the needed output.

 

write your pseudo code first and then write the Python code that implements it.

** below is a suggested way to do this — there are other ways such as setting up  2-D arrays)

Using the format of P1, set up four arrays of student scores

assume 10 questions

and 4 students.( this will illustrate the approach without too many numbers

Write a function to populate a student score array.

Populate these student arrays with zeros ( false) and 1s ( true), as their scores .

 

See problem 6 pg 175

Develop a solution to flip a coin a given amount of times and then print the number of heads and the number of tails. The equation to toss the coin is coin = Integer(Random * 2) +1  ) and use that random function  not including the

integer ‘1’. (instead of ‘coin’ flips this  slightly modified random number generator

Integer(Random * 2)  ( check out the Python equivalent

will simply yield 0, or 1, which is what you want).

Now manipulate those 4 arrays to answer Jones’ questions

 

Our website has a team of professional writers who can help you write any of your homework. They will write your papers from scratch. We also have a team of editors just to make sure all papers are of HIGH QUALITY & PLAGIARISM FREE. To make an Order you only need to click Ask A Question and we will direct you to our Order Page at WriteDemy. Then fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.

Fill in all the assignment paper details that are required in the order form with the standard information being the page count, deadline, academic level and type of paper. It is advisable to have this information at hand so that you can quickly fill in the necessary information needed in the form for the essay writer to be immediately assigned to your writing project. Make payment for the custom essay order to enable us to assign a suitable writer to your order. Payments are made through Paypal on a secured billing page. Finally, sit back and relax.

Do you need an answer to this or any other questions?

About Writedemy

We are a professional paper writing website. If you have searched a question and bumped into our website just know you are in the right place to get help in your coursework. We offer HIGH QUALITY & PLAGIARISM FREE Papers.

How It Works

To make an Order you only need to click on “Order Now” and we will direct you to our Order Page. Fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.

Are there Discounts?

All new clients are eligible for 20% off in their first Order. Our payment method is safe and secure.

Hire a tutor today CLICK HERE to make your first order