Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PLease help c++ struct supplierType { string name; int supplierID; }; struct applianceType { supplierType supplier; string modelNo; float cost; }; applianceType applianceList[25]; Which of

PLease help c++

struct supplierType

{

string name;

int supplierID;

};

struct applianceType

{

supplierType supplier;

string modelNo;

float cost;

};

applianceType applianceList[25];

Which of following statements correctly initializes the cost of each appliance to 0?

1. applianceList.cost = 0;

2. applianceList.cost[25] = 0;

3. for (int j = 1; j < 25; j++)

applianceList.cost[j] = 0;

4. for (int j = 0; j < 25; j++)

applianceList.cost[j] = 0;

Thanks!

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

Practical Issues In Database Management A Refernce For The Thinking Practitioner

Authors: Fabian Pascal

1st Edition

0201485559, 978-0201485554

More Books

Students also viewed these Databases questions

Question

Knowledge of process documentation (process flow charting)

Answered: 1 week ago