Question
Program in C++ (1) Ancient Greek Taxation Suppose that in ancient Greece, where the unit of currency was the drachma, the following income tax code
Program in C++
(1) Ancient Greek Taxation
Suppose that in ancient Greece, where the unit of currency was the drachma, the following income tax code was used: first 10,000 drachmas: 0% tax next 20,000 drachmas: 10% tax next 40,000 drachmas: 20% tax drachmas after 70,000: 30% tax For example, someone earning 100,000 drachmas would owe :10, 000 0.0 + 20, 000 0.1 + 40, 000 0.2 + 30, 000 0.3 = 19, 000 drachmas.Write a program reads in an income value in drachmas, and outputs the amount of tax.
(2) Selection Problem from Your Major
Think up a simple problem, from your major field, whose computer solution involves selection (i.e. the code must use an if-statement). Both you and your partner should think up separate problems. When you have each thought up a problem, share them and, if time permits, chose one and write a program that implements its solution
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started