[Solved] CPE212 Project 01

$25

File Name: CPE212_Project_01.zip
File Size: 160.14 KB

SKU: [Solved] CPE212 Project 01 Category: Tag:
5/5 - (1 vote)

Project01 Goals

The purpose of this project is to exercise, and revisit topics introduced in CPE211. We will be going through and implementing various functions in this assignment needed to accomplish our task.

Project01 Description

For this project, you will complete the provided partial C++ program by implementing 4 functions to perform simple image processing operations on images stored as 1515, two dimensional arrays of integers. The image processing operations are:

  • Load Image
  • Flip Image 3) Transpose

4) Rotate Image

The rotate image functions will be given a direction of clockwise or counter clockwise, while the flip image will be given a direction of vertical or horizontal. You will implement these functions in the project01.cpp file. Prototypes for these functions have already been provide in the project01.hpp file.

The main() function has already been implemented for you so that you have a common way to test your code. The main() function will scan your input file and execute it appropriately. All program output is performed by the code in main.cpp. DO NOT INCLUDE ANY OUTPUT STATEMENTS IN YOUR project01.cpp FILE.

Hint: Make your output match the provided solution.

Running the Sample Solution on blackhawk

The best description of what your code should do is the Sample Solution for the project.

Run the sample solution by typing the following at blackhawk terminal window command prompt

/home/facstaff/taf0004/CPE212SP20/Project01/project01 imagefilename where imagefilename is the name of one of the provided input files (for example, p01input1.txt). Your current working directory must contain the input files for this to work.

Unzipping Sample Input Files on blackhawk

Use the Firefox browser to access Angel and download main.cpp and the sample input files into your Project01 directory. At terminal window prompt, use the unzip utility to uncompress the files.

For example: unzip NameOfZipFileHere to unzip the files into your current directory.

Since this project is worth ten points, you have been given five input files (which utilize the three image files) to test your program.

Running the Preview Script on blackhawk

Run the preview script by typing the following in a blackhawk terminal window command prompt

/home/facstaff/taf0004/CPE212SP20/Project01/preview01.bash

This script will run both the Sample Solution AND your project01 executable program on the complete set of input files, and it compares the outputs of the two programs line by line to identify errors in your programs outputs. Make sure that the output of your program exactly matches the output of the Sample Solution.

Project01 Compilation Instructions

This project consists of two C++ files and one header: main.cpp, project01.cpp and project01.hpp. All three have been provided, along with a makefile to help you compile your program. A makefile contains the sequence of commands required to compile and assemble (link) your executable program. The provided file works on Blackhawk. For this assignment, you will need to use the following command line command to build your program

make

which will create an executable named project01 from the provided files. If your program compiles successfully, you can then type:

./project01 NameOfInput.txt

To execute the program assuming that the input file is located in the same directory. Example:

./project01 p01input1.txt

Project 01 Specifications

Project01 Sample (1515) image file

Important Project01 Submission Instructions

You are provided the main() function within the main.cpp file. This is where all the test files will be ran to test your code. Through the programs execution, it will run various functions that you will implement within the project01.cpp file. YOU WILL ONLY SUBMIT THIS PROJECT01.CPP FILE TO CANVAS.

THE FOLLOWING ARE VERY IMPORTANT INSTRUCTIONS:

1) Do not modify the main.cpp file

Modifying the main.cpp file will result in zero credit (0 points) on this assignment 2) Do not modify the header file project01.hpp.

Modifying the project01.hpp file will result in zero credit (0 points) on this assignment 3) All of your work must be done within the project01.cpp file.

  • All output is done in the cpp file. Adding your own outputs to project01.cpp will result in zero credit (0 points).
  • Do not include the statement using namespace std; in your code. Any time you reference an item from the standard library, you should use std::name. Example, if you need to declare a string, you should declare it as std::string myString;
  • ONLY SUBMIT THE cpp FILE. DO NOT SUBMIT ANY OTHER FILES WITH YOUR SUBMISSION.

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[Solved] CPE212 Project 01
$25