Question

1. You have an array of 3 values: 'Honda','Accord','7.9 km/liter' The name of the array is:...

1. You have an array of 3 values: 'Honda','Accord','7.9 km/liter'

The name of the array is: gift
Assign each of the entries in the array to separate variables.
Use these variables to create a new string: "Make: Honda Model: Accord Fuel Efficiency: 7.9 km/liter"

2. Describe the purpose of the following directories:

  1. Public
  2. Program Files (x86)

3. Explain the difference between a filter and a providers. Give an example of each and explain what it does.

Homework Answers

Answer #1

Ques 1

1. You have an array of 3 values: 'Honda','Accord','7.9 km/liter'

The name of the array is: gift
Assign each of the entries in the array to separate variables.
Use these variables to create a new string: "Make: Honda Model: Accord Fuel Efficiency: 7.9 km/liter"

ANS

#include<iostream>
#include<string>

using namespace std;

int main(){
string gift[3]{"Honda","Accord","7.9 km/liter"}; //array named gift having three values
  
// assigning each value to seperate variables


string a = gift[0];
string b = gift[1];
string c = gift[2];
  
//using the variable to create a string


cout <<"'Make: " << a << " Model: " << b << " Fuel Efficiency: "<< c << endl;
  
  
return 0;
  
}

Ques 2

Describe the purpose of the following directories:

  1. Public :-  It provides an easy way to share between users of the same computer and users in the same homegroup without requiring a lot of set up on the part of the user who wants to share. Quick and easy sharing is the ultimate purpose of a public folder in any application that it is implemented in.
  2. Program Files (x86) :- Starting with Windows Vista, the 64-bit versions of Windows have two Program Files folders. The regular Program Files folder holds 64-bit applications, while "Program Files (x86)" is used for 32-bit applications. Installing a 32-bit application in a PC with a 64-bit Windows automatically gets directed to Program Files (x86). See Program Files and x86.

Ques 3 Sorry but I am unable to understand the question, it will be helpful if you give more information regarding the topic...

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT