Recent Question/Assignment

SIT102 Introduction to Programming
Pass Task 4.1: Messy Code
This task will help demonstrate the value of correct code formatting, indentation, naming, and consistent use of case. We will give you some code that mostly works, but that has a number of issues with its format and coding conventions used, and it is your job to fix this code so that it is easy to read and understand.
Submission Details
Submit the following files to Doubtfire.
The fixed program code
A screen shot of your program running
Focus on code quality, making sure the program code is easy to understand.
Instructions
Download the associated resources which contain the code for a working program.
Open the code, and read it...
Is it easy to follow?
Can you see the structure quickly?
What do all of the names mean?
Please make this better... use what you know of good code quality to make this code easier to read and easier to understand. Think about indentation, naming, and use of case. This will include:
Ensure that all names are meaningful, and reflect what they relate to
Make sure names use the correct case (snake_case in most cases, UPPER_CASE for constants)
Make sure that the indentation is correct
Locate and fix the logical bugs... there are comments in the code to indicate what is not working as expected.
When you are happy, save and backup your work then submit to Doubtfire.
===========================
SIT102 Introduction to Programming
Pass Task 6.1: Working with Arrays
Overview
In this task you will create a simple program which will create an array with a user specified size. This array will then be populated with values, printed out to the console, and then, we'll use the values to calculate some basic statistics.
Submission Details
Use the instructions on the following pages to create a small program to explore the use of arrays.
Submit the following files to Doubtfire.
Your program code
A screen shot of your program running
The focus of this task is on the declaration and use of arrays.
Instructions
Lets get started.
1. Watch the Working with Arrays video as a background for this task, you will need to implement the same logic but will read in double values rather than integers.
2. Create your own Working With Arrays project, and copy in the code of your user input functions, or your custom terminal user input code file and header.
3. Add the following functions and procedures based on the Working with Arrays video:
5. Extend the program with the following additions:
Add a function that calculates and returns the count of the number of negative values (those 0) in the array.
For this you will need a local result variable that starts at 0, and you add one to the result for each element of the array that is 0 .
Print out the count of the number of negative values at the end of the program.
For this you will need a local result variable that starts with the value of the first element of the array. You can then loop over the remaining array elements (from index 1 to the last).
===========================
SIT102 Introduction to Programming
Pass Task 6.2: Working with Vectors
Overview
In this task you will change your working with arrays program to use a dynamic array (vector in C++) to keep track of a number of values for the user.
Submission Details
Use the instructions on the following pages to create a small program to explore the use of arrays.
Submit the following files to Doubtfire.
Your program code
A screen shot of your program running
The focus of this task is on the declaration and use of dynamic arrays (using the vector class in C++).
Instructions
Lets get started.
1. Watch the Working with Vectors video as a background for this task, you will need to implement the same logic but will read in double values rather than integers.
2. Return to your own Working With Arrays project, and make the same changes as shown in the video:
==================================
SIT102 Introduction to Programming
Pass Task 7.1: Arrays and Structs
Overview
In this task you will create a small program that will read in data related to cars and passengers. This will allow us to model more complex data, where the car has a driver and a number of passengers who are all people (modelled as the person struct in the program). This task will help you learn how to work with more complex structures using combinations of dynamic arrays and structs.
What you learn in completing this task will be needed to complete the following task where you will need to design and implement a similar solution using the same programming tools and methods.
Submission Details
Use the instructions on the following pages to create a small program that explores a more complex use of arrays and structures.
Submit the following files to Doubtfire.
Your program code
A screen shot of your program running
The focus of this task is on the tools and approaches to working with more complex data using structs and dynamic arrays, with matching functions and procedures to help ease the coding efforts.
Instructions
To get started:
1. Create a folder for your project, and set this up as a new C++ project.
2. Download the associated task resources. This includes the starter code to read and print person data. Extract the program.cpp file from this, and use it to replace the initial program.cpp file in your project.
3. Watch the Array and Structs video, and follow the steps to update the starter code with the car details. Make sure this is all working correctly before you proceed.
Now you need to make the following small changes before you submit:
4. Add a procedure to print all of the cars driven by a given driver name. This procedure must accept a name parameter, being the name of the driver. For example, the procedure could be called to print all of the cars driven by -Charlotte-.
5. Change main to read in the name to check from the user, and then call your newly created procedure.
6. Submit your program code along with a screenshot of it working.

A ZIP Archive with 4 files including Array folder, Messy code folder and 2 .png files.


Buy Now at $19.99 USD
This above price is for already used answers. Please do not submit them directly as it may lead to plagiarism. Once paid, the deal will be non-refundable and there is no after-sale support for the quality or modification of the contents. Either use them for learning purpose or re-write them in your own language. If you are looking for new unused assignment, please use live chat to discuss and get best possible quote.

Looking for answers ?