Answer:
Written in C++
#include<iostream>
using namespace std;
int main(){
float temperature[12];
for(int i =0; i<12;i++){
cout<<"Temperature "<<1 + i<<": ";
cin>>temperature[i];
}
for(int i =0; i<12;i++){
cout<<"Temperature "<<1 + i<<": "<<temperature[i]<<endl;
}
return 0;
}
Explanation:
This line declares temperature as an array of 12 elements
float temperature[12];
The following loop prompts user for (and gets) input of temperature in the last 12 months
for(int i =0; i<12;i++){
cout<<"Temperature "<<1 + i<<": ";
cin>>temperature[i];
}
The following loop prints the input data
for(int i =0; i<12;i++){
cout<<"Temperature "<<1 + i<<": "<<temperature[i]<<endl;
}
<em>See Attachment for flowchart</em>
Answer:
D. Pie Chart
Explanation:
A pie chart is a circle that has a percentage of certain things. For instance, if you were making a pie chart of what colors your family liked, let's say you have 5 other members in your family. 2 of them like the color blue, 1 likes the color red, 1 likes yellow, and 1 likes green. Your pie chart would be partitioned like a fraction model, and you would put 20% for green, 20% for yellow, 20% for red, and 40% for blue.
Hope this helps! <3
~Sakura Hitoroku
Answer:
We made use of the Regular expression and justification as a constructive method that showed that L is regular.
Explanation:
Solution
<em>Regular Expression:</em>
( c + a )* b d*( a (dd)* + bd*)* a
<em>Justification:</em>
All c's occur before the first b, there can be a's as well
So, we have (c + a)*
(dd)* for even number of d's
Answer:
the output of the above program is
2 3
3 5
8
Explanation:
It seems the program is trying to pair two numbers into one and leaving the unpaired number (in a case of odd number of numbers) as a separate output.
This is why numbers 2 and 3 form 23, numbers 3 and 5 form 35 and 8 is another output of the program.
Answer:
a while loop
Explanation:
A while loop runs if it's expression is true