My orders
How it works
Examples
Reviews
Blog
Homework Answers
Submit
Sign in
How it works
Examples
Reviews
Homework answers
Blog
Contact us
Submit
Fill in the order form to get the price
Subject
Select Subject
Programming & Computer Science
Math
Engineering
Economics
Physics
Other
Category
C++
Software Engineering
Java | JSP | JSF
Databases | SQL | Oracle | MS Access
C
Python
Excel
C#
Visual Basic
Computer Networks
Functional Programming
Android
Assembler
UNIX/Linux Programming
ASP | ASP.NET
MatLAB
Wolfram Mathematica
MathCAD
Maple
Perl
Action Script | Flash | Flex | ColdFusion
Ruby | Ruby on Rails
Prolog
Objective-C | Swift
Algorithms
Web Development
HTML/JavaScript Web Application
NodeJS Web Application
Other
Deadline
Timezone:
Title
*
Task
*
{"ops":[{"insert":"A bookshop gives discount to customers as follows:\n\n\n\u2022 Students get 10% discount,\n\n\n\u2022 Book dealers get 12% discount and\n\n\n\u2022 Pensioners get 15% discount.\n\n\n\u2022 All other customers get 10% discount only if their total purchases are more than R200.\n\n\nYou are requested to write two versions of a program that calculates and displays the final amount that is\n\n\ndue, after discount.\n\n\n(i) The first version of the program uses a switch statement to implement the above program.\n\n\n(ii) The second version of the program uses nested-if statements.\n\n\nHint:\n\n\nUse the following variables:\n\n\nfloat amount; \/\/ the amount due before discount\n\n\nchar customerType; \/\/ the type of customer: 'S' (student) or\n\n\n\/\/ 'D' (dealer) or 'P' (pensioner) or\n\n\nCOS1511\/103\/0\/2022\n\n\n5\n\n\n\/\/ 'O'(other) float discount,\n"}]}
I need basic explanations
Special Requirements
Upload files (if required)
Drop files here to upload
Add files...
Account info
Already have an account?
Create an account
Name
*
E-mail
*
Password
*
The password must be at least 6 characters.
I agree with
terms & conditions
Create account & Place an order
Please fix the following input errors:
dummy