2023 C Programming Assignment 8 Files Due April 1 2015 For the program assigned below submit the | Assignment Collections

Computer Science 2023 C Programming Assignment

2023 C Programming Assignment 8 Files Due April 1 2015 For the program assigned below submit the | Assignment Collections

C Programming Assignment 8 (Files)

Due April 1, 2015

 

For the program assigned below, submit the following:

  • Hard copy of the source code.
  • Hard copy of output file with your name included.
  • Copy of the source code (.c files) and output file saved as an electronic attachment to C Assignment 8 located in Oncourse under Assignments.

Notes:

  • Observe the usual guidelines regarding the initial comment section, indenting, and so on. There must be a problem statement at the beginning of the program or a deduction will be made.
  • In if-else statements, indent statements to be executed for if or else conditionsthree to five spaces. Align else or else if with corresponding if.
  • Indent statements within loops.

 

1. In a Matlab text by Gilat a problem presents the relationship between temperatures in New York City and Anchorage, Alaska during the month of January, 2001. According to the U.S. National Oceanic Atmospheric Administration, the January Fahrenheit high temperatures for New York City and Anchorage Alaska were:

Date

New York City Temperature

(degrees Fahrenheit)

Anchorage Temperature

(degrees Fahrenheit)

1

31

37

2

26

24

3

30

38

4

33

25

5

33

21

6

29

28

7

41

46

8

41

37

9

34

36

10

33

20

11

45

24

12

42

31

13

36

34

14

39

40

15

37

43

16

45

36

17

43

34

18

36

41

19

41

42

20

37

35

21

32

38

22

32

36

23

35

35

24

42

33

25

38

42

26

33

42

27

40

37

28

37

26

29

36

20

30

51

25

31

50

31

 

 

Create a new project in Visual Studio. Then create a data file in Notepad with two columns, with New York City temperatures in the column on the left and corresponding Anchorage temperatures in the column on the right. Do not include column labels or dates. Save the file in the project folder. In the program check to make sure the file opened successfully. Then write a program to read in the 31 sets of temperature data using a for or while loop. If using a for loop, add the number of lines at the top of the data file and read in the number of lines from the file. If using a while loop, use a sentinel (-999 at the end of the data) or end of file method, eg,

while( (fscanf(fpIn,“%d%d”, &NYC, &ANC)) ==2) since there are two conversions per line.

 

As values are read in the loop calculate the necessary sums and values for the following (Do not determine any of the values merely by inspection):

 

  • The average temperature for the month in New York City and the average temperature for the month in Anchorage.
  • The number of days the temperature in Anchorage was greater than the temperature in New York City.
  • The high temperature and low temperature in January for New York City.
  • The number of days the temperature in Anchorage was equal to or below 32 degrees.

 

Write the averages, counts, and the maximum and minimum temperatures to an output file. Close the files at the end of the program. Submit a sample execution from Notepad with your .c file hard copy.

 

We give our students 100% satisfaction with their assignments, which is one of the most important reasons students prefer us to other helpers. Our professional group and planners have more than ten years of rich experience. The only reason is that we have successfully helped more than 100000 students with their assignments on our inception days. Our expert group has more than 2200 professionals in different topics, and that is not all; we get more than 300 jobs every day more than 90% of the assignment get the conversion for payment.

Place Order Now

#write essay #research paper #blog writing #article writing #academic writer #reflective paper #essay pro #types of essays #write my essay #reflective essay #paper writer #essay writing service #essay writer free #essay helper #write my paper #assignment writer #write my essay for me #write an essay for me #uk essay #thesis writer #dissertation writing services #writing a research paper #academic essay #dissertation help #easy essay #do my essay #paper writing service #buy essay #essay writing help #essay service #dissertation writing #online essay writer #write my paper for me #types of essay writing #essay writing website #write my essay for free #reflective report #type my essay #thesis writing services #write paper for me #research paper writing service #essay paper #professional essay writers #write my essay online #essay help online #write my research paper #dissertation writing help #websites that write papers for you for free #write my essay for me cheap #pay someone to write my paper #pay someone to write my research paper #Essaywriting #Academicwriting #Assignmenthelp #Nursingassignment #Nursinghomework #Psychologyassignment #Physicsassignment #Philosophyassignment #Religionassignment #History #Writing #writingtips #Students #universityassignment #onlinewriting #savvyessaywriters #onlineprowriters #assignmentcollection #excelsiorwriters #writinghub #study #exclusivewritings #myassignmentgeek #expertwriters #art #transcription #grammer #college #highschool #StudentsHelpingStudents #studentshirt #StudentShoe #StudentShoes #studentshoponline #studentshopping #studentshouse #StudentShoutout #studentshowcase2017 #StudentsHub #studentsieuczy #StudentsIn #studentsinberlin #studentsinbusiness #StudentsInDubai #studentsininternational