Ask Computer Engineering Expert

Design and develop an algorithm (using sequence, selection and iterative constructs) that we find in daily life and independent of computers.

Task

As you have been studying so hard for the last several weeks, you haven't had enough time for laundry chores. As your laundry basket is full of clothes in need of washing, you must do at least two loads of washing.

With respect to a full laundry basket of your clothes and the washing machine that is normally used to wash your clothes, design and develop an algorithm to wash your clothes. Ensure that your algorithm is complete and has sufficient details.

  • Don't mix your whites and colours. Don't assume your clothes sort by themselves.
  • Don't assume your clothes magically fly from the basket to the machine.
  • Don't assume that the machine turns on by itself.
  • Don't assume the machine empties by itself.
  • Etc.

Question-2

  • develop simple numeric algorithms such as min, max, count and average.

Task

Develop an algorithm to prompt for and obtain maximum daily temperatures for a whole

year. However, in order to consider leap years, your algorithm should first prompt the user

for the number of days in this particular year. That is, your algorithm should expect 365 or

366 as the first input number followed by input temperature values.

In addition, for this particular year, your algorithm must also determine and display the

average, maximum, and minimum of these temperatures values.

Question-3

Assessing this question focuses on whether students can demonstrate the ability to:

  • develop sequentially cohesive modules,
  • develop functionally cohesive modules,
  • develop modules utilising data coupling, and
  • develop modules utilising stamp coupling.

Task

A photographic business has a particular data file containing some characteristics associated with wedding albums; these albums must be produced and delivered to customers.

Each line of this file contains data for an individual wedding album and delivery. These data are used to determine the total cost of producing and posting a batch of albums to a customer. Each column of this file contains values for the following characteristics: cover type, size, the number of colour pages, the number of black and white pages, the number of copies ordered in this batch, and postcode. For example, the first few lines of this file might contain:

Soft A3 20 4 3 4321

Soft A4 26 4 2 3210

Leather A4 40 10 1 4567

Hard A5 100 20 2 2109

Your algorithm is to calculate and display the cost of producing and delivering a batch of

wedding albums. That is, an overall cost must be computed for each line of this file. This cost

depends on the type of cover (soft, hard, or leather), the album size (A3, A4 or A5), the

number of colour pages, the number of black and white pages, the number of copies, and

postage.

The cost of producing and delivering albums is based on the following costs. In addition, if the overall cost is above 200 AUD, apply a 10% discount.

  • Soft cover 10 AUD
  • Hard cover 15 AUD
  • Leather cover 25 AUD
  • Each A3 colour page 3 AUD
  • Each A4 colour page 2.5 AUD
  • Each A5 colour page 2 AUD
  • Each A3 B/W page 2 AUD
  • Each A4 B/W page 1.5 AUD
  • Each A5 B/W page 1 AUD
  • postage per A3 album = 15 + (0.08 x total number of page) + postcode cost
  • postage per A4 album = 9 + (0.04 x total number of page) + postcode cost
  • postage per A5 album = 5 + (0.02 x total number of page) + postcode cost

A postcode cost is based on the following:

  • Postcodes beginning with a 2 incur an extra 4 AUD cost per album
  • Postcodes beginning with a 3 incur an extra 3 AUD cost per album
  • Postcodes beginning with a 4 incur an extra 5 AUD cost per album
  • All other postcodes incur as extra 10 AUD cost per album

Based on these file values, one can expect the output of your algorithm to be:

269.78 AUD

188.40 AUD

156.00 AUD

443.52 AUD

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M9451552

Have any Question?


Related Questions in Computer Engineering

Does bmw have a guided missile corporate culture and

Does BMW have a guided missile corporate culture, and incubator corporate culture, a family corporate culture, or an Eiffel tower corporate culture?

Rebecca borrows 10000 at 18 compounded annually she pays

Rebecca borrows $10,000 at 18% compounded annually. She pays off the loan over a 5-year period with annual payments, starting at year 1. Each successive payment is $700 greater than the previous payment. (a) How much was ...

Jeff decides to start saving some money from this upcoming

Jeff decides to start saving some money from this upcoming month onwards. He decides to save only $500 at first, but each month he will increase the amount invested by $100. He will do it for 60 months (including the fir ...

Suppose you make 30 annual investments in a fund that pays

Suppose you make 30 annual investments in a fund that pays 6% compounded annually. If your first deposit is $7,500 and each successive deposit is 6% greater than the preceding deposit, how much will be in the fund immedi ...

Question -under what circumstances is it ethical if ever to

Question :- Under what circumstances is it ethical, if ever, to use consumer information in marketing research? Explain why you consider it ethical or unethical.

What are the differences between four types of economics

What are the differences between four types of economics evaluations and their differences with other two (budget impact analysis (BIA) and cost of illness (COI) studies)?

What type of economic system does norway have explain some

What type of economic system does Norway have? Explain some of the benefits of this system to the country and some of the drawbacks,

Among the who imf and wto which of these governmental

Among the WHO, IMF, and WTO, which of these governmental institutions do you feel has most profoundly shaped healthcare outcomes in low-income countries and why? Please support your reasons with examples and research/doc ...

A real estate developer will build two different types of

A real estate developer will build two different types of apartments in a residential area: one- bedroom apartments and two-bedroom apartments. In addition, the developer will build either a swimming pool or a tennis cou ...

Question what some of the reasons that evolutionary models

Question : What some of the reasons that evolutionary models are considered by many to be the best approach to software development. The response must be typed, single spaced, must be in times new roman font (size 12) an ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As