Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1 Overview An electric power substation measures voltages hourly for 72 continuous hours before they send off a report to the manager. Write a C

1 Overview

An electric power substation measures voltages hourly for 72 continuous hours before they send off a report to the manager. Write a C program to generate this report that reads in 72 integer voltage readings from standard input in order to determine:

the mean voltage over the time period

the hours at which the recorded voltage varies from the mean by more than 10%

any adjacent hours when the change from one reading to the next was greater than 15% of the mean

the hours when a brownout occurred

You must store the voltage readings in an array. You may assume that all of the values inputted are legal (i.e. 0

2 Sample Run

Sample run data:

120 119 119 120 117 119 120 120 120 120 120 120 120 120 120 120 0 0 120 120 120 120 120 120 120 122 121 122 121 121 120 120 120 120 100 120 120 120 120 120 107 102 104 118 120 120 120 120 120 120 120 120 120 119 120 119 119 121 120 120 120 120 120 120 120 104 106 120 120 119 120 120 

The answer should be in the same format in the picture.

image text in transcribed

Terminal tcsh 67x24 liberty tmp/% cat proj5.dat 120 119 119 120 117 119 120 120 120 120 120 120 120 120 120 120 0 0 120 120 120 120 120 120 120 122 121 122 121 121 120 120 120 120 100 120 120 120 120 120 107 102 104 118 120 120 120 120 120 120 120 120 120 119 120 119 119 121 120 120 120 120 120 120 120 104 106 120 120 119 120 120 liberty tmp/ gcc proj5.c liberty tmp% a. out proj5.dat E GRE 245 Project #5 Spring 2015 Dan Resler Number of voltages 72 Mean voltage: 115.26 (10% of mean 11.53; 15% of mean 17.29) Brownout threshold: 107.04 hours that vary 10% from mean 17, 18,35,42 hours of neighbors that vary 15% of mean (16, 17), (18, 19), 34,35), (35,36) hours brownout occurred: 17, 18,35,41,42,43,66,67 liberty tmp 96

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

Explain drilling down data on dashboards.

Answered: 1 week ago