Declare the global array variables

Assignment Help Basic Computer Science
Reference no: EM132185930

//Add statements to declare the global array variables

Declare Real notGreenCost = [6]

Declare Real goneGreenCost = [6]

Declare Real Savings = [6]

Declare String Month [6] = "January", "February", "March", "April", "May", "June"

Module main()

           //Declare local variables

           Declare String endProgram = "no"

           Call initMonths()  

           While endProgram == "no"

                       //Module calls

                       Call getNotGreen()

                       Call getGoneGreen()

                       Call energySaved()

                       Call displayInfo()

                       Display "Do you want to end the program (enter yes or no):"

                       Input endProgram

                       While endProgram<>"no" AND endProgram<>"yes"

                                   Display "Please enter a value of yes or no: "

                                   Input endProgram

                       End While

           End While

End Module

 

Module initMonths()

           months = "January", "February", "March", "April", "May", "June"

End Module

Module getNotGreen()

           //Add statements to retrieve 6 months of info and save to the array

End Module

Module getGoneGreen()

           //Add statements to retrieve 6 months of info and save to the array

End Module

Module energySaved()

           //Add statements to calculate 6 months of savings and save to the array

End Module

Module displayInfo()

           //Add statements to display results as shown above

End Module

Is it possible for me to get help on this answering the ones with "//" ?

Reference no: EM132185930

Questions Cloud

Define the concept of currency manupulation : Please explain and define the concept of currency manupulation. Please explain at least 2 policy options that you think will be best to prevent/stop.
Procedure to produce bcnf tables : Apply the simple synthesis procedure to produce BCNF tables using the following FD list. Show the results of each step in your analysis.
Determine what you would do differently : Your overall evaluation of their strategies. What suggestions might you make to improve the company's global expansion with new products or services?
What will be the impact of the act on employment : What will be the impact of this act on employment in the coming years? As a student of economics, give 5 steps as a "suggestion plan" to sustain economic growth
Declare the global array variables : //Add statements to declare the global array variables
Do you agree or disagree with the given view : Marx argues that capitalism is ultimately unsustainable. Do you agree or disagree with this view? Give two non-question begging reasons supporting your answer.
Define law of marginal returns or law of increasing costs : Another important law in economics is the "law of marginal returns or the law of increasing costs". Discuss in terms of your study in this course.
Find new labor demand at each of the same wage rates : If the price for guitar lessons goes up to $35/hour, Jim's demand for Labor will change. Find his new Labor demand at each of the same wage rates above.
Describe the role of analytics in healthcare : Describe the role of analytics in healthcare. How does HIT support or hinder this?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd