Question: Debugging using Matlab Program reads in dollar amounts of each transaction and keeps track of total dollar amount of all transactions totalAmount = 0.0; numberTransactions
Debugging using Matlab Program reads in dollar amounts of each transaction and keeps track of total dollar amount of all transactions totalAmount = 0.0; numberTransactions = input ('How many transactions:'); while (k numberTransactions) transcationAmount = input ('Transaction amount (in dollars):') totalAmount = transactionAmount k = k + 1; end disp ('The total transaction amount is:'), didp (totalAmount)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
