Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Q1 , Q2 ,Q3 & Q4.. please Worksheet Arravs Q1. Write a p number of days that the te temperatures from the keyboard and place

Q1 , Q2 ,Q3 & Q4.. please image text in transcribed
Worksheet Arravs Q1. Write a p number of days that the te temperatures from the keyboard and place them in an array. Compute the average temperature and then count and display the number of days on rogram in a class NumberAboveAverage that counts the mperature is above average. Read ten which the temperature was above average. e a program in a class CountFamiles that counts the number of teger k from the k values Q2. Wr families whose income is below a certain value. Read an in keyboard and then create an array of double values of size k. Read representing family income from the keyboard and place them into the array. Find the maximum income among these values. Then count the families that make less than 10 percent of this maximum income. Display this count and the incomes of these families rit Q3. Write a program in a class FlowerCounter that computes the cost of flowers sold at a flower stand. Five kinds of flowers-petunia, pansy, rose, violet, and carnation- are stocked and cost, respectively, 50, 75e, $1.50, 50c, and 80c per flower. Create an array of strings that holds the names of these flowers. Create another array that holds the cost of each corresponding flower. Your program should read the name of a flower and the quantity desired by a customer. Locate the flower in the name array and use that index to find the cost per stem in the cost array. Compute and print the total cost of the sale. Q4. Write a program in a class CharacterFrequency that counts the number of times a digit appears in a telephone number. Your program should create an array of size 10 that will hold the count for each digit from 0 to 9. Read a telephone number from the keyboard as a string. Examine each character in the phone number and increment the appropriate count in the array Display the contents of the array

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

Step: 3

blur-text-image

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

Repairing And Querying Databases Under Aggregate Constraints

Authors: Sergio Flesca ,Filippo Furfaro ,Francesco Parisi

2011th Edition

146141640X, 978-1461416401

More Books

Students also viewed these Databases questions

Question

3. Evaluate your listeners and tailor your speech to them

Answered: 1 week ago