How JustAnswer Works:

  • Ask an Expert
    Experts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
  • Get a Professional Answer
    Via email, text message, or notification as you wait on our site.
    Ask follow up questions if you need to.
  • 100% Satisfaction Guarantee
    Rate the answer you receive.

Ask ATLPROG Your Own Question

ATLPROG
ATLPROG, Computer Software Engineer
Category: Programming
Satisfied Customers: 7677
Experience:  MS in IT.Several years of programming experience in Java C++ C C# Python VB Javascript HTML
44910485
Type Your Programming Question Here...
ATLPROG is online now
A new question is answered every 9 seconds

Write a full program that uses a function named "subtotal"

Customer Question

Write a full program that uses a function named "subtotal" that takes as its arguments the following: (1) An array of floating point values; (2) An integer that tells the number of items in the array. The function should replace the contents of each cell with the sum of the contents of all the cells in the original array from the left end to the current cell in question. Thus, for example, if the array passed to the function looks like this: 0 1 2 3 4 5.5 | 2.0 | 9.5 | 3.2 | 7.0 then when the function returns, the array will have been changed so that it looks like this: 0 1 2 3 4 5.5 | 7.5 | 17.0 | 20.2 | 27.2 Because 5.8 + 2.6 = 8.4 and 5.8 + 2.6 + 9.1 = 17.5 and so on. Note that the content of cell 0 is not changed. The function should not return a value
Submitted: 2 months ago.
Category: Programming
Expert:  LogicPro replied 2 months ago.

Hi,

Is it C or Java?

What is the deadline?

Expert:  LogicPro replied 2 months ago.

There?