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 minute at which first customer arrives

Choose a random integer between 1 and 4 to determine the minute at which the first customer arrives. What happens if the arrival is changed from 1 to 4 minutes to 1 to 3 minutes?

  What is the chance of success on first attempt

What is the chance of success on the first attempt? What is the probability of exactly k collisions and then a success?

  What are areas addressed in cbk

What are the areas addressed in the CBK? Was policy explicitly listed? If not, where do you feel it is addressed in the CBK?

  Section on access controls

Refer to the section on Access Controls. What is the difference between "authorization" and "authentication"? What do we use to perform each of these access control functions? What are the advantages and limitations of the different approaches?

  Explaining origins or genesis of wireless networking

Explain origins/genesis of wireless networking.

  Find companies that specialize in computer forensics

What needs clarified? it's plainly stated use google to find 3 companies that specialize in computer forensics of those 3 companies write 2 or 3 paragraphs comparing what each company does.

  Write down sructured english for clyde-s narrative

On a trip lasting more than one day, we permit hotel, taxi, and airfare also meal allowances. Same times apply for meal expenses. Write down sructured English for Clyde's narrative of the reimbursement policies.

  Twenty-four voice signals

Twenty-four voice signals are to be multiplexed and transmitted over twisted pair. What is the bandwidth required (in bps) if synchronous time division multiplexing is used, if we use the standard analog to digital sampling rate, and if each sample i..

  Reads in three integers

Write a program that reads in three integers and determines and prints the smallest number numerically in the group. The values are NOT necessarily entered in numeric order.

  Explain radio frequency identification technology

Write discussion of radio frequency identification (RFID) technology and Information Technology Infrastructure Library (ITIL) standards.

  Examine work-related project using systems analysis

Create 4-6-page paper which examines work-related project which used systems analysis for selected business system at department or division level.

  Write program to make change for cost of item

Write down a C# program to make change. Enter cost of item which is less than one dollar. Output coins given as change, by using quarters, dimes, nickels, and pennies.

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