Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Sams Teach Yourself Beginning Databases In 24 Hours

Authors: Ryan Stephens, Ron Plew

1st Edition

067232492X, 978-0672324925

More Books

Students also viewed these Databases questions