Even complicated and confusing topics will be easily developed and covered if you request our help writing an essay. Place an order today!

Java: Hello anyone I'm in need of help on a programming question which must be done within the next 6 hours. Write a program to calculate the Twelve Days Of Christmas. The program requests a integer from 1-12 and then lists the gift for that day and the costs. the program should also calculate the total cost of all 12 days. If bad data is entered an error message SHOULD occur and no calculation should be performed. If everything is entered correctly then it should look like this:

User input:3
Your gifts for Day 3 are:
One partridge in a pear tree
two turtle doves
three French hen
cost of day: $459.99
total cost for twelve days:
$ 101,099.96

The program has to be a looping for calculations not using printing. Data also HAS to be loaded by a text file. Also use array. The text file should look something like:

(first text file)
One Partridge in a Pear Tree
Two Turtle Doves
Three French Hen
Four Calling Birds
Five Golden Rings
Six Geese-a-Laying
Seven Swans-a-Swimming
Eight Maids-a-Milking
Nine Ladies Dancing
Ten Lords-a-Leaping
Eleven Pipers Piping
Twelve Drummers Drumming

(Text File two)


The grand total should be $101,099.96

testimonials icon
On March 1, 2010, Hrd Corporation issued a 6-year bond worth $422,000 with an interest rate of 8% per annum. Interest is to be paid semi-an...
testimonials icon
Running head: CRETE LLC WINDOWS NETWORK PROPOSALCrete LLC Windows Network ProposalStudent NameInstitution Affiliation1CRETE LLC WINDOWS NETWOK PROPOS...
testimonials icon
Read the article and take a simple quiz about MLA.An important aspect of writing academic essays is effectively integrating quotes...
testimonials icon
 Assignment 2: LASA: PowerPoint Presentation—Training Program DesignSubmit your assignment to the Submi...
testimonials icon
Please see the attached documents....
testimonials icon
“I am utterly bored by celebrity interviews. Most celebrities are devoid of interest.” – Roger EbertThe cult of celebrity as we know it reall...
testimonials icon
/*! elementor - v3.6.5 - 27-04-2022 */ .elementor-heading-title{padding:0;margin:0;line-height:1}.elementor-widget-heading .elementor-heading...
testimonials icon
Assignment 2: Logic ModelsLogic models play an important role in the development of a program evaluation and performance measure plan....
testimonials icon
Health literacy is defined as ‘the degree to which individuals have the capacity to obtain, process, and understand basic health information a...

Other samples, services and questions:

Calculate Price

When you use PaperHelp, you save one valuable — TIME

You can spend it for more important things than paper writing.

Approx. price
Order a paper. Study better. Sleep tight. Calculate Price!
Created with Sketch.
Calculate Price
Approx. price