Question: Write a script that uses variables to get ( 1 ) the count of all the invoices in the Invoices table that have a balance

Write a script that uses variables to get (1) the count of all the invoices in the Invoices table that have a balance due and (2) the sum of the balances due for all those invoices. If that total balance due is greater than or equal to 50,000, the script should display a message like this: Number of unpaid invoices is 40. Total balance due is $66,796.24. Otherwise, the script should display this message: Total balance due is less than $50,000.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!