Loading...

Messages

Proposals

Stuck in your homework and missing deadline? Get urgent help in $10/Page with 24 hours deadline

Get Urgent Writing Help In Your Essays, Assignments, Homeworks, Dissertation, Thesis Or Coursework & Achieve A+ Grades.

Privacy Guaranteed - 100% Plagiarism Free Writing - Free Turnitin Report - Professional And Experienced Writers - 24/7 Online Support

Atm source code in c++

04/12/2021 Client: muhammad11 Deadline: 2 Day

Once you receive a “Complete” on your algorithm you may code the program.

Once you code the program, turn in all previous work plus the cpp source code, both hard copy and electronically.

Do not forget to staple previous work to the back of the new work when handing anything in.

Assignment Algorithm needed first Code

1.Fax:

- Test Data: 5 pages / $4.00;

10 pages / 5.00; 22 pages / 6.20 Yes Fax.cpp

2.Reading a Data File

Needed File: Data.dat No Read.cpp

3.Course Assignment document

-Needed files for testing:

CourseData1 & CourseData2 Yes Course.cpp

4.ATM Algorithm

- Needed Files:

bal1.dat Bal2.dat Bal3.dat No ATM.cpp

5.Working with Switch Statement No Switch.cpp

6.Calculator Program Yes Calc.cpp

Fax.cpp

Do an algorithm (plan) and code

Suppose that the cost of sending an international fax is calculated as follows: Service charges $3.00; $.20 per page for the first 10 pages; and $0.10 for each additional page. Design an algorithm that asks the user to enter the number of pages to be faxed. The algorithm then uses the number of pages to be faxed to calculate the amount due.

Do initial planning, an algorithm and code. Type your algorithm as comments in your code. Hand in: Initial planning and Source code - hard copy

Hard copy of Source code

Submit on Blackboard: Source code

Reading a Data file

Given the data file: Data.dat

Name your program (source code) Read.cpp

View the file and write a program to read the information off of the file and print it on the screen. You will need to define identifiers and declare memory locations to hold the data as you pull it from the file. You will need to determine what data types would be appropriate. Print the information on the screen, each ‘piece’ of data on a new line.

Data.dat contents:

Foundations of Programming 19 231.43 A 54.2 CS 3.2 Joe Smith 26

The file contains the following information in the given order:

Course Name

Age

Wages for the week

Grade average

current bill

Major

GPA

Name

Current earned hours

Assignment: Course The department is offering a new course that is graded on a pass/fail basis. To pass, students must score at least an average of 70% on a series of 3 exams. Write a program that will read a file containing a person’s name followed by their 3 scores (all are worth 100 each). The program should output the person’s name and whether they passed or failed.

The program should use a getline statement to read the name. The program should ask the user the name of the file to open. Remember: streamVar .open( filename .c_str()); Also, check to see if the file opened (if it went into fail state) and exit the program if it did not.

Example file – CourseData1: Bill Anderson 84 89 74 Obviously should get a Pass

Example file – CourseData2: Sandy Thompson 67 72 60 Obviously should get a Fail

ATM.cpp (where implies your initials)

Suppose amountWithdrawn denotes the amount to be withdrawn, serviceCharge denotes the service charges, if any, and accountBalance denotes the total money in the account.

You can now write the algorithm as follows:

a. Read accountBalance from a file. The name of the file will be typed in by the user Multiple sample files are being provided to test the various paths

Get amountWithdrawn from user.

b. if amountWithdrawn > 500

Print "The maximum amount that can be drawn is $500"

otherwise (if accountBalance <= 0)

Print "Account balance is <= 0. You cannot withdraw any money. "

Otherwise

