Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

CSCI 14-02 Assignment 4, 25 Points, Due 3/14/19 Using Loops For example people sign u thip, the S.S. Rusty T. Buckett, hires out for dinner

image text in transcribed
CSCI 14-02 Assignment 4, 25 Points, Due 3/14/19 Using Loops For example people sign u thip, the S.S. Rusty T. Buckett, hires out for dinner party cruises A fund raising committee has agreed to pay you $30.00 per person provided that a minimum of 200 up for a moonlight dinner dance cruise. Anxious for business (and to pay your crew), you agree to 200er ticket for EACH additional group of 10 people showing up over the minimm of your price by 50 cents For example: 200 people 210 people 220 people 230 people Ticket Price is $30.00 Ticket Price is $29.50 Ticket Price is $29.00 Ticket Price is $28.50 Compute the ticket price and 100 to 500 (i.e. 100...200, 210, 220, 230, 240, 25.0,.., 4.0,500) or 50 to 230 or 320 to 470. Wherever the user wants to start and stop subject to the maximum carrying capacity profit for each group of passengers starting at N to user stopping point, for example The ship's maximum carrying capacity is 500 passengers. Your program should allow the following: 1. Ask the user to enter a minimum number of passengers (i.e. 1, 30, 50, 150, 255) up to the maximum 2. Ask the user to enter a maximum number of passengers. The Coast Guard has rated this dinner cruise ship at no more than 500 passengers excluding crew 3. Change ticket price (i.e. $20, $15.75, $10.50, $11.45, part of the negotiations?) 4. Ask the user to enter the fixed cost for the cruise (i.e. $2,000, $2,500, $3,550, etc.) 5. Ask the user to enter a discount per ticket per every group of 10 passengers G.c. 0.10,0.25, 0.50, etc.) Check that the Check that the maximum is not more than 500 passengers (same for the minimum) Determine the maximum PROFIT, the number of passengers needed to generate that profit, and the ticket price that will generate that profit. User can execute this any number of times. Logic should ask user if they wish to quit or continue. You will be using some sort of loop to repeat the application possibly multiple times. minimum number of passengers is not greater than the maximum passengers. 8. 9. Algorithms needed: NP is the Number of Passengers TP is the Proposed Ticket Price MP is the Minimum Number of Passengers discount is the amount off per every group of 10 Passengers above the minimum fixed cost is the cost of the cruise to the owner Cost of Ticket TP -((ONP - MP)/10) *discount) Profit- (NP Cost of Ticket)- fixedcost Since you are "incrementing by 10 passengers", you might want to use some sort of a loop. CSCI 14-02 Assignment 4, 25 Points, Due 3/14/19 Using Loops For example people sign u thip, the S.S. Rusty T. Buckett, hires out for dinner party cruises A fund raising committee has agreed to pay you $30.00 per person provided that a minimum of 200 up for a moonlight dinner dance cruise. Anxious for business (and to pay your crew), you agree to 200er ticket for EACH additional group of 10 people showing up over the minimm of your price by 50 cents For example: 200 people 210 people 220 people 230 people Ticket Price is $30.00 Ticket Price is $29.50 Ticket Price is $29.00 Ticket Price is $28.50 Compute the ticket price and 100 to 500 (i.e. 100...200, 210, 220, 230, 240, 25.0,.., 4.0,500) or 50 to 230 or 320 to 470. Wherever the user wants to start and stop subject to the maximum carrying capacity profit for each group of passengers starting at N to user stopping point, for example The ship's maximum carrying capacity is 500 passengers. Your program should allow the following: 1. Ask the user to enter a minimum number of passengers (i.e. 1, 30, 50, 150, 255) up to the maximum 2. Ask the user to enter a maximum number of passengers. The Coast Guard has rated this dinner cruise ship at no more than 500 passengers excluding crew 3. Change ticket price (i.e. $20, $15.75, $10.50, $11.45, part of the negotiations?) 4. Ask the user to enter the fixed cost for the cruise (i.e. $2,000, $2,500, $3,550, etc.) 5. Ask the user to enter a discount per ticket per every group of 10 passengers G.c. 0.10,0.25, 0.50, etc.) Check that the Check that the maximum is not more than 500 passengers (same for the minimum) Determine the maximum PROFIT, the number of passengers needed to generate that profit, and the ticket price that will generate that profit. User can execute this any number of times. Logic should ask user if they wish to quit or continue. You will be using some sort of loop to repeat the application possibly multiple times. minimum number of passengers is not greater than the maximum passengers. 8. 9. Algorithms needed: NP is the Number of Passengers TP is the Proposed Ticket Price MP is the Minimum Number of Passengers discount is the amount off per every group of 10 Passengers above the minimum fixed cost is the cost of the cruise to the owner Cost of Ticket TP -((ONP - MP)/10) *discount) Profit- (NP Cost of Ticket)- fixedcost Since you are "incrementing by 10 passengers", you might want to use some sort of a loop

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Microsoft Visual Basic 2008 Comprehensive Concepts And Techniques

Authors: Gary B. Shelly, Corinne Hoisington

1st Edition

1423927168, 978-1423927167

More Books

Students also viewed these Databases questions

Question

Could you describe how a new bond issue with warrants is valued?

Answered: 1 week ago

Question

What are some of the possible scenes from our future?

Answered: 1 week ago