Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create program called ChildcareCharges that accepts the age of a child and the number of days per week the child will attend daycare.Return the cost.Continue

Create program called ChildcareCharges that accepts the age of a child and the number of days per week the child will attend daycare.Return the cost.Continue to prompt for ages and number of days until a sentinel value of 999 is entered for the age of a child.

Days per week Age in Years 1 2 3 4 5 0 30 60 88 115 140 1 26 52 70 96 120 2 24 46 67 89 110 3 22 40 60 75 88 4 20 35 50 66 84

To save time, you can use array declaration and initialization below:

int rates[][] = {{30, 60, 88, 115, 140},

{26, 52, 70, 96, 120},

{24, 46, 67, 89, 110},

{22, 40, 60, 75, 88},

{20, 35, 50, 66, 84} };

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

Students also viewed these Programming questions