A shop owner has 2 outlets namely a High Street Branch and Mall Branch, before Covid19 lockdown the respective shops recorded sales as follows: High Street Branch Quarter Sales Q1                    42,000                   48,000                 50,000 Q2                    52,000                   58,000                 60,000 Q3                    46,000                   49,000                 58,000 Q4                    50,000                   51,000                 61,000 Mall Branch Quarter Sales Q1                    57,000                 63,000                  60,000 Q2                    70,000                 67,000                  72,000 Q3                    67,000                 65,000                  62,000 Q4                    72,000                 69,000                  75,000 As a programmer hired by the shops’ owner, write a java program to calculate: (a) the monthly combine sales figures for both shops; (b) the respective shops annual sales figures; (c) the grand annual combine total sales figures. Note: Your program must be implemented with arrays.

A Guide to SQL
9th Edition
ISBN:9781111527273
Author:Philip J. Pratt
Publisher:Philip J. Pratt
Chapter4: Single-table Queries
Section: Chapter Questions
Problem 23TD
icon
Related questions
Question

A shop owner has 2 outlets namely a High Street Branch and Mall Branch, before Covid19 lockdown the respective shops recorded sales as follows:


High Street Branch


Quarter Sales
Q1                    42,000                   48,000                 50,000
Q2                    52,000                   58,000                 60,000
Q3                    46,000                   49,000                 58,000
Q4                    50,000                   51,000                 61,000


Mall Branch

Quarter Sales
Q1                    57,000                 63,000                  60,000
Q2                    70,000                 67,000                  72,000
Q3                    67,000                 65,000                  62,000
Q4                    72,000                 69,000                  75,000


As a programmer hired by the shops’ owner, write a java program to calculate:


(a) the monthly combine sales figures for both shops;


(b) the respective shops annual sales figures;


(c) the grand annual combine total sales figures.


Note: Your program must be implemented with arrays.

Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Payback period
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
A Guide to SQL
A Guide to SQL
Computer Science
ISBN:
9781111527273
Author:
Philip J. Pratt
Publisher:
Course Technology Ptr
Operations Research : Applications and Algorithms
Operations Research : Applications and Algorithms
Computer Science
ISBN:
9780534380588
Author:
Wayne L. Winston
Publisher:
Brooks Cole
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781305627482
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781285196145
Author:
Steven, Steven Morris, Carlos Coronel, Carlos, Coronel, Carlos; Morris, Carlos Coronel and Steven Morris, Carlos Coronel; Steven Morris, Steven Morris; Carlos Coronel
Publisher:
Cengage Learning
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning