if answer all i will give you a thumbs up can assume the following includesstdio
ID: 3707124 • Letter: I
Question
if answer all i will give you a thumbs up can assume the following includesstdio.h> printf and scanf includesctype.hs itolower and toupper do not need to write a complete program unless the question asks for a complete program each question carefully Question 5 Write a function definition called GameSurvey that takes one character argument/parameter called gameS and one pointer to a called pricePtr. The function has a void return type. When the variable argument gameS contains the character x or X, print the word XBox and store 299.99 in the value at" pricePtr gameS contains the character p or P print the word Playstation and store a 499.99 When gameS contains anything else, store a 0.0 v12ptParagragh MacBook Ai 4Explanation / Answer
Answer 6
#include <stdio.h>
int main()
{
int arr[45], i, sumTotal = 0;
printf("Enter the 45 int values for the arr ");
for(i=0; i<45; ++i)
{
scanf(" %d", &arr[i]);
sumTotal += arr[i];
}
printf("The total of all the 45 int in the array is %d",sumTotal);
return 0;
}
------------------------------------------------------------------------------------------------
Answer 7
void DisplayLargeNumbers(double numList[],int count, double large)
{
int i;
for ( i = 0; i < 10; i++ )
{
if(numList[i] >= large)
{
printf(" %.2f",numList[i]); //(.2) shows value upto 2 decimal places,
//%f is format specifier for double
}
}
}
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.