File contains data for an individual wedding album

Assignment Help Basic Computer Science
Reference no: EM13161428

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

Reference no: EM13161428

Questions Cloud

Compute the ph of a solution made by adding sodium : Calculate the pH of a solution made by adding 16.0 g of sodium formate
Create to start this assignment : We will be working on only the GUI for the calculator this week. There will not be any code to make the calculator calculate. What classes will we need to create to start this assignment?
Describe the cost structures of these funds : Identify the process by which the company identifies and raises funds for capital investments. Describe the cost structures of these funds from both internal and external sources.
State methanol is produced commercially by the catalyzed : Methanol (CH3OH) is produced commercially by the catalyzed reaction of carbon monoxide and hydrogen: CO(g) + 2H2 (g) (equilibrium) CH3OH(g).
File contains data for an individual wedding album : 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..
State what spectroscopic techniques use to identify progress : This experiment focused on a carbonyl group converted to an imine and then to an amine. Explain what spectroscopic techniques you could use to identify the progress of this reaction
How does the concept of time apply to ecological situations : how does the concept of time apply to ecological situations and evolutionary changes.
Explain the reaction rapidly establishes equilibrium : Nitrosyl bromide, NOBr, is formed in the reaction of nitric oxide, NO, with bromine,Br2 : 2NO(g)+Br(g) 2NOBr(g) The reaction rapidly establishes equilibrium when the reactants are mixed
What type of externalities arise : What type of externalities arise from driving automobiles fueled by gasoline and what is your view on whether the United States should raise the gas tax to the European level and why?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Determine one-s complement of sum of eight-bit bytes

UDP and TCP use 1s complement for their checksums. Assume you have following three 8-bit bytes: 01010101, 01110000, 01001100. Determine the 1s complement of sum of these 8-bit bytes?

  What techniques have greatest impact on website

What web design techniques would you use to help a user with these disabilities? What techniques might have the greatest impact on your website and why?

  Simple math quiz that asks a user

Construct a simple math quiz that asks a user to answer a math problem of your choice. On the form, place one text box (txtAnswer) and two command buttons (cmdAskQuestion and cmdVerifyAnswer).

  Explaining straight-line depreciation method

Explain in scholarly detail how to carry out Straight-line Depreciation Method calculations.

  Explaining sites appropriate for mobile devices

What do you think are some of the types of sites that would be appropriate for mobile devices? What types of sites do you think are inappropriate?

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  How to boost over company-s former speed champ

Explain the definition (or definitions) of performance which you think the company utilzed. Do you believe the news release is misleading?

  Generate profits often referred to as creating

When the output of some units can be used as inputs to othe units, or if two organizations pools markets and expertise that results in lower costs and generate profits it is often referred to as creating?

  Interface perating system with uninterruptible power supply

Windows XP Professional can interface through the operating system with an Uninterruptible Power Supply (UPS).

  Driving force causing this evolution

Discuss the evolution of client-server computing from file server to multilayer applications to Web-based applications. What has been the driving force causing this evolution? Where do you think network computing will be in the next five years? Ten y..

  How to make components of system user-friendly

How do components of your computer system interact within system? What improvements or additions to your system do you think would benefit you or make system more user-friendly? Why?

  Differentiating conventional decision support system and es

A major difference between a conventional decision support system and an ES is that the former can explain a "how" question whereas the latter can also explain a "why" question.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd