1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
nekit [7.7K]
2 years ago
7

Each student has a record on a file consisting of the following data: Student last name, Student ID (numeric), GPA (a decimal nu

mber), major (a 3 digit code). a. Define a structure that could be used to process this data record. b. Declare an instance of this structure. c. Write ONE cout statement to show the Student name on the screen. HTML EditorKeyboard Shortcuts
Computers and Technology
1 answer:
slavikrds [6]2 years ago
7 0

Answer:

#include<iostream>

using namespace std;

struct student {

   string name;

   int id;

   float gpa;

   int major;

};

int main() {

   student student1;

   student1.name="Patil";

   student1.id=1;

   student1.gpa=9.80;

   student1.major=123;

   cout<<"First student last name: "<<student1.name;

}

Explanation:

A struct is a container or data structure in C and C++ that holds data that describes or represents an object. It is defined with the struct keyword. Just like a class constructor method, the struct is called with the struct name and the instance name of the struct.

The student struct above is used to create an instance of students registered in a school. The first student struct instance is the 'student1'.

You might be interested in
Which one of the following is not possible to view in the debug logs?
Usimov [2.4K]

Answer:

Formula field calculations

Explanation:

We can use debug logs to track events in our company, these events are generated if active users have trace indicators.

A debug log can register information about database operations, system processes and errors, in addition, we can see Resources used by Apex, Workflow Rules, Assignment Rule, HTTP calls, and Apex errors, validation rules. The only one we cannot see is Formula field calculations.

8 0
3 years ago
A Ground Fault Circuit Interrupter (GFCI) works by comparing the amount of current going to and returning from equipment along t
Shtirlitz [24]

As the name states, during a ground-fault (when the current going out is significantly different than the current going in) the GCFI interupts the current.  Usually by a switch of some sort.  (Pushing the "test" button produces that click, and cuts off the current)

7 0
3 years ago
Read 2 more answers
What is the name of the nearest major galaxy to Milky-Way ?
nika2105 [10]
The Andromeda Galaxy would be my answer.
3 0
3 years ago
What options are available for storing backups, physically?
RUDIKE [14]

The options are available for storing backups, physically are:

  • In both on site and off site,, a person can backup data to a given system that is located on-site, or the backups can be sent to any  remote system that is off-site.

<h3>What is a backup?</h3>

This is known to be a device that helps to save information or data temporarily or permanently.

Note that in the above, The options are available for storing backups, physically are:

  • In both on site and off site,, a person can backup data to a given system that is located on-site, or the backups can be sent to any  remote system that is off-site.

Learn more about backups from

brainly.com/question/17355457

#SPJ12

7 0
1 year ago
Which service uses a broadband connection?
Sidana [21]

Answer:

d

Explanation:

because all in one question form

5 0
3 years ago
Other questions:
  • How to reset your password if you changed your email and dont remember password?
    6·1 answer
  • What does TIA stand for?
    7·2 answers
  • A tower or mini tower pc is a type of all- in -one unit true or false
    9·2 answers
  • Which of the following terms describes surgery through a small incision in the abdomen?
    11·1 answer
  • Which is a copyright
    13·2 answers
  • Which magazine introduced the first microcomputer kit for the mits altair in its january 1975 issue?
    8·1 answer
  • Discuss how the accessibility of television has changed over time
    7·1 answer
  • A solid understanding of __________ is the foundation of verbal communication
    7·1 answer
  • Whois the person start programming​
    13·1 answer
  • The sameNumber method checks to see if the number of words in the phrase, numwords, is the same number of words contained in the
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!