Assign1-support.h----------------------------------#ifndef CMPSC311_A1SUPPORT_INCLUDED#define CMPSC311_A1SUPPORT_INCLUDED...

Assign1-support.h----------------------------------#ifndef CMPSC311_A1SUPPORT_INCLUDED#define CMPSC311_A1SUPPORT_INCLUDED
//////////////////////////////////////////////////////////////////////////////////// File : cmpsc311-sum19-assign1-support.h// Description : This is a set of general-purpose utility functions we use// for the 311 homework assignment #1.//// Author : ????// Created : ????
//// Functional Prototypes
int float_display_array(????);// This function prints out the array of floating point values
int integer_display_array(????);// This function prints out the array of integer values
int float_odds(????);// Return the number of odd numbers in the array (float version)
int integer_odds(????);// Return the number of odd numbers in the array (int version)
int moving_rms(????);// Compute the rms for the first n numbers
int graph_functions(????);// Print out the functions sin(x)*mult1 and cos(x)*mult2// Honors: print '+' for region between functions
#endif // CMPSC311_A1SUPPORT_INCLUDED
assign1.c------------------------------------------------------------------------//////////////////////////////////////////////////////////////////////////////////// File : cmpsc311-sum19-assign1.c// Description : This is the main source code for for the first assignment// of CMPSC311 at Penn State University. See the related// assignment page for details.//// Author : ????// Last Modified : ????//
// Include Files#include #include #include

// Project Includes#include

//// Functions
//////////////////////////////////////////////////////////////////////////////////// Function : main// Description : The main function for the CMPSC311 assignment #1//// Inputs : argc - the number of command line parameters// argv - the parameters// Outputs : 0 if successful test, -1 if failure
int main(int argc, char *argv[]) {

// Local variables// NOTE: this is where you will want to add some new variablesfloat f_array[20];int i_array[20], m_array[25];???

// Step #1 - read in the float numbers to processfor (i=0; iscanf("%f", &f_array[i]);}

// Step #2 - convert the input values???

// Step #3 - convert the floating point values to integers???

// Step #4 - print out the integer and floating point arrays???

// Step #5 - figure out number of odds in each array???

// Step #6 - fill up the new array, compute moving root mean square// NOTE ** THIS IS PROVIDED CODE, JUST CREATE FUNCTIONS IN ASSIGNMENTmake_array(m_array, 25, 3, 17);moving_rms(m_array, 25);make_array(m_array, 25, 3, 19);moving_rms(m_array, 25);

// Step #8 graph out functionsprintf("\n\n");graph_functions(1.0, 1.0);printf("\n\n");graph_functions(1.3, 2.3);printf("\n\n");graph_functions(0.6, 4.3);

// Return successfullyreturn(0);}
May 31, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here