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
Mrac [35]
4 years ago
9

In c++,

Computers and Technology
2 answers:
disa [49]4 years ago
7 0

Answer:

Check the explanation

Explanation:

using System;

using System.Collections.Generic;

 

namespace Demo

{

   //Written in C# programming language

struct BirthRecord

   {

       public string lastName;

       public string firstName;

       public float length;

       public int pounds;

       public int ounces;

   };

   class Program

   {

       static void Main()

       {

           List<BirthRecord> birthRecords = new List<BirthRecord>(); // List of the birthRecord

 

           BirthRecord birthRecord1 = new BirthRecord(); //Creating Object to first birth record

           birthRecord1.firstName = "Ravi";

           birthRecord1.lastName = "Sankar";

           birthRecord1.length = 10;

           birthRecord1.pounds = 10;

           birthRecord1.ounces = 10;

           birthRecords.Add(birthRecord1); //Adding first record to list object

 

           BirthRecord birthRecord2 = new BirthRecord(); // Creating Object to first birth record

           birthRecord2.firstName = "Vinod";

           birthRecord2.lastName = "Kumar";

           birthRecord2.length = 20;

           birthRecord2.pounds = 20;

           birthRecord2.ounces = 20;

           birthRecords.Add(birthRecord2); //Adding second record to list object

 

           for (int i = 0; i < 1; i++)  //For getting only one record for that i < 1 it will execute only one time

           {

               Console.WriteLine("Last name of the first baby born : " + birthRecords[0].lastName);

           }

 

           Console.ReadKey(); // For waiting result in console.

       }

   }

}

Kindly check the attached image below for the code output.

Verizon [17]4 years ago
6 0

Answer:

See explaination

Explanation:

Line to print the last name of the first baby born

cout<<"The last name of the first baby born is "<<baby[0].lastName<<endl;

You might be interested in
Having plug and play support means you can plug in a device, turn on the computer, and then immediately begin using the device t
fenix001 [56]
<span>True. The owner does not need to install any new drivers for the device to work, and they do not have to let the computer know that a new device has been connected. They simply can plug it in, and it will be ready to use.</span>
4 0
3 years ago
Rock climbing fun html
Delicious77 [7]

Answer:

Ok....? Imma just fill out something more so I can get the points. ☺

5 0
3 years ago
Suppose that the performance measure is concerned with just the first T time steps of the environment and ignores everything the
Jobisdone [24]

Answer:

the first T time steps are a factor in the performance measure. So for instance, if the environment is in state A at time step 1, the performance measure can be different than being in state A at step 2 since the state of the environment in step 1 is relevant to the performance measure in the latter case. Thus as the performance measures can be different, the rational agent may make different actions.

3 0
3 years ago
What are the careers needed to create a video game? Name all the careers involved please.
AURORKA [14]
Audio Engineers
Interpreters and Translators
Video Game Testers
Technical Support Specialists
Marketing Managers
Market Research Analysts
Sales Representatives

6 0
4 years ago
In the 2007/2010 version of Paint, which of the following tools are located in the View tab? (Select all that apply.)
zaharov [31]
The answers are full screen and gridlines.
7 0
4 years ago
Other questions:
  • Methods used to change variables are called ______. equals accessors toString void mutators
    5·1 answer
  • The ____ layer protocols are the rules for implementing end-user services provided by a network. Transport Application Physical
    11·1 answer
  • The Analysis phase of the SDLC examines the event or plan that initiates the process and specifies the objectives, constraints,
    10·1 answer
  • The activities that gather information about the organization and its network activities and assets is called fingerprinting. __
    14·1 answer
  • A Security Policy is: a. How we implement security b. Corporate direction on behavior c. A statement of consequence for failure
    5·1 answer
  • Create a network for a company that sells shoes. Describe the hardware needed and the size of the network (PAN, LAN, WAN) and ma
    6·1 answer
  • Usually, the same software that is used to construct and populate the database, that is, the DBMS, is also used to present ____.
    11·1 answer
  • Describe the forward button​
    7·1 answer
  • I need subscribers plz ​
    15·2 answers
  • Which programming paradigm focuses on abstraction to the level of math and the elimination of side-effects and state based progr
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!