please find attachment and answer question 2+3+4+5 ) . by using codeblock system
1411116 ? Programming I
Due Date: October 22 2016
Submit your assignment on the blackboard link, corresponding to your Section:
Please follow the following rules when sending the source code:
1) The name of the file should be q#_myID_section.cpp (for e.g: q1_u000002046_51.cpp)
2) In case two assignments are found to be similar, both students will get ZERO.? Chapter 2: Basics Concepts
Problem 1: A permutation of three objects, a, b, and c, is any arrangement of these objects in a
row. For example, some of the permutations of these objects are abc, bca, and cab. The
number of permutations of three objects is six. Suppose that these three objects are strings.
Write a program that prompts the user to enter three strings. The program then outputs the six
permutations of those strings. Problem 2: You found an exciting summer job for five weeks. It pays, say, $15.50 per hour.
Suppose that the total tax you pay on your summer job income is 14%. After paying the taxes,
you spend 10% of your net income to buy new clothes and other accessories for the next school
year and 1% to buy school supplies. After buying clothes and school supplies, you use 25% of
the remaining money to buy savings bonds. For each dollar you spend to buy savings bonds, your parents spend $0.50 to buy additional savings bonds for you. Write a program that
prompts the user to enter the pay rate for an hour and the number of hours you worked each
week. The program then outputs the following:
e. Your income before and after taxes from your summer job.
The money you spend on clothes and other accessories.
The money you spend on school supplies.
The money you spend to buy savings bonds.
The money your parents spend to buy additional savings bonds for you. Chapter 4: Selection
Problem 3: A box of cookies can hold 24 cookies, and a container can hold 75 boxes of cookies.
Write a program that prompts the user to enter the total number of cookies, the number of
cookies in a box, and the number of cookie boxes in a container. The program then outputs the
number of boxes and the number of containers to ship the cookies. Note that each box must
contain the specified number of cookies, and each container must contain the specified number
of boxes. If the last box of cookies contains less than the number of specified cookies, you can
discard it and output the number of leftover cookies. Similarly, if the last container contains
less than the number of specified boxes, you can discard it and output the number of leftover
boxes. Problem 4: Write a program that calculates and prints the bill for a cellular telephone company.
The company offers two types of service: regular and premium. Its rates vary, depending on the
type of service. The rates are computed as follows: Regular service: $10.00 plus first 50 minutes are free. Charges for over 50 minutes are
$0.20 per minute.
Premium service: $25.00 plus:
a. For calls made from 6:00 a.m. to 6:00 p.m., the first 75 minutes are free;
charges for more than 75 minutes are $0.10 per minute.
b. For calls made from 6:00 p.m. to 6:00 a.m., the first 100 minutes are free;
charges for more than 100 minutes are $0.05 per minute.
Your program should prompt the user to enter an account number (int), a service code
(char), and the number of minutes the service was used (int). A service code of ?r? or ?R?
means regular service; a service code of ?p? or ?P? means premium service. Treat any
other character as an error. Your program should output the account number, type of
service, number of minutes the telephone service was used, and the amount due from
the user. For the premium service, the customer may be using the service during the
day and the night. Therefore, to calculate the bill, you must ask the user to input the
number of minutes the service was used during the day and the number of minutes the
service was used during the night. Problem 5: You have several pictures of different sizes that you would like to frame. A local pictureframing store offers two types of frames?regular and fancy. The frames are available in white and
can be ordered in any color the customer desires. Suppose that each frame is 1 inch wide. The cost
of coloring the frame is $0.10 per inch. The cost of a regular frame is $0.15 per inch, and the cost of
a fancy frame is $0.25 per inch. The cost of putting a cardboard paper behind the picture is $0.02
per square inch, and the cost of putting glass on top of the picture is $0.07 per square inch. The
customer can also choose to put crowns on the corners, which costs $0.35 per crown. Write a
program that prompts the user to input the following information and then output the cost of
framing the picture:
d. The length and width, in inches, of the picture.
The type of the frame .
Customer?s choice of color to color the frame.
If the user wants to put the crowns, then the number of crowns.
This question was answered on: Jan 30, 2021
Buy this answer for only: $15
This attachment is locked
We have a ready expert answer for this paper which you can use for in-depth understanding, research editing or paraphrasing. You can buy it or order for a fresh, original and plagiarism-free solution (Deadline assured. Flexible pricing. TurnItIn Report provided)
Pay using PayPal (No PayPal account Required) or your credit card . All your purchases are securely protected by .
About this QuestionSTATUS
Jan 30, 2021EXPERT
GET INSTANT HELP/h4>
We have top-notch tutors who can do your essay/homework for you at a reasonable cost and then you can simply use that essay as a template to build your own arguments.
You can also use these solutions:
- As a reference for in-depth understanding of the subject.
- As a source of ideas / reasoning for your own research (if properly referenced)
- For editing and paraphrasing (check your institution's definition of plagiarism and recommended paraphrase).
NEW ASSIGNMENT HELP?
Order New Solution. Quick Turnaround
Click on the button below in order to Order for a New, Original and High-Quality Essay Solutions. New orders are original solutions and precise to your writing instruction requirements. Place a New Order using the button below.
WE GUARANTEE, THAT YOUR PAPER WILL BE WRITTEN FROM SCRATCH AND WITHIN A DEADLINE.