Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using c# Given the following variable declarations: const int MONTHS 12; stringt] monthNames-January, February, March, April, May, June double[] monthSales new double[MONTHS]: Assume that the

Using c#
image text in transcribed
image text in transcribed
Given the following variable declarations: const int MONTHS 12; stringt] monthNames-"January", "February", "March", "April", "May", "June" double[] monthSales new double[MONTHS]: Assume that the monthSales array has already been loaded with the sales figures for each "July", "August", September", "october", "November", "December"); of the twelve m onths. Provide a code snippet that will produce a report which is formatted t actly match the following sample. Declare any additional variables required. Note: the numbers at the top are provided as a spacing guide and should not appear on your report. 123456789812345678981234567890 January February March April May June July August September October November December $90,525.25 $108,005.86 $89,480.77 $182,658.66 $77,525.99 $79,255. 54 $86,543.78 $112,658.63 $105,678.89 $98,789.34 $101,589.99 $98,743.66 7. Using the same declarations as in question #6, provide a code snippet that will detelrnine which month had the highest sales and display the month name and sales amount as shown in the following sample. Declare any addition Assume there will be no ties. al variables that are required. C:Users mbesn Deskt... lighest month is August with sales of $112,650.63

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Graph Databases New Opportunities For Connected Data

Authors: Ian Robinson, Jim Webber, Emil Eifrem

2nd Edition

1491930896, 978-1491930892

More Books

Students also viewed these Databases questions

Question

How do Excel Pivot Tables handle data from non OLAP databases?

Answered: 1 week ago