## Submitted Questions

• #### Arrays

Design a flow chart for program that displays the number of days in each month. the program should have two parllel arrays 12 element string array that is initialized with the names of the month, and 12 element integer array that is initialized the number of days in each month.

#### Cassandra Blackburn

• Sep 9th, 2013

Jan Month have 31 Days Feb Month have 28 days March Month have 31 Days April Month have 30 Days
May Month have 31 days June Month have 30 Days July Month have 31 days Aug Month have 31 Days
Sept Month have 30 Days Oct Month have 31 Days Nov Month have 30 days Dec Month have 31 Days

#### Ponni Vaithiyanathan

• Aug 20th, 2013

Jan Month have 31 Days feb Month have 28 Days March Month have 31 Days April Month have 30 Days May Month have 31 Days June Month have 30 Days july Month have 31 Days Aug Month have 30 Days sep Month ...

• #### flow

Number analysis program design a program that asks the user to enter a series of 20 numbers. The program should store the numbers in an array and then display the following data: the lowest number in the arraythe highest number in the array the total of the numbers in the arraythe...

#### Lohitha

• Jul 30th, 2016

```Code#include<stdio.h>
int main()
{
int a,i,min,max,count=0;
printf("enter elements into array:");
for(i=0;i<20;i++)
scanf("%d",&a[i]);
min=a;
for(i=0;i<20;i++)
{
if(a[i]<min)
min=a[i];
}
max=a;
for(i=0;i<20;i++)
{
if(a[i]>max)
max=a[i];
count++;
}
printf("minimum value is:%d
",min);
printf("maximum value is:%d
",max);
printf("Number of elements in an aray:%d
",count);
return 0;

}```

• #### Analysis Number Design Flow chart

Number analysis program design a program that asks the user to enter a series of 20 numbers. The program should store the numbers in an array and then display the following data: the lowest number in the array,the highest number in the array and the total of the numbers in the array...

#### Michael Brown

• Apr 1st, 2014

"c numlist = [-7,1,2,45289, 7,5,9,7,4,-10,34,234345678,32,12,1566,0,8,5,4,2] sum = 0 current = numlist high = numlist low = numlist current = numlist for i in rang...

• #### Logic and Design

Number Analysis Program Design a program that asks the user to enter a series of 20 numbers. The program should store the numbers in an array and then display the following data: • The lowest number in the array • The highest number in the array • The total of the numbers in the array • The average of the numbers in the array

#### Teja

• Oct 8th, 2017

int arr[] = {4,2,6,1,7,12,10,11}; int min= arr; int max= arr; int total = 0; int avg; for(int i=0; i arr[i]) { min = arr[i]; } else if(max < arr[i]) { max = arr[i];...

#### Shubhangi

• Oct 5th, 2017

I inserted a code but how to get exact decimal point answer for avg,I didnt get .

```Code#include<stdio.h>
main()
{
int arr;
int i,size;
size=sizeof(arr)/sizeof(arr);
printf("enter the array elemrnt......
");

for(i=0;i<size;i++)
//scanf("%d",&arr[i]);
arr[i]=rand()%100;

for(i=0;i<size;i++)
printf("%d      ",arr[i]);
printf("
");

//lowest number....
int temp=arr;
for(i=1;i<size;i++)
{
if(temp>arr[i])
temp=arr[i];
else
continue;
}
printf("lowest element=%d
",temp);
//highewst numer
temp=arr;
for(i=1;i<size;i++)
{
if(temp<arr[i])
temp=arr[i];
else
continue;
}
printf("highest element=%d
",temp);

//toatal of numbers
int sum =0;
for(i=0;i<size;i++)
{
sum=sum+arr[i];
}
printf("total of an array:%d
",sum);
//average
int avg;
avg=sum/size;
printf("average=%d
",avg);

}
```

• #### Functions

1.One foot equals 12 inches. Design a function named feetTolnches that accepts a number of feet as an argument, and returns the number of inches in that many feet. Use the function in a program that prompts the user to enter a number of feet and then displays the number of inches in that many feet. 2.Rainfall Statistics Design a program that lets the user enter the total rainfall for each of 12 months...

#### Sunil shenoy

• May 16th, 2016

```Code#include<iostream>
using namespace std;
float ft_to_inch(float ft)
{
return ft*12;
}
main()
{
float f,i;
cout<<"Enter a Feet value:"<<endl;
cin>>f;
i=ft_to_inch(f);
cout<<"result in Inches: "<<i<<endl;
}```

#### George

• Jul 29th, 2014

In Haskell (please excuse syntax highlighting; they dont have it for this language):"css -- feetToInches.hs module Main where feetToInches :: Num a => a -> a feetToInches = (*12) ...