Create a list of short bulleted phrases showing all details

Assignment Help Programming Languages
Reference no: EM13782888

1. Library Fines

A local public library needs a program to calculate the overdue fines owed by its patrons. The library needs the clerk to enter the full name and age of the patron. The clerk also needs to enter the name and the number of days overdue for the item. (The library accounts for full days overdue and not partial days overdue.) The library wants the clerk to be presented with a menu from which the type of material overdue can be chosen. The menu should look as follows:

1. Book
2. Magazine
3. DVD

Books that are overdue are assessed a fine of 50 cents per day. Magazines are assessed a fine of 25 cents per day. DVDs are assessed a fine of $1.50 a day. There is a maximum fine assessed of $5.00. Senior Citizens (over the age of 70) do not pay fines. Juvenile patrons (ages 6 through 17) pay a maximum fine of $1.00.

Once the fine has been calculated all information about the patron and the overdue material should be printed to the screen. Here is an example of the report that should be output:

Name Mickey Mouse
Age 22
Item Name Fantasia
Item Type DVD
Number of Days Overdue 2
Overdue Fine $3.00

Each time the program is executed it calculates the fine for a single item. If the user enters invalid data, then a message must be presented on the screen specifying the invalid information and the calculation is aborted.

HINT - no loops can be used in this problem.

Also remember we do not know how to compare strings.

a) Rewrite this problem statement in your own words. Create a list of short bulleted phrases showing all details about this problem. This list should include both the explicitly defined and implied details in the problem statement. Consider what information the program needs to remember in order to meet the requirements of the problem statement. Consider what tasks need to be completed by the program in order to meet the requirements of the problem statement. (Hint - do you think this rewritten problem statement will be longer or shorter than the original problem statement?)

Print out this rewritten problem statement to turn in with this homework.

b) Run your program multiple times using the following information as input. After each run of the program save your entire console output screen to a text file as discussed in our labs.

· You have an overdue book titled Introduction to Java. This book is 5 days overdue.
· Mickey Mouse is 75 years old and has an overdue magazine titled Travel to Disney World. The magazine is 1 day overdue.
· Minnie Mouse is 30 years old and has an overdue magazine titled O Magazine. The magazine is 10 days overdue.
· Charlie Brown is 10 years old and has an overdue DVD titled Charlie Brown Christmas. The DVD is 2 days overdue.
· Goofy Dog is 50 years old and has an overdue DVD titled 101 Dalmations. The DVD is 2 days overdue.
· Snoopy Dog is 20 years old and has an overdue book titled Doghouse Repair. The book is 60 days overdue.

c) Print out a copy of your source code and your output text file to turn in with this homework.

Reference no: EM13782888

Questions Cloud

Disadvantages of having diversity training : What are the advantages and disadvantages of having diversity training conducted by internal employees versus using an outside consultant? Which would you prefer?
Assignment on motivating employees : Finding ways to motivate employees and creating a workplace where they are motivated and feel appreciated can be a challenge for managers.
Create a visual basic windows application : Create a Visual Basic Windows application. Use the following names for the solution, project, and form file, respectively: Georgetown Solution, Georgetown Project, and Main Form.vb. The interface allow the user to enter a five-digit credit card nu..
Does our analysis of the foreign exchange market : The dollar's exchange rates against foreign currencies became more volatile. Does our analysis of the foreign exchange market suggest any connection between these two events?
Create a list of short bulleted phrases showing all details : Rewrite this problem statement in your own words. Create a list of short bulleted phrases showing all details about this problem. This list should include both the explicitly defined and implied details in the problem statement.
Why did you select the six team members you did : Your objective is to individually select a team of six people from the given teammate profiles. Begin by reading "West Coast Transit Company Profile" and "West Coast Transit Team Member Profiles," which are attached in the Topic Materials. Based on y..
New german cinema and italian film-makers : Explain the techniques and the similarities and differences between the French New Wave Cinema and the "Angry Young Man" or "kitchen sink realism" cinema school of Great Britain in the 1960s with the New German Cinema and Italian film-makers of th..
Final assignment on hifsa : It may include explanation and examples from previous experience as well as implications for future application.
Program should prompt the user at the beginning : The program should prompt the user at the beginning for the number of different milk quantities to evaluate in this one run of the program.

Reviews

Write a Review

Programming Languages Questions & Answers

  Explain circumstances in which we can implement array

If you were describing the array to friend who is learning Java, how would you do so? Explain circumstances in which you could implement the array.

  Architecting web-applications using web-services

Architecting web-applications using web-services has advantages. Forexample, you can gain increased security. Describe other advantages otherthan security gained by using web-services.

  Create the program for iteration control structure

Iteration Control Structure create the program which models worm's behavior - Worm can enter apple when it is in body length of apple.

  User-s ability to navigate the web site correctly

This can paralyze a user's ability to navigate the Web site correctly. Examples include opening new browser windows or using meta-refresh to force a page.

  Write the code required to analyse and display

Engineer for a materials manufacturing research lab and have been asked to provide an automated solution to analyse data.

  Design application to declare an array

Design an application that declares an array of 10 HousePlants. Prompt the user user for data for each of the HousePlants, then display all the values.

  Write program to read integers and finds largest of them

Write a program that reads integer, finds the largest of them, and counts its occurrences. Assume thant the input ends with number 0. suppose that you entered 3 5 3 5 5 5 0.

  Write a set-list of enumerated constants for week

Write a set/list of enumerated constants called week which contains days of the week. Have variable called today that is of type week. Allot value to today.

  Create a project in xcode

Create a new project in XCode using the Mac OS X/Command Line Tool template

  Write application that inputs five number

Use a one-dimensional array to solve the following problem: Write an application that inputs five numbers, each of which is between 10 and 100, inclusive.

  Write function to accept single argument-find prime number

Write down function named isPrime( num ) which accepts the single argument (num) and returns True if argument is prime, and False otherwise.

  Write a function that uses stream-map

Now write a function that uses stream-map to produce the sum of two streams element by element for the first x elements . Be sure to test with several different types of streams (for example, you could sum together the odd and even numbers betwee..

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