Answer:
// program in C++.
#include <bits/stdc++.h>
using namespace std;
// main function
int main()
{
// string array
string m[3];
// array to store rainfall
double rainfall[3];
// variables
double avg_rainfall,sum=0;
for(int i=0;i<3;i++)
{
cout<<"Enter name of month "<<i+1<<" :";
// read month name
cin>>m[i];
cout<<"Enter rainfall (inches) in month "<<i+1<<" :";
// read rainfall
cin>>rainfall[i];
// sum of rainfall
sum+=rainfall[i];
}
// Average rainfall
avg_rainfall=sum/3;
// print Average rainfall
cout<<"Average rainfall for "<<m[0]<<","<<m[1]<<","<<m[2]<<" is "<<avg_rainfall<<" inches."<<endl;
return 0;
}
Explanation:
Create string array "m" to store name of month and double array "rainfall" to store rainfall. Read name of 3 months and rainfall in that month.Find the sum of all the rainfall and the average rainfall.Print the average rainfall of 3 months.
Output:
Enter rainfall (inches) in month 2 :45
Enter name of month 3 :july
Enter rainfall (inches) in month 3 :43
Average rainfall for may,june,july is 42.6667 inches.
Only one ... the third bit of the byte, numerical 32. Every lower-case letter
has a '1' in that place. If that bit is changed to '0', then the code represents
the upper-case form of the same letter.
Answer:
False
Explanation:
From a structural perspective, the definition of an Information System entails a collection of individuals, data, processes, technology, models, and in some cases formalized language, coming together to form a structure that is cohesive in nature and serves some function or purpose in an organization. If the definition of an IS is the medium for recording and storing data, and disseminating information, this would be an IS from a functional perspective and not structural.
Answer:
You forgot to add a group of choices, however assuming this programming language uses 0-based indexes the answer would be x - 1
Explanation:
Zero based index languages have array indexes starting at 0. When you create that array, you use x to define the amount of elements, however due to the array starting at the index 0, the arrays highest index would be x - 1 instead of x.