Get help from the best in academic writing.

C++ programming question

C++ programming question. I’m working on a Computer Science question and need guidance to help me study.

TITLE
Updating Accounts Using Doubly Linked List
TOPICS
Doubly Linked List
DESCRIPTION
General
Write a program that will update bank accounts stored in a master file using updates from a transaction file. The program will maintain accounts using a doubly linked list.
The input data will consist of two text files: a master file and a transaction file. See data in Test section below. The master file will contain only the current account data. For each account, it will contain account id, first name, last name and the current balance. The transaction file will contain updates. Each update will consist of an account id, first name, last name and a plus or minus balance update. A plus update value will indicates a deposit and minus a withdrawal.
Building List
At the beginning, the program will input account data from the master file and build a doubly linked list. Each node in the list will contain data relating to one account and the whole list will be kept sorted by account id.
For building the list, the program will input account information from the master file one account at a time. It will create a node containing the account data and add it to the list at the appropriate position in the list so that the list will remain sorted in ascending order by account id.
Updating List
After the list is built as described above, the program will read updates from the Update file and update the list accordingly. It will input one account update at a time and update the list using this update before inputting the next update.
For moving from account to account during updates, it will use a global cursor. For each update, it will determine whether the target account is in the forward or backward direction from the current position. It will then move the cursor in the appropriate direction using either the forward or backward links of the doubly linked list. It will move the cursor till it reaches the target account or an account past the target account (in the case that the target account does not exist).
Depending upon the account id provided in the update, the program will do one of the following:
·If the account specified in the update is not found in the list, it will create a new account, initialize its fields with the values in the update and insert it in the list at appropriate position so that the list will remain sorted in ascending order by account id.
·If the account specified in the update is found in the list, it will update its current balance according to the plus or minus value specified in the update (i.e. it will add a plus value and subtract a minus value).
·On completing the update, if an account balance becomes 0 or negative, the program will delete that account.
Logging Update
Before starting any updates, the program will log the following to the log file:
·It will log the contents of the whole doubly linked list.
Then for each update, it will log the following information to the log file:
·Before the update, it will log a line containing the contents of the update to be performed.
·After the update, it will log the contents of the whole doubly linked list.
For logging the contents of an update, it will output one line of text containing account id, account name and the update value.
For logging the contents of the whole doubly linked list, it will output one line for each account containing account id, account name and account balance.
For the contents of a sample log file, see the Sample Log File section. It contains the partial contents of a sample log file.
New Master File
When all updates are completed, the program will save the contents of the updated linked list to a new master file. (Do not save the link values).
IMPLEMENTATION
Implement the account list using a Circular Doubly Linked List with a Dummy Node.
Account Id
Use a long for account id.
Circular Doubly Linked List With A Dummy Node
Implement the list for keeping the account as a Circular Doubly Linked List with a Dummy Node.
In a Circular Dummy Node implementation of a doubly linked list, the head points to a dummy node. The dummy node looks like any other node but its data fields do not contain any useful values. It’s forward link points to the first node in the list and back link points to the last node in the list. Initially, in an empty list, both its forward and back links points to itself (i.e. to the dummy node).
For doing a sorted insertion in such a list, do the following. Point the insertion pointer to the first real node. Move the insertion pointer forward as needed, till you reach the Point Of Insertion Node. (The Point Of Insertion Node is that node before which you intend to insert the new node) After the insertion pointer is at the Point of Insertion Node, insert the new node just before it. In performing the insertion, only the links in the Point Of Insertion node and the links in the node that is one before the Point Of Insertion node will change. Links in other nodes will not change.
Because of the presence of a dummy node and the circular nature of the list, in all insert cases, there will always exist a node (either a real or dummy node ) before the Point of Insertion node. It will be the links of this node and that of the Point of Insertion node that will change. Therefore, the code for inserting a new node will be the same in all cases including: empty list, head insertion, mid insertion and end insertion. For each of these cases, the point of insertion node and the node prior to the Point of Insertion Node are listed below:
·For an empty list, both point of insertion node and the node prior to the point Of insertion node are the same namely the dummy node.
·For a head insertion, the point of insertion node is the first node and the node prior to the point of insertion node is the dummy node.
·For a mid insertion, the point of insertion node is a real node before which the new node is being inserted and the node prior to the point of insertion node is another real node after which the new node is being inserted.
·For end insertion, the point of insertion node is the dummy node and the node prior to the point of insertion node is a real node after which the new node is being inserted.
In all of the above case, both the point of insertion node and the node prior to the point of insertion node are identical in format and have the same format as all other nodes. Therefore, the code for inserting a node in all of the above cases is the same.
Doubly Linked List Class
Create a class to encapsulate circular doubly linked list with a dummy node and to provide the following.
Global Cursor
Provide a global cursor (pointer) that points to a working account. This cursor will be used during updates.
Building Initial List
Provide a method for building a linked list while reading from the master file. The algorithm for this method is provided later below.
Updating List
Provide a method for performing updates while reading from the transaction file. For doing an update, move the global cursor forwards or backwards as needed from account to account till you either reach the target node or a node past that node. Then carry out the required update (update, insert or delete). The algorithm for this method is provided later below
ALGORITHM
Building Initial List
The code below can be used for building a sorted list while reading from the master file. It works for all cases: empty list, head insertion, mid and tail insertion.
In the code below, cur and prev are two local pointers (not instance variables). newPtr is a local pointer that points to the node to be inserted. head is an instance variable that points to the dummy node. head -> flink points to the first node in the list.
//Using cur, locate the Point of insertion node.
for ( cur = head->flink; cur != head; cur = cur -> flink )
{
if (targetid < cur->id ) //found the Point of Insertion Node
break;
}
//cur is now pointing to the Point of Insertion node.
//Using cur, initialize prev that will point to the node just before the cur node.
prev = cur -> blink;
//Now using cur and prev, insert the new node.
//Create the two forward links
newPtr -> flink = prev -> flink;
prev -> flink = newPtr;
//Create the two back links
newPtr -> blink = cur -> blink;
cur -> blink = newPtr;
//The new node is now inserted just before the Point Of Insertion Node.
Updating List
The pseudo code below can be used for performing an update transaction read from the transaction file.
/*
In case cursor is left at a dummy node from previous transaction, move it to the first node. For example, this may happen if you removed the last node in the list and then moved the cursor forward by one.
*/
if (cursor is at dummy node)
Move it to the first node.
//case: cursor is at the target node
if (cursor id == target id )
{
perform the update
if (balance <= 0)
remove the account.
}
//case: target node is in the forward direction
else if (cursor id < target id)
{
//locate the target node or point of insertion node
while (cursor not reached dummy node)
{
if (target id <= cursor id )
break;
}
//case: found target node
if (target id == cursor id)
{
perform the update
if (balance < 0)
remove the account and move the cursor forward by 1.
}
//case: target node does not exist
else
{
insert the new node before the cursor node
}
}
//case: target node is in the backward direction
else
{
//locate target node or point of insertion node
while (cursor nor reached dummy node)
{
if (target id >= cursor id )
break;
}
//case: target node found
if (target id == cursor id)
{
perform the update
if (balance < 0)
delete account.
}
//case: target node does not exist
else
{
move the cursor one node forward.
(do this to point it to the correct point of insertion node)
insert the node before the cursor node
}
}
TESTING
Test Run 1
Use the following file contents for a test run.
Master File Contents (master.txt)
27183 Teresa Wong 1234.56
12345 Jeff Lee 211.22
31456 Jack Smith 1200.00
14142 James Bond 1500.00
31623 Norris Hunt 1500.00
10203 Mindy Ho 2000.00
20103 Ed Sullivan 3000.00
30102 Ray Baldwin 3824.36
30201 Susan Woo 9646.75
22345 Norma Patel 2496.24

