Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

4 15to pts) write a protram that reads in daily climate informwtion into Dahormats for the weather station and then calcuat information for them lser

image text in transcribed

4 15to pts) write a protram that reads in daily climate informwtion into Dahormats for the weather station and then calcuat information for them lser sample ov pvt belowi Each day should have a name, rantal and a temperat struttures The program outp the averav store the items into anfall, eve day with the lowest tempersture, and the day with the highest fanfall thrues variable of the typs Daincimate which has Book data should be strired in A name string) rainfall temperature There are 3 days. Use sn arran with 3 elements ofthe datatype Daircamate- 1 Read the item informstion into the structure array from the console. calculate the average rsintall of all three dar 3, Find the index of the lowest temperature. 4. Find the index of highes Day 81 znter temperature Day 2 Enter day nama Inter raints Inter temperature: 70 Day 3 inter day mane Enter rainfall inter temperature: 95.4 Average 6.33 Thureday temperature of 95.40 on rainfall of 2.50 on WRITE your name in a block or inline comment at the top of your progra PRINT and attach a copy of your source code and output to this worksheet UPLOAD your source code as lab12.cpp to my website

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

DB2 Universal Database V7.1 Application Development Certification Guide

Authors: Steve Sanyal, David Martineau, Kevin Gashyna, Michael Kyprianou

1st Edition

0130913677, 978-0130913678

More Books

Students also viewed these Databases questions