University | Nanyang Technological University (NTU) |
Subject | ICT283: C++ Programming |
Objectives:
- Design and write good structured and object-oriented C++ programs;
- Design and write well documented C++ programs that use programmer designed data structures;
- Design and execute test plans (unit tests and application tests);
- Draw Unified Modeling Language class diagrams that can be implemented;
- Discuss (and apply) the theory and application of data structures and the algorithms that use them and are used by them;
- Design and implement solutions that adhere to given specifications and requirements.
Assignment Question:
Question 1. Design an object-oriented solution and implement the solution in C++ to solve the problem described below.
The data files that you need for this assignment are made available to you in the data folder. This data comes from historical data recorded by sensors and was obtained from http://wwwmet.murdoch.edu.au/. Data is logged at intervals of 10 minutes. Sample data in comma-separated value text files are made available for this assignment.
Hire a Professional Essay & Assignment Writer for completing your Academic Assessments
Native Singapore Writers Team
- 100% Plagiarism-Free Essay
- Highest Satisfaction Rate
- Free Revision
- On-Time Delivery
Each file contains a year’s worth of data for multiple sensors. Data for each date-time recording are on separate rows. Within each row, a comma separates the value for each sensor. The sensor codes are found at http://wwwmet.murdoch.edu.au/sensors. Examine the data using a text editor like notepad++ and in a spreadsheet application. If you download your own data, you may want to
remove the first few rows if the key list (sensor list) is there. The data that is supplied to you with this assignment does not contain the key list, and there is no need to download your data unless you specifically want to.
Question 2. Design and then write an Object-Oriented program in C++ that meets the specifications shown below. You should provide a suitable menu with an exit option in your main program. When designing the output, imagine yourself as the user of the program. You want the user interaction to be concise but user friendly on the command line. Do not use GUI interaction.
Sample output formats are shown below using made-up data for the year 1905. Menu options are:
1. The average wind speed and average ambient air temperature for a specified month and year. (print on screen only)
Example output format if there is data:
January 1905: 5.5 km/h, 25.5 degrees C
Example output format if there is no data:
March 1905: No Data
2. Average wind speed and average ambient air temperature for each month of a specified year. (print on screen only)
The example output format is:
1905
January: 5.5 km/h, 25.5 degrees C
February: 4.5 km/h, 27.5 degrees C March: No Data
…
3. Total solar radiation in kWh/m2 for each month of a specified year. (print on screen only)
Example output format is:
1905
January: 196.4 kWh/m2
February: 200.3 kWh/m2 March: No Data
…
4. Average wind speed (km/h), average ambient air temperature, and total solar radiation in kWh/m2 for each month of a specified year. (write to a file called “CSV”)
Output Format:
Year
Month, Average Wind Speed, Average Ambient Temperature, Solar Radiation
The example output format is:
1905
January,5.5,25.5,196.4
February,4.5,27.5,200.3
…
The year is printed on the first line and the subsequent lines list the month and the average wind speed, average ambient air temperature, and the total solar radiation for each month. The values are comma-separated.
For menu item 4: If data is not available for any month, do not output the month. In the example, March 1905 has no data. Nothing is output for March. If the entire year’s data is not available, output just the year on the first line and the message “No Data” on the second line.
5. Exit the Program.
The user specifies the year and/or month. Your program asks for these on the command line and the user types in the required values and presses the “Enter” key. The date and month entries on the command line must be numeric. For example, the user types in the value 1 and not the string January or Jan to represent the first month of the year.
Although there a number of data columns in the data file, you will only use columns with labels WAST (date and time), S (Wind Speed), SR (Solar Radiation), and T (Ambient air temperature).
Convert units carefully as the output units are not all the same as the units in the data files. For example, input column S is in m/s but the output needed is km/h. The units for solar radiation in the input data file and the output are also not the same.
If you have any problem in making (ICT283) C++ programming assignments then contact with Singapore Assignment Help. It is very easy to connect with us and even easier to find the perfect solution to your data programming assignment troubles. Our professional assignment writers provide computer science assignment help in a justified timeline to NTU students.
Looking for Plagiarism free Answers for your college/ university Assignments.
- PS300 Research Project Assignment: Emotional Intelligence Components Predict Happiness
- Electronics Engineering Circuit Assignment Questions: Theory & AC Analysis
- EAS425 Tutor-Marked Assignment Report: Arrow Airways Case in Flight Line Management
- Community Health Nurses in Singapore Assignment: Balancing Prevention and Treatment in Diabetes Management
- ACC08702 Flexible Budgeting Analysis with Variance Calculation: Selling Overheads & Consultancy Services Case Study
- GCE A-Level 8882 Project Work: How to Write a Winning Project Summary
- IT3662 SAFENET Network Security and Integration Assignment: Case Study on HQ and Branch Office Setup
- Vodafone Group Plc Annual Report Assignment: Financial Performance and Shareholder Insights (2024)
- Financial Literacy Lifespan Assignment: A Case Study on Gen Z & Millennials’ Financial Stability and Lifelong Learning
- PSB7008CL Organisational Behaviour Assignment: Case Study on Leadership, Diversity, and Change Initiatives