Limited Offer Get 25% off — use code BESTW25
No AI No Plagiarism On-Time Delivery Free Revisions
Claim Now

CS3305 Discrete Mathematics for Computing II Methods and System

Get 30% Off + $20 Signup Bonus ! Limited Time, Hurry !

Securing Higher Grades Costing Your Pocket?
Book Your Assignment at The Lowest Price
Now!

Students Who Viewed This Also Studied

CS3305 Discrete Mathematics for Computing II

Task:

Purpose

The goals of this assignment are the following:

Get hands-on experience in developing mutual exclusion / semaphore / critical section techniques/algorithms.

Gain more experience with the C programming language from an OS’s mutual exclusion / semaphore / critical section perspective.

Assignment Description

Using C programming language, you will be developing mutual exclusion algorithm for the following banking scenario. You need to make sure that your mutual exclusion algorithm allows no more than one client accessing the critical section portion of your code at any given point in time. You are allowed to use any mutual exclusion / semaphore related C function calls.

a) Description of the Problem is Given Below:

Let A represent a set of n bank accounts, where n ≥ 1. Let C represent a set of x clients, where x ≥ 1. Each bank account in A can either be a Personal Bank Account or a Business Bank Account shared by all clients in C. Clients can perform three different types of transactions with each bank account: deposit, withdraw or transfer funds. Depending on the type of bank account, there can be a fee associated with depositing, withdrawing and transferring funds to a bank account. Each bank account also has a limit on the number of transactions that can be performed. Any transaction beyond this limit may still occur with a fee.

Some bank accounts in A may have overdraft protection. If the bank account has overdraft protection, at the end of a transaction, the account balance can be less than zero. However, an overdraft fee will be charged for every that the client borrows from the bank to complete the transaction. There is a limit of on the overdraft. If the bank account does not have overdraft protection, any transaction resulting in the account balance to be less than zero should not occur. Initially, there are a set of i depositors, where i ≥ 1. Clients are not allowed to start any transactions until all depositors deposit the money into the bank accounts.

b) Structure of the Input File:

In the following example, there are two bank accounts (a1 and a2) shared by a total of ten clients/users (c1 to c10). The clients are allowed to deposit money into both the accounts, withdraw money from both the accounts, and transfer money between the two accounts. There are also two depositors (dep1 and dep2) who deposit money initially into both the accounts. The clients are not allowed to start their banking activities (i.e., deposit, withdraw, and transfer) until the depositors deposit the money into the accounts. An input file is provided below for illustrative purposes.

c) Structure of the Output File:

You must output the balances of each bank account after all the transactions have been performed. Your C program should output results to the screen and into a text file “assignment_3_output_file.txt”. 

CS3305 Discrete Mathematics for Computing II

Answer in Detail


Solved by qualified expert

Get Access to This Answer

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Hac habitasse platea dictumst vestibulum rhoncus est pellentesque. Amet dictum sit amet justo donec enim diam vulputate ut. Neque convallis a cras semper auctor neque vitae. Elit at imperdiet dui accumsan. Nisl condimentum id venenatis a condimentum vitae sapien pellentesque. Imperdiet massa tincidunt nunc pulvinar sapien et ligula. Malesuada fames ac turpis egestas maecenas pharetra convallis posuere. Et ultrices neque ornare aenean euismod. Suscipit tellus mauris a diam maecenas sed enim. Potenti nullam ac tortor vitae purus faucibus ornare. Morbi tristique senectus et netus et malesuada. Morbi tristique senectus et netus et malesuada. Tellus pellentesque eu tincidunt tortor aliquam. Sit amet purus gravida quis blandit. Nec feugiat in fermentum posuere urna. Vel orci porta non pulvinar neque laoreet suspendisse interdum. Ultricies tristique nulla aliquet enim tortor at auctor urna. Orci sagittis eu volutpat odio facilisis mauris sit amet.

