Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question

Java code 

The proposed 2022 budget statement disallowed the tolling of all
roads in Ghana. However, the government has decided to widen the
tax net by bringing most Ghana into the tax net. To successfully do
this a type of activity that is patronized by all should be chosen in
order for almost every body to pay tax. The government decided to
choose electronic transfers (be it bank or mobile money transfers).
It has been decided that transfers less than GHs 100 should not
attract any charges. However, transfers from GHs 100 should attract a
1.75% charge on the amount being transferred. The table below show
the amount paid by drivers of the three vehicles. Assuming these are
the types of vehicles that pass through the tolled road in a particular
day.
Vehicle type
Name
Amount
paid (GH¢)
saloon cars
cars
0.50
Mummy wagons, pick-ups and light buses
Trotro
1.00
heavy buses and light goods truck
Bus2
1.50
a) You are to have a method that takes three mobile money transfers
of various amounts and compute the various charges and the sum
of these charges should be total changes and return or display the
total charge. You should define another method that takes the toll
booth levy for the first three vehicles and multiply the total levy by 5
b) Find the difference between the total mobile money transfer and
the total toll booth levy
Transcribed Image Text:The proposed 2022 budget statement disallowed the tolling of all roads in Ghana. However, the government has decided to widen the tax net by bringing most Ghana into the tax net. To successfully do this a type of activity that is patronized by all should be chosen in order for almost every body to pay tax. The government decided to choose electronic transfers (be it bank or mobile money transfers). It has been decided that transfers less than GHs 100 should not attract any charges. However, transfers from GHs 100 should attract a 1.75% charge on the amount being transferred. The table below show the amount paid by drivers of the three vehicles. Assuming these are the types of vehicles that pass through the tolled road in a particular day. Vehicle type Name Amount paid (GH¢) saloon cars cars 0.50 Mummy wagons, pick-ups and light buses Trotro 1.00 heavy buses and light goods truck Bus2 1.50 a) You are to have a method that takes three mobile money transfers of various amounts and compute the various charges and the sum of these charges should be total changes and return or display the total charge. You should define another method that takes the toll booth levy for the first three vehicles and multiply the total levy by 5 b) Find the difference between the total mobile money transfer and the total toll booth levy
c) Discuss based on your findings whether the scrapping of the toll
booth levy was a good or bad policy
Transcribed Image Text:c) Discuss based on your findings whether the scrapping of the toll booth levy was a good or bad policy
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY