Find Jobs
Hire Freelancers

C++ Homework help needed!

€8-30 EUR

Preklicano
Objavljeno pred več kot 6 leti

€8-30 EUR

Plačilo ob dostavi
Task: Temperature data are used in many areas, e.g. in the energy sector, agriculture or traffic. The weather service collects and stores temperature data and offers these data to the public for further processing. Task here will be to read mean daily temperature data of one year given in a special text formatted file and convert and write them into another (HTML table) formatted file. [login to view URL] a function reading a .csv formatted file with mean daily temperature data - the file name shall be a parameter - and storing read temperature data into an - also given as parameter - two-dimensional array for the 12 month and maximum 31 days each month. The to be read ASCII text file consists of two columns separated by a semicolon; in the first column the date is given in german notation [login to view URL], in the second column the temperature as a floating point number (example files: [login to view URL], [login to view URL], [login to view URL]). [login to view URL] a function writing a text file in .html-Format - the file name shall be a parameter - with the daily mean temperatures of a year as an HTML table. A two-dimensional array for the mean daily temperature values of the 12 month and maximum 31 days each month as well as the year also shall be parameters. Write/Copy first exactly - except the red marked year - following lines (for a HTML document with HTML head, start of HTML body as well as the HTML table) into the output file: <!DOCTYPE html> <html> <head> <title>Mean Temperatures 2017</title> <style> table { width: 100%; } th, td { border: 1px solid black; text-align: center; } tr:nth-child(even) { background-color: #f2f2f2; } </style> </head> <body> <h1>Mean Temperatures 2017 (Unit Degree Celsius)</h1> <table> <tr><th> </th><th>JAN</th><th>FEB</th><th>MAR</th><th>APR</th><th>MAY</th><th>JUN</th><th>JUL</th><th>AUG</th><th>SEPT</th><th>OCT</th><th>NOV</th><th>DEC</th></tr> [login to view URL] afterwards using (nested) loops row by row the temperature values of 1st, 2nd, 3rd, ... of January, February, March... Always an HTML table row has to start with <tr> (short for table row) and end with </tr>. The single temperature data always appear as values in between <td> (short for table data) and </td>, e.g.<td>-0.2</td> for January, 1st, or <td>4.2</td> for February, 1st, in the example. A missing temperature value like e.g. February, 30th, or April, 31st, is written as an empty table date element <td> </td>. End your output file with following lines: </table> <p>Minimum Temperature: -3.4 (6.1.)</p> <p>Maximum Temperature: 26.2 (22.6.)</p> <p>Average Temperature: 12.8</p> </body> whereas the red marked values for the coldest and hottest day of the year shall be calculated and inserted here as well as the to be computed average temperature of the whole year. [login to view URL] a C++ main function and -define and appropriately initialise a two-dimensional array for the 12 month and maximum 31 days each month, -ask for a file name for [login to view URL] temperature file, -call the function reading the temperature file, -for the output file define a new same named file but with ending .html and with it -call the function to write the HTML file. Hints: -use the overloaded operator >> reading the data out of the file and regard to read/to skip the dots and the semicolon in the .csv file as characters each. -the day and month read can be used as index for the column/row in the array of temperatures. -return the year read as a reference parameter. -leap years don't need to be calculated/regarded separately, since only in leap years the temperature data will contain a February, 29th. -count the number of relevant days with temperatures to be regarded for correctly calculating the arithmetic mean of the average temperature, not always wrongly divide fix by 365 (or 366). -to initialise all values in the array with value 0.0 is unhandy, since 0.0 might be a mean day temperature.
ID projekta: 15704547

Več o projektu

3 ponudb
Projekt na daljavo
Aktivno pred 6 leti

Želite zaslužiti?

Prednosti oddajanja ponudb na Freelancerju

Nastavite svoj proračun in časovni okvir
Prejmite plačilo za svoje delo
Povzetek predloga
Registracija in oddajanje ponudb sta brezplačna
3 freelancerjev je oddalo ponudbo s povprečno vrednostjo €36 EUR za to delo
Avatar uporabnika
This job will take approximately 10 hours. Relevant Skills and Experience Excell, Visual C++, Data Mining Stay tuned, I'm still working on this proposal.
€34 EUR v 2 dneh
0,0 (0 ocen)
0,0
0,0

O stranki

Zastava GERMANY
Duisburg, Germany
5,0
2
Plačilna metoda je verificirana
Član(ica) od nov. 22, 2017

Verifikacija stranke

Hvala! Po e-pošti smo vam poslali povezavo za prevzem brezplačnega dobropisa.
Pri pošiljanju vašega e-sporočila je šlo nekaj narobe. Poskusite znova.
Registrirani uporabniki Skupaj objavljenih del
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Nalaganje predogleda
Geolociranje je bilo dovoljeno.
Vaša prijavna seja je potekla, zato ste bili odjavljeni. Prosimo, da se znova prijavite.