Transaction File Contents (tran.txt)
31623 Norris Hunt -1500.00
20301 Joe Hammil +500.00
31416 Becky Wu +100.00
10203 Mindy Ho -2000.00
14142 James Bond +1500.00
27183 Teresa Wong -1234.56
10101 Judy Malik +1000.00
31416 Becky Wu +100.00
32123 John Doe +900.00
10101 Judy Malik -200.00
22222 Joanne Doe +2750.02
SAMPLE LOG FILE
For a sample, the contents of the log file at the end of completing the first and the second update are presented below:
List At Start:
10203 Mindy Ho 2000
12345 Jeff Lee 211.22
14142 James Bond 1500
20103 Ed Sullivan 3000
22345 Norma Patel 2496.24
27183 Teresa Wong 1234.56
30102 Ray Baldwin 3824.36
30201 Susan Woo 9646.75
31456 Jack Smith 1200
31623 Norris Hunt 1500
Update #1
31623 Norris Hunt -1500
List After Update #1:
10203 Mindy Ho 2000
12345 Jeff Lee 211.22
14142 James Bond 1500
20103 Ed Sullivan 3000
22345 Norma Patel 2496.24
27183 Teresa Wong 1234.56
30102 Ray Baldwin 3824.36
30201 Susan Woo 9646.75
31456 Jack Smith 1200

Update #2
20301 Joe Hammil +500.00
List After Update #2:
10203 Mindy Ho 2000
12345 Jeff Lee 211.22
14142 James Bond 1500
20103 Ed Sullivan 3000
20301 Joe Hammil +500.00
22345 Norma Patel 2496.24
27183 Teresa Wong 1234.56
30102 Ray Baldwin 3824.36
30201 Susan Woo 9646.75
31456 Jack Smith 1200
SUBMIT
Submit the following:
·Source code
·Contents of file log.txt
·Contents of the updated new master file.
C++ programming question