{

if (amountWithdrawn > accountBalance)

{

Print "Insufficient balance. If you withdraw, services charges

will be $25.00. Select Yes/No."

if (Yes)

{

if (amountWithdrawn > 300)

serviceCharge = (amountWithdrawn – 300) * 0.04;

otherwise

serviceCharge = 0;

accountBalance = accountBalance – amountWithdrawn

- serviceCharge – 25;

Print "Collect your money. " Print “Your remaining balance is $xxxx.xx”

}

}

otherwise

{

if (amountWithdrawn > 300)

serviceCharge = (amountWithdrawn – 300) * 0.04;

otherwise

serviceCharge = 0;

accountBalance = accountBalance – amountWithdrawn

- serviceCharge;

Print "Collect your money."

Print “Your remaining balance is $xxxx.xx”

}

Turn in your hardcopy and submit the electronic copy on Blackboard in the location provided.

Test Data:

File Name

User Input Amount to W/Draw

Balance on Account from file

Balance after transaction

Any

1000

“Cannot be withdrawn”

Same balance

Bal1.dat

Any

-32.12

“Insufficient Funds”

Same balance

Bal2.dat

345 & yes to $25 fee

212.13

Balance = -159.67

Bal2.dat

345 & no to $25 fee

212.13

“Insufficient Funds”

Same balance

Bal2.dat

250 & yes to $25 fee

212.13

Balance - -62.87

Bal2.dat

250 & no to $25 fee

212.13

“Insufficient Funds”

Same balance

Bal3.dat

450

1000.11

Balance = 544.11

Bal3.dat

200

1000.11

Balance = 800.11

Selection Structure Assignment

switch.cpp

Switch format switch(expression)

{

case x: statement(s) x;

break;

case x: statement(s) x;

break;

case x: (using the same statements as case below)

case x: statement(s) x;

break;

}

Read the given set of code to understand what they are attempting to do. Note the comments on the code and, on the appropriate lines, code the appropriate statement to complete the comment. (You may wish to print the code so that you can determine the correct placement of your new code.)

When finished with the program, compile and execute it.

Run the program multiple times with varying test data to fit the different paths to determine that you have the program correct. Debug as needed.

When finished with the program – print your .cpp code and submit on black

Calc.cpp (Calculator Program)

Using Case Structure

Plan and write an algorithm to create a program that simulates a simple calculator. The calculator will add (+), subtract (-), multiply (*), and divide (/). The user will be able to type in problems such as: 44.4 * 3 The 'calculator' will present the user with the answer. Be creative in your inputs and outputs

Once you have your program working, note the lines that you would need to copy if you were going to have the program give the user two attempts at the calculator. Place those lines (needing repeated) inside curly braces (to form a block or compound statement). Place the following line directly above the block: for (i = 1; i <= 5; i++) This will allow the body of the program to run 5 times without re-running it.

Hand in your source code and algorithm/planning Also submit calc.cpp electronically

Homework is Completed By:

Writer Writer Name Amount Client Comments & Rating
Instant Homework Helper

ONLINE

Instant Homework Helper

$36

She helped me in last minute in a very reasonable price. She is a lifesaver, I got A+ grade in my homework, I will surely hire her again for my next assignments, Thumbs Up!

Order & Get This Solution Within 3 Hours in $25/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 3 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

Order & Get This Solution Within 6 Hours in $20/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 6 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

Order & Get This Solution Within 12 Hours in $15/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 12 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

6 writers have sent their proposals to do this homework:

University Coursework Help
Premium Solutions
Engineering Exam Guru
Math Specialist
ECFX Market
WRITING LAND
Writer Writer Name Offer Chat
University Coursework Help

ONLINE

University Coursework Help

I am a PhD writer with 10 years of experience. I will be delivering high-quality, plagiarism-free work to you in the minimum amount of time. Waiting for your message.

$44 Chat With Writer
Premium Solutions

ONLINE

Premium Solutions

I will be delighted to work on your project. As an experienced writer, I can provide you top quality, well researched, concise and error-free work within your provided deadline at very reasonable prices.

$35 Chat With Writer
Engineering Exam Guru

ONLINE

Engineering Exam Guru

I am an experienced researcher here with master education. After reading your posting, I feel, you need an expert research writer to complete your project.Thank You

$18 Chat With Writer
Math Specialist

ONLINE

Math Specialist

I have done dissertations, thesis, reports related to these topics, and I cover all the CHAPTERS accordingly and provide proper updates on the project.

$40 Chat With Writer
ECFX Market

ONLINE

ECFX Market

I am a PhD writer with 10 years of experience. I will be delivering high-quality, plagiarism-free work to you in the minimum amount of time. Waiting for your message.

$42 Chat With Writer
WRITING LAND

ONLINE

WRITING LAND

As per my knowledge I can assist you in writing a perfect Planning, Marketing Research, Business Pitches, Business Proposals, Business Feasibility Reports and Content within your given deadline and budget.

$22 Chat With Writer

Let our expert academic writers to help you in achieving a+ grades in your homework, assignment, quiz or exam.

Similar Homework Questions

Develop a work breakdown structure for a wedding - Building certifier course qld - Revising Unit 2 Assignment - 560 fe - Brothers poem andrew forster - The right to be heard implies that companies should listen to consumer complaints and - Managerial practices executive summary - Classified biology past papers igcse - Management Consulting Template: “The Pearl Industry: Is there a market opportunity?”) • Template provided (fillable) - Financial management of hospitals and healthcare organizations - Sap system message rabax during sapgui logon - Comparing Leadership Theories - Roy vagelos attacks river blindness - Granny prix maths game - Victoria park infant school - Hyundai iload overall length - Ideal gas monatomic or diatomic - Amusement park industry swot analysis - Device removing hardness crossword - Critical path method solved examples - Mid hospital silver plus hcf - Traffic light controller circuit diagram - What basic principles characterize biological theories of crime causation - Caen car park braunton - Zinc and vinegar chemical reaction - Diminishing marginal returns to labor - Sam textbook - Sam cengage excel project 7 - Security personnel should first be trained in the basics, including (mark all that apply): - Presidential Agendas - Jeff nippard push pull legs hypertrophy program pdf free - Similarity between mole and dozen - Justice law clerk singapore - The standard unmodified audit report - AHCD - Corporate Project - Bellevue community college tuition - Deliverable 4 - Using Sociological Theory to Understand Organizational Change - Chapter 16 international pay systems - A successful blue ocean strategy requires - Nupage gel loading volume - Excel remembers the last ____ actions you have completed - The chimney sweeper theme statement - 10.2 graphing square root functions answers - A 2.5 cm diameter horizontal water jet - Written Case Analysis (final:03) - Bit stuffing in hdlc - Red zuma project part 3 - Crime analysis focuses - Forensic tools that can examine mac ipod and iphone - Mutually exclusive and exhaustive events - Case Study Analysis - Wk 1, IOP 480: DISC Assessment and Reflection - Pm asmnt5 - Cave arch stack stump - Madeleine leininger transcultural nursing theory ppt - Chapter 17 preventative maintenance and service procedures - Beowulf motifs hero and monster - First world problems speech - Presenting problem example treatment plan - Bbc dance mat touch typing - Formative Assessment - CASE STUDY: Mrs. J is repeatedly asking for a nurse; other patients are complaining, and you simply cannot be available to Mrs. J for long periods. Considering the setting and the OBRA guidelines, what would you do to manage the situation? - Managerial Accounting: DQ1 - A medieval monks timetable - Analyze the successes and failures of the Arab Spring uprisings of 2010-2011. - Can the resultant of two velocities have zero magnitude - Running record observation example - 4 noble truths worksheet - Irony as a principle of structure - Stop googling let's talk summary - Environmental science and human population worksheet - Ed gein case study - Ab ab rhyme scheme - Point of view worksheet answers - Wk 4, IOP 480: DQ - Enhancing Quality and Safety - Revolutionary mothers thesis - Pi pearsoned login - Peyton approved final project - Week5-Apply: Contingency Plan and Executive Presentation - Output control in management - Learning Theories - Project approach - Www fru nt gov au - The book thief innocence - Essay about Poem WWI - St stithians past papers grade 11 - Types of staffing policy - Benefit realisation tracking template - Discussion question - Quartus prime - Qnt 275 week 4 practice set answers - To determine the true cash balance - Describe the history and evolution of healthcare economics - Chicka chicka boom boom tree template - Assume the salaries of elementary school teachers - What happens if you mix hydrogen and oxygen - Finesse clean and simple hypoallergenic shampoo - Environmental Scanning - What is an iris diaphragm on a microscope