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

  Write a function called dicegame that takes in a vector

Write a function called diceGame that takes in a vector representing the dice values and returns the amount of money won.

  What market structure does amazon operate in

What market structure does Amazon operate in? Why? Analyze the characteristics of this market.

  Programming company of negligence

A automobile dealer hired a computer programming company to write customized software to operate the business. The vendor promised to install the strongest

  Manage your personal checking account

Consider the process of using an online banking system to manage your personal checking account.

  Demonstrate your understanding and knowledge gained

Demonstrate your understanding and knowledge gained about session's material. Complete with a short discussion for each question. The second question will take several paragraphs to answer thoroughly.

  Create a function template named average

Design a class of your choice where averaging objects makes sense. Include any necessary member functions so the class can be demonstrated using the average()template functions, and write a main()function that provides the demonstration. Save the ..

  Picture of the binomial graph

Calculate the probability that of receiving a passing grade on the quiz, by randomly guessing the answers? (HINT: the probability of success on a single trial

  What basic steps are required for analyzing data using micro

Write a 200 word response that answers the following questions: What basic steps are required for analyzing data using Microsoft®Access®? How could these steps help you diagnose and troubleshoot Microsoft®Access®errors? Which of the five steps presen..

  Determine the minimum annual dollar sales

Using the information given above, determine the minimum annual dollar sales needed to make a 10 percent profit in this market.

  Computerized accounting system

Identify some of the greatest threats to a computerized accounting system, and suggest two (2) preventive measures or remedies that protect.

  Create a set of instructions

Provide a private address to be used for the AS and a public address to be used to connect to an ISP router connected to a border router.Create a set of instructions for the lab that would have students create a basic configuration and test connecti..

  Advantages to a diverse workplace

There are many advantages to a diverse workplace. Can you name some of them? Would you consider your place of work reflective of the diversity in our country?

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