Tellus molestie nunc non blandit massa enim nec dui. Tellus molestie nunc non blandit massa enim nec dui. Ac tortor vitae purus faucibus ornare suspendisse sed nisi. Pharetra et ultrices neque ornare aenean euismod. Pretium viverra suspendisse potenti nullam ac tortor vitae. Morbi quis commodo odio aenean sed. At consectetur lorem donec massa sapien faucibus et. Nisi quis eleifend quam adipiscing vitae proin sagittis nisl rhoncus. Duis at tellus at urna condimentum mattis pellentesque. Vivamus at augue eget arcu dictum varius duis at. Justo donec enim diam vulputate ut. Blandit libero volutpat sed cras ornare arcu. Ac felis donec et odio pellentesque diam volutpat commodo. Convallis a cras semper auctor neque. Tempus iaculis urna id volutpat lacus. Tortor consequat id porta nibh.

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Hac habitasse platea dictumst vestibulum rhoncus est pellentesque. Amet dictum sit amet justo donec enim diam vulputate ut. Neque convallis a cras semper auctor neque vitae. Elit at imperdiet dui accumsan. Nisl condimentum id venenatis a condimentum vitae sapien pellentesque. Imperdiet massa tincidunt nunc pulvinar sapien et ligula. Malesuada fames ac turpis egestas maecenas pharetra convallis posuere. Et ultrices neque ornare aenean euismod. Suscipit tellus mauris a diam maecenas sed enim. Potenti nullam ac tortor vitae purus faucibus ornare. Morbi tristique senectus et netus et malesuada. Morbi tristique senectus et netus et malesuada. Tellus pellentesque eu tincidunt tortor aliquam. Sit amet purus gravida quis blandit. Nec feugiat in fermentum posuere urna. Vel orci porta non pulvinar neque laoreet suspendisse interdum. Ultricies tristique nulla aliquet enim tortor at auctor urna. Orci sagittis eu volutpat odio facilisis mauris sit amet.

Tellus molestie nunc non blandit massa enim nec dui. Tellus molestie nunc non blandit massa enim nec dui. Ac tortor vitae purus faucibus ornare suspendisse sed nisi. Pharetra et ultrices neque ornare aenean euismod. Pretium viverra suspendisse potenti nullam ac tortor vitae. Morbi quis commodo odio aenean sed. At consectetur lorem donec massa sapien faucibus et. Nisi quis eleifend quam adipiscing vitae proin sagittis nisl rhoncus. Duis at tellus at urna condimentum mattis pellentesque. Vivamus at augue eget arcu dictum varius duis at. Justo donec enim diam vulputate ut. Blandit libero volutpat sed cras ornare arcu. Ac felis donec et odio pellentesque diam volutpat commodo. Convallis a cras semper auctor neque. Tempus iaculis urna id volutpat lacus. Tortor consequat id porta nibh.

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Hac habitasse platea dictumst vestibulum rhoncus est pellentesque. Amet dictum sit amet justo donec enim diam vulputate ut. Neque convallis a cras semper auctor neque vitae. Elit at imperdiet dui accumsan. Nisl condimentum id venenatis a condimentum vitae sapien pellentesque. Imperdiet massa tincidunt nunc pulvinar sapien et ligula. Malesuada fames ac turpis egestas maecenas pharetra convallis posuere. Et ultrices neque ornare aenean euismod. Suscipit tellus mauris a diam maecenas sed enim. Potenti nullam ac tortor vitae purus faucibus ornare. Morbi tristique senectus et netus et malesuada. Morbi tristique senectus et netus et malesuada. Tellus pellentesque eu tincidunt tortor aliquam. Sit amet purus gravida quis blandit. Nec feugiat in fermentum posuere urna. Vel orci porta non pulvinar neque laoreet suspendisse interdum. Ultricies tristique nulla aliquet enim tortor at auctor urna. Orci sagittis eu volutpat odio facilisis mauris sit amet.

Tellus molestie nunc non blandit massa enim nec dui. Tellus molestie nunc non blandit massa enim nec dui. Ac tortor vitae purus faucibus ornare suspendisse sed nisi. Pharetra et ultrices neque ornare aenean euismod. Pretium viverra suspendisse potenti nullam ac tortor vitae. Morbi quis commodo odio aenean sed. At consectetur lorem donec massa sapien faucibus et. Nisi quis eleifend quam adipiscing vitae proin sagittis nisl rhoncus. Duis at tellus at urna condimentum mattis pellentesque. Vivamus at augue eget arcu dictum varius duis at. Justo donec enim diam vulputate ut. Blandit libero volutpat sed cras ornare arcu. Ac felis donec et odio pellentesque diam volutpat commodo. Convallis a cras semper auctor neque. Tempus iaculis urna id volutpat lacus. Tortor consequat id porta nibh.

14 More Pages to Come in This Document. Get access to the complete answer.

More CS3305 CS3305 Discrete Mathematics for Computing II: Questions & Answers

COMPS413F Application Design and Development for Mobile Devices

Question:
This app is help the family members of patient who is recovering from kidney disease to take care of the patient, it contains diet recipes which is suitable to the patient and it may help them to recover. It contains the activities which could help them to be recovered.
Create a …

View Answer

Programming

Need to make any simple and small application in touch develop. The application should have camera toclick photos and should have date,time and location on them . And for location it should use API of GPS.I need coding for it as well . There is no page limit because it is a programming assignment.ca …

View Answer

ICT159 Foundations of Programming

Question:
You should read this question as if the change giver is an artificial intelligence-based bank teller who has to give amounts of money to customers by automatically working out the amounts.
 