The Connection Between Borders and National Identity Essay

The Connection Between Borders and National Identity Essay.

Essay 1: Border Essay PromptsDirections: This is your first essay assignment known as Essay 1. You will be tasked with writing an argument about one of the prompts below. Please focus on one prompt only. You will be required to writea three to four page essay, use at least three direct quotes and focus on one reading from Module 2 and 3. You must write a minimum of five paragraphs including an introduction, three body paragraphs and a conclusion. In writing this essay, you must use correct MLA standards as shown in Module 3.Prompts1. To what extent are borders “historically, socially and culturally fluid” (Patent)? How are borders linked to national identity? Are borders “the cause of national identity, or the result of it” (Patent)? What are some of the powers behind borders that “even in today’s world are surprisingly important and powerful symbols of national identity” (Patent)? Write an argumentative essay of 3-4 pages focusing on the connection between borders and national identity. Provide supporting evidence from at least one reading, but no more than two readings from Modules 2 and 3. Remember to focus on the evidence from quotes to form your argument rather than relying on personal examples. 2. To what extent do “we live in a very bordered world” (Diener and Hagen 1)? Are borders something natural or are borders created by social construction (i.e. man-made)? How do borders exist in our daily lives and why is that important? Write an argumentative essay of 3-4 pages focusing on the concept of “a very bordered world” and why that is important to our understanding of borders (1). Provide supporting evidence from at least one reading, but no more than two readings from Modules 2 and 3. Remember to focus on the evidence from quotes to form your argument rather than relying on personal examples. 3. To what extent are borders and boundaries different from each other (Grassiani and Swinkles 7)? What role do “material, social and symbolic aspects of physical borders” impact people in society (7)? How are borders and boundaries created? Why is it important to talk about physical borders and “ideological notions of boundaries” (8)? Write an argumentative essay of 3-4 pages focusing on the distinction between borders and boundaries and why that is important for people to recognize. Provide supporting evidence from at least one reading, but no more than two readings from Modules 2 and 3. Remember to focus on the evidence from quotes to form your argument rather than relying on personal examples.4. Scholz asks the question, “what might be learned if we think…about the meaning and import of crossing borders, living in them, or even destroying them” (Scholz 1)? What role does “feminist scholarship on the issues” of crossing borders allow people to learn(1)? Why is important to recognize certain borders and people who may be “left out—or why we are included” (1)? Write an argumentative essay of 3-4 pages focusing on the concept of crossing borders. Provide supporting evidence from at least one reading, but no more than two readings from Modules 2 and 3. Remember to focus on the evidence from quotes to form your argument rather than relying on personal examples.
The Connection Between Borders and National Identity Essay

WNCC The Gender Pay Gap in Different Occupations American Community Survey Discussion

essay order WNCC The Gender Pay Gap in Different Occupations American Community Survey Discussion.

https://video.ucdavis.edu/media/Soc+46B+Data+Analy…here is a video tutorial on the assignmentOverviewThe data projects give you a research question to answer with real data. You’ll apply relevant core concepts to an important sociological problem, analyze data using skills from the weekly activities, and interpret the real-world importance results.For Data Project 3, you’ll apply skills covered in weeks 7-9. Based on the research question given below, you’ll formulate and test hypotheses using data from the American Community Survey (ACS). You’ll submit a document resembling a very short sociological study (around 3-5 pages, including tables and charts). This document will describe the project’s research question and hypotheses, data and analyses, and the results.Research QuestionsIn addition to common knowledge, we’ve examined gender pay gaps a couple times in this course (chapters 5 and 10 of the textbook). We’ve also seen that gender inequalities in the workforce can vary by field of study or job type (reading by Dr. Quadlin in week 8).For this project, you’ll test hypotheses for whether there is a gender pay gap in three different occupations (food service, mail carriers, psychologists). Within each occupation, you’ll answer the question, “Are typical full-time working women paid less than typical full-time working men?” You’ll develop the appropriate null and alternative hypotheses for this question.In addition to addressing the gender pay gap within each of these three occupations, you’ll also address the question, “Does any gender pay gap differ between low-, middle-, and high-wage occupations?” (You don’t need to formulate hypotheses for this question. You can simply describe why you think there might be an association and whether the data support that.)DataYou’ll test your hypotheses with data from the 2018 American Community Survey (ACS). Click here for a document summarizing the ACS sampling design, response rates, and strategies for handling item non-response.Click here to download the ACS data in jamovi formatThe main variables for this project are:sexannual earningsoccupationHints:To conduct a test with the mean of a quantitative variable with a skewed distribution, you may need to transform the variable to reduce/eliminate the skew (see the weeks 7 and 8 tutorials).Use “filters” to test hypotheses about the gender pay gap within each occupation separately (see the week 9 tutorial for a very similar process).https://video.ucdavis.edu/media/Soc+46B+Data+Analy…To determine which occupations are high/middle/low-wage occupations, you can calculate typical annual earnings for each occupation (see the week 4 tutorial).Click here for a detailed recommended outline/checklist for your submissioRubricData Project 3 RubricData Project 3 RubricCriteriaRatingsPtsThis criterion is linked to a Learning OutcomeIntroductionDescribes motivation and research questions. States correct null and alternative hypotheses.30 ptsThis criterion is linked to a Learning OutcomeData SectionDescribes data source, sampling strategy, population, and sample size. Describes key variables, including univariate statistics. Describes potential for non-response bias (for survey questions and the sample over all).45 ptsThis criterion is linked to a Learning OutcomeResultsIncludes correct tables and figures for each research question. Tables and Figures are properly referenced in the text. The results are properly interpreted and connected to the research questions and hypotheses.85 ptsThis criterion is linked to a Learning OutcomeConclusionSummarizes overall pattern of results and their importance for the research questions.15 ptsTotal Points: 175Click here to download the ACS data in jamovi formatRequirements: 3-5 pagesRequirements: 3-5 pages
WNCC The Gender Pay Gap in Different Occupations American Community Survey Discussion

