Jasimine J.

asked • 09/02/20

Python code using an array at GCSE level


Hello, I'm having trouble converting this algorithm into a python code using an array.

The algorithm is that: the code asks the user for input (of a integer) for the value of a,b,c,d,m and n. It then uses the input value to calculate 'h' using the formula: h=(a+b)*m+(c+d)*n. It then outputs the value of h.

Thanks

Patrick B.

I do not see the purpose of using the array
Report

09/05/20

1 Expert Answer

By:

Patrick B. answered • 09/05/20

Tutor
4.7 (31)

Math and computer tutor/teacher

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.