You are asked to write a modular solution (algorithm and C program) that will accept an int …

View Answer

CS1313-Programming for Non-Majors

Project Description
You’ve been hired to develop statistics software. Specifically, your software will calculate the samestatistics as in the statistics program in PP#3, as well as one new statistic.
In each individual run of your software, you will input two lists of numbers, and these two …

View Answer

Content Removal Request

If you are the original writer of this content and no longer wish to have your work published on Myassignmenthelp.com then please raise the
content removal request.

Choose Our Best Expert to Help You

Woodward Case

Mechanical Engineering from Nanyang Technological University.

600 – Completed Orders

Hire Me

Paul Noor

PhD in Chemistry with Specialization in Oil and Petroleum Chemistry

767 – Completed Orders

Hire Me

Amari Beltran

I have acquired my Master’s degree in Literature from the University of Glasgow

380 – Completed Orders

Hire Me

Still in Two Minds? The Proof is in Numbers!

38983 Genuine Reviews With a Rating of 4.9/5.

Project Management

Assignment: 36 Pages, Deadline:
3 days

the work done by expert on Consultancy project was very good I have perused 60 marks in overall consultancy project.

User ID: 1***25 Leicester, Great Britain

Supply Chain

Home Work: 1 Page, Deadline:
13 days

Live support chat is always available . I received all assignments on given time .According to my previous corsework was given a score 80 out of 100. …

User ID: 8***97 Erbil, Albania

Criminal Law

Home Work: 8 Pages, Deadline:
5 days

first of all i would to say you id a great job by trying to make it look like its easy

User ID: 6***92 Brisbane, Australia

Management

Essay: 4 Pages, Deadline:
4 days

Great write up. Lecturer commented that it is good and great analysis has been carried out.

User ID: 8***83 Brisbane, Malaysia

Assignment

Essay: 8 Pages, Deadline:
4 days

Many mistakes in this essay. I can email you copy in which my tutor give to much bad comments and highlights the mistakes

User ID: 7***60 Sydney, Australia

Management

Essay: 1.2 Pages, Deadline:
1 day

The essay was well-written and on-time delivered. Pretty impressed with professionalism

User ID: 8***78 Sydney, Singapore

Assignment

Essay: 2 Pages, Deadline:
2 days

I’m pleased with the way and manner how my assignment was answered, I am very satisfied with it and thanks for doing a great job.

User ID: 7***58 Sydney, Australia

Finance

Course Work: 4.8 Pages, Deadline:
13 days

this assignment was very well done. scored a solid 85 which is ok. Would recommend to anyone.

User ID: 5***64 Sydney, Saint LUCIA

Management

Assignment: 12 Pages, Deadline:
17 days

More attention to the details of the assignment is required. There was an attachment in detail to this effect.

User ID: 8***09 Accra, Ghana

Statistics

Programming: 3 Pages, Deadline:
4 days

I just wanted to thank the expert for this assignment. It was a great job and what I really asked for. All requirements are fulfilled. Thumbs up

User ID: 8***68 Accra, Canada

Statistics

Assignment: 1 Page, Deadline:
6 days

this was great work from the agents. its exactly where i would have ranged. thank you so much and keep up the good work…cls

User ID: 8***78 Accra, United States

Assignment

Home Work: 10.8 Pages, Deadline:
3 days

it was really good assignment. writer give me assignment on time and there work was good

User ID: 8***11 Accra, Canada

Finance

Home Work: 1 Page, Deadline:
1 day

Thanks a lot for the help as usual for the wonderful help, appreciate it, thanks.

User ID: 5***22 Jurong west, Singapore

Management

Programming: 15 Pages, Deadline:
7 days

Moving forward I only want this writer Great paper, happy what what was written. got good marks highly recommend . thank you

User ID: 1***73 Jurong west, United States

Marketing

Assignment: 16 Pages, Deadline:
26 days

I have submitted my assignment and got a passed mark, it is a good assignment, it ‘s on-time and good articles, thanks

User ID: 6***04 Jurong west, Hong Kong

Assignment

Assignment: 2 Pages, Deadline:
19 hours

I got a good grade of 92% the assignment was also on time so thank you for the good grade

User ID: 8***40 Jurong west, United States

Operations

Assignment: 4 Pages, Deadline:
1 day

im wating for my grades i hope you all done the great workill defenetly recommand this to fellow friends who has trouble with their assignmnets

User ID: 8***80 Hounslow, Great Britain

Management

Assignment: 1 Page, Deadline:
4 days

good work done i didnt get grade for this yet………… hdcbsdchjd hkasbchbhabc hbashcb hbschba sabh

User ID: 8***80 Hounslow, Great Britain

Psychology