Julia Programming language

Julia Programming language.

I’m working on a website development question and need support to help me study.

I need help with a Computer Science question. All explanations and answers will be used to help me learn.The method of Laguerre with Julia programs. you can convert the .txt file into a .jl file which is required for some questions in the assignment. The solution to this project should be in one single Jupyter notebook. • The notebook should run as a program. All cells should execute correctly in the order in which they appear. • For each assignment, use a separate header in the notebook. • Use text cells to answer the questions of the assignments. • Write complete, grammatically correct sentences to answer the questions. Requirements: Answer can be as short or as long as necessary to correctly answer the questions.
Julia Programming language

native american stories no copied wright

native american stories no copied wright. I need support with this Writing question so I can learn better.

Dropbox 1:Reaction to Native American Stories
Overview: This assignment will help you reflect on the similarities between Native American beliefs and beliefs of modern religions or value systems in America. Why might some of the similarities exist? What might this suggest about beliefs in general? Consider these questions as you complete this assignment (Course Objectives 1,2,4,5; Section Objectives 1,3).
In addition, we’ll also explore common tropes in Native American Creation stories: The Earth Diver, Emergence, The Trickster, and First Encounter stories
Participation: You may complete this activity alone or in groups of 2-3.
Task: Answer the questions below in 2-3 sentences: about 25 (min)- 50 (max) words per question.

Think back to what you already know about creation stories and Native Americans. Consider: What seems to be the role of a creation story in society? What do you already know about Native Americans or Native American storytelling?
Which story best represents the “Earth Diver” trope? Explain why this story represents this trope.
Which story best represents the “Emergence” structure? Explain why you think it meets this trope.
Cite a passage from one of the “Earth Diver” stories or “Emergence” stories, identify what type of story it is, then describe which social value this passage seeks to reinforce.
Compare or contrast your own system of belief system with one of the values represented in these creation stories.
Copy an image into the document of one of your favorite tricksters from popular culture then describe what makes this character an appropriate trickster for contemporary America: what value does he or she disrupt?
Cite a passage from one of the Native American stories that depicts a character as a trickster then explain how or why you believe this to be true.
Contrast the refrain with one of the passages in the “Thanksgiving Address”; taken together, what values do they suggest the writer held?
What do “The Arrival of the Whites” and “The Coming of the Whiteman Revealed” suggest the Lenape (Delaware) and the Micmac clearly understood about the meaning of the white man’s arrival? What, if anything, about the white man’s arrival, is not understood? How do you know?
Reflect: Create a reflection question.

Incorporate direct quotes for the details. Avoid “dropped in” quotes. See “How to Integrate Quotes” under “How To.” Each aspect you analyze is worth 20% of the grade (4×20%=80%).
At the end of the exercise, post a reflective question. See the “How To” section under content for formulating a good reflective question. The entire assignment should be no less than 300 words.
Example of analysis for question four and five and 10 (reflection question)
4. The Iroqui write, “ Before the earth was created, humans and animals “of the kind that are around us now” did not exist.” This demonstrates that the Iroquois did not believe there have always been humans and animals. Instead, it shows that they, like most cultures, believe in a form of creation, a starting point for life as we know it.
native american stories no copied wright

Essay Writing at Online Custom Essay

5.0 rating based on 10,001 ratings

Rated 4.9/5
10001 review

Review This Service




Rating: