+ 2
Can someone give me the code please?
Create a Temperature application that declares and initializes a temperatures array with 12 temperatures that represent the monthly high temperature. Display the name of each month and the corresponding high monthly temperature on a separate line.
8 Answers
+ 4
Why don't you try writing it by yourself? :)
+ 3
if you want the code given to you, you can Google that easily. However, i highly recommend working on it yourself so you learn how to do this, you'll need to do arrays in an organized list at some point again if you continue programming, so you will appreciate the experience then
+ 3
then you should know you need loop
+ 2
I'll try to give you some idea...
what data type should use to store value for temperature?
You are printing the month and the corresponding temperature, are you repeating stuff?
+ 1
Yes 12 times
0
I tried but I don't understand it. I'm new to this. I read the book but still can't understand it.
- 1
this should get you started - write it, compile it, and run it :D
- 2
#include <iostream>
using namespace std;
int main(){
int x=1;
while(x==x){
cout<<"here's the code";
}
}