Find Jobs
Hire Freelancers

C++ programming assignment

$30-250 USD

処理中
投稿日: 9年以上前

$30-250 USD

完了時にお支払い
This assignment builds on a previous assignment which is provided in attached zip folder. The previous assignment parses the element names in an XML file and creates Element object names for each of them. The new assignment is to test an XML well-formedness. To accomplish this, the parser and program need to be enhanced to do the following: -Initialize the state of the parser. -Read an XML file containing data on several of your favorite songs. -“Parse” each line as it is read in and pick out element opening tags. -Print information about each tag. -Push tags that are not closed on the same line as their opening tag onto a stack. -When you find a closing tag, check to make sure that it matches the last element on the stack. -If it does, pop the stack. If it does not, print an error message. -Display the stack as it grows and shrinks. WHAT NEEDS TO BE DONE: 1) Begin by declaring all of the parser states you will need in this program. Write a function that will display the parser state at any given moment so that you have it handy during debugging. 2) Initialize an STL vector or stack that will store pointers (references) to Element objects. This stack will hold pointers to elements that have not yet been closed as you move through each line of the file. This vector could simply hold the names of those elements as string objects, but it is more meaningful to store pointers (references) to actual Element objects themselves. 3) Write a function that will display the contents of this vector or stack for testing purposes. Search the web for an elegant and efficient way to do this using iterators. 4) Next, start enhancing your function that reads the XML file. There are a number of things that you will have to add to this file — most importantly information about the parser state — that we will discuss in class. But at this point you can write the main parts of the function: (a) the commands needed to open and close the XML file and read it line-by-line, and (b) a large switch statement that displays information for each of the parser states that you define. 5) The last major step is to write the function that parses each line of data. This is a complex function that has to check for lots of conditions in a series of if / else if / else tests for each state. Note that some tests will need to know the parser’s current state to fully determine what’s going on. Therefore, there are a number of parameters that you must pass into this function, and a number of values besides the parser state that you must return. Also, the order of your tests will be significant. We will discuss these issues further in class. *NOTES*: The output of the program should look very similar if not exactly like the output file included named, "output for new assignment". I am using a different XML file than the one in the output file so the element names and attributes will be different.
プロジェクト ID: 6628163

プロジェクトについて

2個の提案
リモートプロジェクト
アクティブ 9年前

お金を稼ぎたいですか?

Freelancerで入札する利点

予算と期間を設定してください
仕事で報酬を得る
提案をご説明ください
登録して仕事に入札するのは無料です
アワード者:
ユーザーアバター
Dear sir, I've read your requirement also check the attachment carefully. With 10 years working with C++ with much experience dealing with XML, I could be a good fit. Since your project is urgen, I'll put my most effort to complete it within 30 hours (1.25 day) Kind regards, Tin Tan
$80 USD 1日以内
4.8 (5 レビュー)
2.2
2.2
この仕事に2人のフリーランサーが、平均$179 USDで入札しています
ユーザーアバター
Hi Mate, I AM READY TO FINISH THIS C++ ASSIGNMENT WITH IN 4 DAYS I have seen your project post and surely telling you that we have an experience for this kind of project development. We are best in outsourcing business since 2004 and we have 250+ highly skilled developers for Mobile, Web, Animation, Game Development and Internet Marketing. We have to ask some questions regarding your scope so, kindly go through it: 1) What is your best offer and timeline for this task? 2) When would you expect to start this project development? 3) Please share us your SKYPE for best communication. We serve you better and expect us to be choosing my company for your project selection area. Awaiting from hear you very soon..... Cordially, Vivian
$188 USD 3日以内
0.0 (0 レビュー)
0.0
0.0
ユーザーアバター
A proposal has not yet been provided
$277 USD 5日以内
0.0 (0 レビュー)
0.0
0.0
ユーザーアバター
Electrical engineer that worked on a lot of C++ projects. Laboratory assistant on a course Objet-Oriented programming C++. Also works for the German company with the focus on C++ projects
$111 USD 3日以内
0.0 (0 レビュー)
0.0
0.0

クライアントについて

UNITED STATESのフラグ
Lowell, United States
5.0
2
お支払い方法確認済み
メンバー登録日:10月 22, 2014

クライアント確認

このクライアントからの他の仕事

c++ prog assignment
$30-250 USD
C++ Assignment
$30-250 USD
ありがとうございます!無料クレジットを受け取るリンクをメールしました。
メールを送信中に問題が発生しました。もう一度お試しください。
登録ユーザー 投稿された仕事の合計
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
プレビューを読み込み中
位置情報へのアクセスが許可されました。
あなたのログインセッションの有効期限がきれ、ログアウトされました。もう一度ログインしてください。