Home Work: 7.2 Pages, Deadline:
15 days

thank you for the help it was very helpfull and great work and was able to submkit on timr

User ID: 8***35 London, Great Britain

Project Management

Thesis: 6 Pages, Deadline:
19 days

The content is very well written and explained in detail. All the assignment requirement is covered…thank you so much.

User ID: 6***04 Hyderabad, India

Project Management

Assignment: 36 Pages, Deadline:
3 days

the work done by expert on Consultancy project was very good I have perused 60 marks in overall consultancy project.

User ID: 1***25 Leicester, Great Britain

Supply Chain

Home Work: 1 Page, Deadline:
13 days

Live support chat is always available . I received all assignments on given time .According to my previous corsework was given a score 80 out of 100. …

User ID: 8***97 Erbil, Albania

Criminal Law

Home Work: 8 Pages, Deadline:
5 days

first of all i would to say you id a great job by trying to make it look like its easy

User ID: 6***92 Brisbane, Australia

Management

Essay: 4 Pages, Deadline:
4 days

Great write up. Lecturer commented that it is good and great analysis has been carried out.

User ID: 8***83 Brisbane, Malaysia

Assignment

Essay: 8 Pages, Deadline:
4 days

Many mistakes in this essay. I can email you copy in which my tutor give to much bad comments and highlights the mistakes

User ID: 7***60 Sydney, Australia

Management

Essay: 1.2 Pages, Deadline:
1 day

The essay was well-written and on-time delivered. Pretty impressed with professionalism

User ID: 8***78 Sydney, Singapore

Assignment

Essay: 2 Pages, Deadline:
2 days

I’m pleased with the way and manner how my assignment was answered, I am very satisfied with it and thanks for doing a great job.

User ID: 7***58 Sydney, Australia

Finance

Course Work: 4.8 Pages, Deadline:
13 days

this assignment was very well done. scored a solid 85 which is ok. Would recommend to anyone.

User ID: 5***64 Sydney, Saint LUCIA

Management

Assignment: 12 Pages, Deadline:
17 days

More attention to the details of the assignment is required. There was an attachment in detail to this effect.

User ID: 8***09 Accra, Ghana

Statistics

Programming: 3 Pages, Deadline:
4 days

I just wanted to thank the expert for this assignment. It was a great job and what I really asked for. All requirements are fulfilled. Thumbs up

User ID: 8***68 Accra, Canada

Statistics

Assignment: 1 Page, Deadline:
6 days

this was great work from the agents. its exactly where i would have ranged. thank you so much and keep up the good work…cls

User ID: 8***78 Accra, United States

Assignment

Home Work: 10.8 Pages, Deadline:
3 days

it was really good assignment. writer give me assignment on time and there work was good

User ID: 8***11 Accra, Canada

Finance

Home Work: 1 Page, Deadline:
1 day

Thanks a lot for the help as usual for the wonderful help, appreciate it, thanks.

User ID: 5***22 Jurong west, Singapore

Management

Programming: 15 Pages, Deadline:
7 days

Moving forward I only want this writer Great paper, happy what what was written. got good marks highly recommend . thank you

User ID: 1***73 Jurong west, United States

Marketing

Assignment: 16 Pages, Deadline:
26 days

I have submitted my assignment and got a passed mark, it is a good assignment, it ‘s on-time and good articles, thanks

User ID: 6***04 Jurong west, Hong Kong

Assignment

Assignment: 2 Pages, Deadline:
19 hours

I got a good grade of 92% the assignment was also on time so thank you for the good grade

User ID: 8***40 Jurong west, United States

Operations

Assignment: 4 Pages, Deadline:
1 day

im wating for my grades i hope you all done the great workill defenetly recommand this to fellow friends who has trouble with their assignmnets

User ID: 8***80 Hounslow, Great Britain

Management

Assignment: 1 Page, Deadline:
4 days

good work done i didnt get grade for this yet………… hdcbsdchjd hkasbchbhabc hbashcb hbschba sabh

User ID: 8***80 Hounslow, Great Britain

Psychology

Home Work: 7.2 Pages, Deadline:
15 days

thank you for the help it was very helpfull and great work and was able to submkit on timr

User ID: 8***35 London, Great Britain

Project Management

Thesis: 6 Pages, Deadline:
19 days

The content is very well written and explained in detail. All the assignment requirement is covered…thank you so much.

User ID: 6***04 Hyderabad, India

Have any Query?

The post CS3305 Discrete Mathematics for Computing II Methods and System appeared first on My Blog.

Plagiarism Free Assignment Help

Expert Help With This Assignment — On Your Terms

Native UK, USA & Australia writers Deadline from 3 hours 100% Plagiarism-Free — Turnitin included Unlimited free revisions Free to submit — compare quotes