C++ Vectors and Files Lab need Software Development

Contact person: C++ Vectors and Files Lab

Phone:Show

Email:Show

Location: Clinton, United States

Budget: Recommended by industry experts

Time to start: As soon as possible

Project description:
"Assignment:

Your job is to create a program that takes in a standard text (.txt) file and converts that to a CSV
(.csv) file. Each item will be designated by an individual item per line in the text file. We’ll define
when you should have a new line in the CSV file by an exit character: -1. So, assume each item
is moving horizontally in the CSV, until the exit character – which will move the file down.

So, the following sample text file:

1
2
-1
3
4
-1

Would be translated to a CSV file as:

1,2
3,4

Your program should take in a base filename (WITHOUT AN EXTENSION), open that filename
with .txt added, and verify the existence in a loop. Once you have a valid file, read the
contents into a vector and close the input file. Then, open an output file of the input filename
with .csv added and write the contents of the vector appropriately.

Your program should end with the following files existing:

[login to view URL]
[login to view URL]

A couple sample text files have been provided to use.


Milestones:

You must receive a check-off for each item to receive full credit on the lab. You may show the
milestones incrementally, or receive a check off for multiple in one demo depending on your
progress.

Examples of each milestone are included.


Milestone 1:

Take user input for the file without an extension. Loop until the file exists. Must show:
● Looping until a file that exists is entered
● No extension is taken from the user


Milestone 2:
Read the contents of your file into a vector. Must show:
● File contents printed to the screen FROM A VECTOR
● To get checked off for this one, you must show in the demo, a vector is being read from
to display to the screen, not printing to the screen as you’re reading the file
Note: The printing to the screen shown here is only to illustrate successful reading. This will go
away in the next milestone from the sample executions shown to you.
Milestone 3:
Writing into a CSV file. Must show:
● A successfully created CSV file of the same name you opened the text file from
● All items on one row, but multiple columns
File contents in Excel ([login to view URL]):
File contents in text editor (plaintext):
Milestone 4:
Properly formatting the CSV file. Must show:
● -1 is not added to the file
● Where -1 would be, there is instead a new row
● There is NO floating comma at the end of each row
File contents in Excel ([login to view URL]):
File contents in text editor (plaintext):
Milestone 5:
Works with multiple files. Show milestone 4 with all sample files provided to you. Must show:
● Ran FRESHLY. Cannot have prepared files to show all at once. These must be
generated by the program, in real time.
BONUS / Honors Student Credit:
If you’re an honors student, you must complete this portion. If you do not, it will be counted
against you.
If you’re not an honors student, you may complete this section for an additional 10 bonus points.
Add looping functionality to the entire program – once one file is converted into a CSV, ask the
user if they’d like to convert another file. Loop, converting files until they’d like to quit.
Comment Block:
Your code should contain a comment block at the top containing information on who wrote the
code, what the assignment is, when it is due, etc. Here is an example of a good comment block
to put:
/*
Name: <your name>
Date: <current date>
Description: <What is the program?>
*/
Deliverables:
NetID: <your netID>
Due Date: <enter in due date>
● C++ code (.cpp file) you used to demo your program
○ If the code submit CANNOT achieve the demo, you will receive a 0.
Point Breakdown:
(100 points total)
A submission that hasn’t received a check-off will not be considered for grading.
● 20pts - milestone 1
● 10pts - milestone 2
● 15pts - milestone 3
● 25pts - milestone 4
● 20pts - milestone 5
● 10pts - programming style *
● Honors / BONUS (dependent on Honors status):
○ Honors: 10pts penalty for not completing
○ BONUS: 10pts added for completing
● PENALTIES
○ 10pts - files are not closed after they’re used
* Programming style includes good commenting, variable nomenclature, good whitespace, etc." (client-provided description)


Matched companies (7)

...

April Innovations

April Innovations is one of the leading Enterprise Software Development companies in Mumbai, with clients being serviced in the USA, UK, and India. T… Read more

...

TG Coders

We create custom apps for businesses and startups TG Coders is a technology partner specializing in creating custom mobile and web applications for … Read more

...

Crystal Infoway

Crystal Infoway is a well-known IT Service Provider who works to Bring Ideas to Reality. We work to shape the dreams victoriously using Design, Techn… Read more

...

WhizzAct Private Limited

WhizzAct aims to deliver the supreme service at an effective cost, ensuring complete customer satisfaction. Emphatic use of the latest tools and tech… Read more

...

Appeonix Creative Lab

At Appeonix Creative Lab, we are more than just an IT company—we are your growth partners. With a passion for innovation and excellence, we craft cus… Read more

...

Conchakra Technologies Pvt Ltd

At Conchakra, our mission is to empower organizations through innovative software solutions that leverage the transformative potential of artificial … Read more

...

Knowforth Tech

Empowering Businesses with Tailored Software & AI Solutions.