Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1. Explain the following: infile.seekp (55L, ios::beg); 2. Explain the following: infile.seekg (0L, ios::end); 3. Explain the following: infile.seekg(10L, ios::cur); 4. The structure Car is

1. Explain the following: infile.seekp (55L, ios::beg);

2. Explain the following: infile.seekg (0L, ios::end);

3. Explain the following:

infile.seekg(10L, ios::cur);

4. The structure Car is declared as follows:

struct Car

{

char carMake[20];

char carModel[20];

int yearModel;

double cost;

};

Write a definition statement that defines a Car structure variable initialized with the following data:

Make: Ford

Model: Mustang

Year Model: 1997

Cost: $20,000

Write a structure declaration named Destination, with the following members:

city, a 35 element character array

distance, a Measurement structure

Define a variable, howFar, of type Destination.

5. Write statements that store the following data in the variable you defined above:

City: Baton Rouge

Miles: 375

Meters: 603,375

1. Explain the following: infile.seekp (55L, ios::beg);

2. Explain the following: infile.seekg (0L, ios::end);

3. Explain the following:

infile.seekg(10L, ios::cur);

4. The structure Car is declared as follows:

struct Car

{

char carMake[20];

char carModel[20];

int yearModel;

double cost;

};

Write a definition statement that defines a Car structure variable initialized with the following data:

Make: Ford

Model: Mustang

Year Model: 1997

Cost: $20,000

5. Write a structure declaration named Destination, with the following members:

city, a 35 element character array

distance, a Measurement structure

Define a variable, howFar, of type Destination.

Write statements that store the following data in the variable you defined above:

City: Baton Rouge

Miles: 375

Meters: 603,375

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

More Books

Students also viewed these Databases questions

Question

a valuing of personal and psychological privacy;

Answered: 1 week ago