Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please answer it ASAP! Use C Language! Programming Project #5 EGRE245Fall 2018 Evaluating Voltages I Overview Au electric power substtio measures vollages hourly for 72

Please answer it ASAP!

Use C Language!

image text in transcribed

Programming Project #5 EGRE245Fall 2018 Evaluating Voltages I Overview Au electric power substtio measures vollages hourly for 72 continous hours before they send off a report to the manage Write a C program to generate this report that reads in 72 intoger voltage rcadings from standard input in order to detcrmi: 1. the mean voltage over the time period 2, the hours at which the recorded voltage varies from, the mean by more than 10% 3. any adjacent hours when the change from one reading to the next was greater than 15% of the mean 4. the hours when a brownout occurred You must store the voltage readings in an array. You may assume that of the values inputted are egae, 0 125) and that the first value inputted is considered hour #1. Assume that this substation's goal is to provide a steady voltage of 120v and that a brownout is defined as a time where the voltage drops below 10.8% of this value. Your program should output al of the information shown in the sample run below using exactly the same labels and spacings. If there are no hours that meet one of the criteria you should print the string "[none] (witout the quotes). 2 Sample Run ample Kun 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 liberty:-/tmpCat proj5.dat 120 119 119 120 117 119 120 120 120 120 120 128 120 129 129 123 120 129 120 120 123 123 120 122 121 122 121 121 120 120 120 120 108 120 120 120 120 120 107 102 104 118 120 120 128 128 120 120 120 120 128 119 120 119 119 121 128 12 120 129 120 120 128 104 106 120 120 119 120 120 liberty:-/tmp/gcc projs.c liberty:-/trg)/%a.out -15%of mean: hours brownout occurred: liberty:-/tmp 17,18,35,42 (16,17),(18,19),(34,35),(35,36) 17,18,35,41.42,43,06,67 Programming Project #5 EGRE245Fall 2018 Evaluating Voltages I Overview Au electric power substtio measures vollages hourly for 72 continous hours before they send off a report to the manage Write a C program to generate this report that reads in 72 intoger voltage rcadings from standard input in order to detcrmi: 1. the mean voltage over the time period 2, the hours at which the recorded voltage varies from, the mean by more than 10% 3. any adjacent hours when the change from one reading to the next was greater than 15% of the mean 4. the hours when a brownout occurred You must store the voltage readings in an array. You may assume that of the values inputted are egae, 0 125) and that the first value inputted is considered hour #1. Assume that this substation's goal is to provide a steady voltage of 120v and that a brownout is defined as a time where the voltage drops below 10.8% of this value. Your program should output al of the information shown in the sample run below using exactly the same labels and spacings. If there are no hours that meet one of the criteria you should print the string "[none] (witout the quotes). 2 Sample Run ample Kun 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 liberty:-/tmpCat proj5.dat 120 119 119 120 117 119 120 120 120 120 120 128 120 129 129 123 120 129 120 120 123 123 120 122 121 122 121 121 120 120 120 120 108 120 120 120 120 120 107 102 104 118 120 120 128 128 120 120 120 120 128 119 120 119 119 121 128 12 120 129 120 120 128 104 106 120 120 119 120 120 liberty:-/tmp/gcc projs.c liberty:-/trg)/%a.out -15%of mean: hours brownout occurred: liberty:-/tmp 17,18,35,42 (16,17),(18,19),(34,35),(35,36) 17,18,35,41.42,43,06,67

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_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

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

Get Started

Recommended Textbook for

SQL Server T-SQL Recipes

Authors: David Dye, Jason Brimhall

4th Edition

1484200616, 9781484200612

More Books

Students also viewed these Databases questions