Welcome to the Most Reliable, Essay Writing Service on the internet

choose-any-everyday-action-and-write-a-specific-clear-and-precise-algorithm-for-it

Mar 23

1. Choose any everyday action and write a specific, clear, and precise algorithm for it, in English. Be sure to take the approach that whomever is going to perform the algorithm know nothing about the process. You may number the different steps, if needed.

Post your algorithm example as a REPLY to this message.

2.Construct and evaluate an arithmetic expression containing at least four different operators. Show each step that C++ would take to evaluate the expression, and the final answer that the expression would evaluate to (see example on the bottom of page 43 in your textbook).

Your expression must contain at least 4 different operators, including at least one division and one modulus (remainder) operator.

Start with an expression that contains no parentheses. Then fully parenthesize the expression to show the operator precedence. Next show each step that would be taken to evaluate the expression and the final answer that the expression would evaluate to.

Post your arithmetic expression example as a REPLY to this message.

Program #1
Assume a newspaper wants to display the sales in each quadrant of town.
The quadrant, number of customers, and sales are:
In the Northwest quadrant, 23 customers with sales of $ 345.00
In the Northeast quadrant, 156 customers with sales of $ 2111.11
In the Southwest quadrant, 9 customers with sales of $ 120.80
In the Southeast quadrant, 222 customers with sales of $3030.35
Requirements :
Write a program, using output manipulators, to produce the following output exactly:
Output Notes:
The Newspaper and Month values are aligned on the right.
The ‘T’ of the “Town” column label appears in column 6 of console screen
(i.e. there are 5 spaces before the word “Town”).
The Number of Customers and Month’s Sales values are rounded to 2 decimal places
and are aligned on the right.
Do not convert the Number of Customers and Sales values in the code to strings (e.g. “23” or
“345.00”). They should both be coded in the output statements as numbers (e.g. 23 and 345.00).
Minimally, you must use the setfill output manipulator to create and format the dividing lines, and
you must use the setw and setprecision output manipulators to format the numeric output in the
table.
No variables or constants should be used in this program.
Newspaper: Daily Herald
Month: June 2014
#===================================#
Town Number of Month’s
Quadrant Customers Sales
#===================================#
Northwest 23 345.00
Northeast 156 2111.11
Southwest 9 120.80
Southeast 222 3030.35
#===================================#

Program #2
Write a program that computes a bill for newspaper delivery for a charge period (weekly, monthly,
annually, etc).
The charge for the daily newspaper is 52 cents. The charge for a Sunday newspaper is 75 cents.
Customers may also tip a percentage of the monthly bill.
Since the number of days in a charge period varies, the program will need to do some calculations.
Prompt the user for the number of days in the charge period and a tip percentage. Use these figures
to calculate the total bill.
For every 7 days, charge for 6 daily papers and 1 Sunday paper. Remaining days will be charged at
the daily rate. (Hint: Use the division operator (/) to determine the number of full weeks/Sundays,
and use the modulus operator (%) to determine the number of remaining days over the full weeks).
Requirements:
The program must:
Define an integer constant that holds the number of daily papers in one week.
Define two floating point constants that will hold:
o The cost of a daily newpaper
o The cost of a Sunday newspaper
Define a string constant for the customer’s name – use YOUR name
(e.g., “Samantha Washington”)
Define two character variables for the quadrant of town being served
o One will hold a character representing either the north or south side of town
– Initialize this value to ‘S’ for south, when you define it
o One will hold a character representing the east or west side of town
– Initialize this value to ‘W’ for west, when you define it
Define an integer variable to store the number of days in the charge period
(read from the user)
Define a floating point variable to store the tip rate (read from the user)
Define five floating point variables to store parts of the total cost, the subtotal and the total.
o The cost of all Sunday papers
o The cost of all daily papers
o The newspaper subtotal
o The tip charge
o The total bill
©2014, Regis University
Display a program description, followed a prompts and input statement to read number of
days in the charge period from the user.
Sample Input
Calculate the newspaper costs and then the tip.
Add all of the above together to determine the total.
Add any other variable definitions or calculation statements you think are needed to perform
the task
Display a few blank lines to separate the input from the output. Then use output
statements to display the results to the console, in the following format:
NOTES:
o The dollar figures in the totals column should all line up, aligned right, on the
decimal point.
o If the customer enters 0% for the tip, the tip displayed will be 0.00.
Documentation
1) For each program, be sure to include top of program comments
(as specified in course Content section 1.8) that include:
Your name, the course, and the assignment number
What the Program Does including:
What is Input
Processing/Calculations Performed
What is Output
Customer: Samantha Washington
Location: SW quadrant
Days in Period: 30
Tip Rate: 4.2%
Cost for daily papers 13.52
Cost for Sunday papers 3.00
———
Newspaper Total 16.52
Tip for Carrier 0.69
———
Total Billed to Customer 17.21
Newspaper Billing Program
Enter number of days in the charge period: 30
Enter tip percentage (e.g. 5.5 for 5.5% or 0 for none): 4.2
2) Clarifying comments beside constants and variable declarations
3) Inline clarifying documentation, as needed.

  

CLIENT TESTIMONIALS

The Service Is Okay. I won’t Complain

The writers on the website are courteous and the customer service responds quickly. My paper was handled well; They promised...

Writers here are very professional and are native British

Thanks a lot for helping me out with my PhD Thesis, Writers here are very professional and are native British!!

Jack, The United Kingdom

Very Very Helpful, and On time.

Very Very Helpful, and On time.

Adelio M, Spain

I scored complete A’s in 3 out of four courses

I scored complete A’s in 3 out of four courses

Anonymous, Illinoi Chicago

CLICK HERE  To order your paper

About Essaysmiths Assignment writing service

We are a professional paper writing website. If you have searched a question and bumped into our website just know you are in the right place to get help in your coursework. We offer HIGH QUALITY & PLAGIARISM FREE Papers.

How It Works

To make an Order you only need to click on “Order Now” and we will direct you to our Order Page. Fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.

Are there Discounts?

All new clients are eligible for upto 20% off in their first Order. Our payment method is safe and secure.

 CLICK HERE to Order Your Assignment

 

Get access to cheap essays online, and forget about all your worries

Quality assurance

When we accept your assignment order, we treat it with the utmost seriousness. This means that only the best experts will conduct research on your topic and that they will deliver your paper only after making sure that it is insightful.

Total confidentiality

We use the SSL protocol to ensure that all the details of our customers are 100% safe and secure. So, forget about all worries when sharing personal information on our site. We never disclose the details of our clients.

All round service

24/7 customer support. We don’t want you to fail to submit your paper. So, we work 24 hours a day and 7 days a week to provide you with instant feedback.

Original Essays

One of the key principles of our work is to be creative and original. We hire only talented and experienced essay writers that are able to create authentic papers. Each regular essay or term paper is written from scratch in accordance with all your guidelines.

Cheap Service

Compared to our competitors, we offer a relatively cheap service. We allow you the comfort of a cheap paper writing service to improve your grades. If you are facing an academic problem, we’ll solve it by asking for a fair price.

Rocket fast Essay writing service

Don’t worry! We work in a timely manner to deliver orders before the due date. You’ll have enough time to check whether the finished paper corresponds to all your requirements. If not, provide us with feedback and ask for a revision.

Order Your Essay Today From  reliable Essay writing Service.

Order your Assignment today and save 15% with the discount code ESSAYHELP

X