You have been provided with a QTCreator project called Project12 _ Student. Open the project in QTCreator and make the necessary changes to the main.cpp and infostation.cpp / h files. The class InfoStation contains 3 public methods namely : float getTemp ( ) ; - Returns a random temperature between 1 and 100 ( In float format ) float getHour ( ) ; - Returns a random hour between 1 and 24 ( In float format ) string getDay ( ) ; - Returns a random day between 1 and 10 ( In string format ) Using the class InfoStation fill the provided multidimensional array named WData[10][4] with values in the main function. The first 3 columns in WData should contain a temperature a hour and a day generated using the InfoStation class. Column 1 - temperature retrieved using getTemp ( ) from the InfoStation class. Column 2 - hour retrieved using getHour ( ) from the InfoStation class. Column 3 - day retrieved using getDay ( ) from the InfoStation class. Column 4 - no value at this stage will be calculated by calcPower ( ... ) This should be repeated for each of the 10 rows. After populating the multidimensional array with values create and call the function calcPower ( ... ) . The calcPower ( ... ) function will receive the array WData as parameter and calculate the solar power that would have been produced on the day. The solar power value is calculated by multiplying the days temprature with the the ( hour / 2 )

Programming with Microsoft Visual Basic 2017
8th Edition
ISBN:9781337102124
Author:Diane Zak
Publisher:Diane Zak
Chapter10: Classes And Objects
Section: Chapter Questions
Problem 2E: Open the Palace Solution.sln file contained in the VB2017\Chap10\Palace Solution folder. Use Windows...
icon
Related questions
Question

You have been provided with a QTCreator project called Project12 _ Student. Open the project in QTCreator and make the necessary changes to the main.cpp and infostation.cpp / h files.
The class InfoStation contains 3 public methods namely : float getTemp ( ) ; - Returns a random temperature between 1 and 100 ( In float format )
float getHour ( ) ; - Returns a random hour between 1 and 24 ( In float format )
string getDay ( ) ; - Returns a random day between 1 and 10 ( In string format )
Using the class InfoStation fill the provided multidimensional array named WData[10][4] with values in the main function. The first 3 columns in WData should contain a temperature a hour and a day generated using the InfoStation class.
Column 1 - temperature retrieved using getTemp ( ) from the InfoStation class.
Column 2 - hour retrieved using getHour ( ) from the InfoStation class.
Column 3 - day retrieved using getDay ( ) from the InfoStation class.
Column 4 - no value at this stage will be calculated by calcPower ( ... )
This should be repeated for each of the 10 rows.
After populating the multidimensional array with values create and call the function calcPower ( ... ) .
The calcPower ( ... ) function will receive the array WData as parameter and calculate the solar power that would have been produced on the day. The solar power value is calculated by multiplying the days temprature with the the ( hour / 2 )

Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Constants and Variables
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
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,