InstructionsCreate a VS project from the Exercise 12 starter code on GitHub (the

InstructionsCreate a VS project from the Exercise 12 starter code on GitHub (the same code we worked with in class).
Input file ex12_data.csv is included in the GitHub repository. This file must be in your VS project folder.
Run the starter code. It will display lines of file data in the order they were read from the file, then in reverse order.
This code reads file data into a std::vector of std::string elements.When this code displays vector elements, it removes them all from the vector
Modify the loop in function display_file_data() to prevent this data loss Don’t pass the vector by value because this will copy the entire vector
Add function void write_output_file() to output each vector element to a file.Use the constant and ostream variable declared in namespace outfile
Start your “file output in C++” research here: https://cplusplus.com/doc/tutorial/files/
Follow the coding style in the starter code. In particular,Put function prototypes above main
Put function definitions after main
Put a comment header before each function
What to SubmitSubmit the .cpp file with your completed modifications.

Posted in C++

InstructionsCreate a VS project from the Exercise 12 starter code on GitHub (the

InstructionsCreate a VS project from the Exercise 12 starter code on GitHub (the same code we worked with in class).
Input file ex12_data.csv is included in the GitHub repository. This file must be in your VS project folder.
Run the starter code. It will display lines of file data in the order they were read from the file, then in reverse order.
This code reads file data into a std::vector of std::string elements.When this code displays vector elements, it removes them all from the vector
Modify the loop in function display_file_data() to prevent this data loss Don’t pass the vector by value because this will copy the entire vector
Add function void write_output_file() to output each vector element to a file.Use the constant and ostream variable declared in namespace outfile
Start your “file output in C++” research here: https://cplusplus.com/doc/tutorial/files/
Follow the coding style in the starter code. In particular,Put function prototypes above main
Put function definitions after main
Put a comment header before each function
What to SubmitSubmit the .cpp file with your completed modifications.

Posted in C++

Background In this assignment, you will practice your Git skills by downloading

Background
In this assignment, you will practice your Git skills by downloading GitHub desktop and creating a repo for your final project to be showcased in Week 4. You will document this process in a 1 to 2-page paper.
Instructions
Download and install GitHub Desktop,
Create a repository (repo) that you will use to showcase your Final Project created in Week 4.
Describe the process you used to create your repo and document the steps using screenshots embedded in a Word document.

Posted in C++

Problem: Complete Chapter 6. Arrays and Vectors – End-of-Chapter Exercises – Rev

Problem: Complete Chapter 6. Arrays and Vectors – End-of-Chapter Exercises – Review Exercises – R6.20.
From the textbook: Big C++: Late Objects, Enhanced:
Review Exercises R6.20
Develop an algorithm for finding the most frequently occurring value in an array of numbers. Use a sequence of coins. Place paper clips below each coin that count how many other coins of the same value are in the sequence. Give the pseudocode for an algorithm that yields the correct answer, and describe how using the coins and paper clips helped you find the algorithm.
Horstmann, C. S. (2017). Big C++: Late Objects, Enhanced eText (3rd ed.). Wiley Global Education US
Design Specification: Verify that the program design aligns with the description of the desired interface, including prompts for input and output. Remember that the design should clearly communicate the purpose of the program, the desired behavior the user should engage in, and the results with effective labeling of the output.
Functional Specification: Verify that the program functions based on the desired capability and process as described in the program description.
Instructions
After analyzing the problem and specifications described in the background above, in a Word document, create the pseudocode (language agnostic and using conventions in the text) that describes the algorithm and logic for the proposed solution to the problem scenario.
Verify that the algorithm and logic are well structured (unambiguous, executable, and terminating) based on conventions described in the reading.
Create a C++ project in Visual Studio and translate the algorithm and logic described in pseudocode to a working program that has been tested and compiled.
Ensure that a comment header (based on the template provided under Learning Resources) is included at the top of your .cpp file and that descriptive in-line comments that follow conventions described in the reading are used throughout your code. Create a single zip file containing your Visual Studio project folder and pseudocode document. Name the zip file using the following convention – LastNameFirstNameAssignmentNumber. Example: SmithJohnAssignment3
Last name is: Jumah First Name: Maryam Assignment 4

Posted in C++

hello dears, I would like to someone to really help with this project and make

hello dears,
I would like to someone to really help with this project and make as a windows form based application then start the project.
please check the instructions on the attached documment and ask for anything.
I don’t want mistakes and if you are not sure how to do it, just leave it for somone who could really help.

Posted in C++

For this assignment, there is a functioning serial program that processes a batc

For this assignment, there is a functioning serial program that processes a batch of bank transactions. Your job is to convert this into a multithreaded Producer/Consumer model program using a busy-wait approach. The tests for this program have been set up in Canvas via the CODE plugin and the serial version passes all of these tests. Your multithreaded version should also pass the tests, along with compiling and running with no errors or warnings and having no style errors.
Notes:
You should copy the bankingSystemSerial.cpp program to bankingSystemMT.cpp and make that be the multithreaded version.
You should use 1 producer thread that will add transactions to the queue and 3 consumer threads that process them.
Use a maximum queue size of 8
The producer should process all of the “create” actions before adding work to the queue
The usleep instructions in the processTransactions function should be considered as being part of the critical section
You should lock only what is required to avoid race conditions: Locking the entire transactions vector will result in a single-threaded program and you will not be able to get full credit.
When the program is running correctly, these are the final balances in each of the 15 accounts. You can also get this by running the bankingSystemSerial program
Account : 1000 $-377.13
Account : 1001 $1466.54
Account : 1002 $3873.19
Account : 1003 $7781.32
Account : 1004 $8030.92
Account : 1005 $8445.53
Account : 1006 $-777.38
Account : 1007 $-1424.08
Account : 1008 $674.50
Account : 1009 $29120.34
Account : 1010 $9220.96
Account : 1011 $5668.92
Account : 1012 $13219.30
Account : 1013 $66885.38
Account : 1014 $77624.40

Posted in C++

Background Problem: Complete Chapter 4. Loops – End-of-Chapter Exercises – Pract

Background
Problem: Complete Chapter 4. Loops – End-of-Chapter Exercises – Practice Exercises – E4.17.
From the textbook: Big C++: Late Objects, Enhanced:
Practice Exercises E4.17
Write a program that reads a number and prints all of its binary digits: Print the remainder number % 2, then replace the number with number / 2. Keep going until the number is 0. For example, if the user provides the input 13, the output should be
1
0
1
1
Horstmann, C. S. (2017). Big C++: Late Objects, Enhanced eText (3rd ed.). Wiley Global Education US.
Design Specification: Verify that the program design aligns with the description of the desired interface, including prompts for input and output. Remember that the design should clearly communicate the purpose of the program, the desired behavior the user should engage in, and the results with effective labeling of the output.
Functional Specification: Verify that the program functions based on the desired capability and process as described in the program description.
Instructions
After analyzing the problem and specifications described in the background above, in a Word document, create the pseudocode (language agnostic and using conventions in the text) that describes the algorithm and logic for the proposed solution to the problem scenario.
Verify that the algorithm and logic are well structured (unambiguous, executable, and terminating) based on conventions described in the reading.
Create a C++ project in Visual Studio and translate the algorithm and logic described in pseudocode to a working program that has been tested and compiled.
Ensure that a comment header (based on the template provided under Learning Resources) is included at the top of your .cpp file and that descriptive in-line comments that follow conventions described in the reading are used throughout your code.
Create a single zip file containing your Visual Studio project folder and pseudocode document. Name the zip file using the following convention – LastNameFirstNameAssignmentNumber. Example: SmithJohnAssignment2
The first name for the Zip file is Maryam, last name is Jumah.

Posted in C++