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
What is the method for removing a domain controller in windows server 2012 r2?
-Dominant- [34]
Basically, you're going to use the Remove Roles and Features wizard.  However, there's a few more commands you can log into your computer to remove the controller as well.  You can use the dcpromo.exe command, the adprep.exe command, and then you can also alter the domain controllers through ADD roles and features wizard.
8 0
3 years ago
Consider the following incomplete code segment, which is intended to increase the value of each digit in a String by one. For ex
arlik [135]

The instruction that should replace /* Missing Loop Header */ so that the code segment works as intended is (c)  counter < num.length()

<h3>Loops</h3>

The program is an illustration of loops (the while loop)

While loops are program statements that are used to perform repeated operations

For the string to return 23456, the while loop body must be repeated as long the counter is less than the length of the string num

Hence, the missing loop header is counter < num.length()

Read more about loops at:

brainly.com/question/15683939

7 0
3 years ago
our client, Rhonda, has come to you for advice. Rhonda has recently graduated from college and has a good job with a large compa
Radda [10]

Answer:

See explaination for how to manage her personal risk

Explanation:

Personal risks can be described as anything that exposes you to lose of money. It is often connection to financial investments and insurance.

The basic things She can do to manage her personal risks are:

1. Saving:

Savings in much ways drastically reduces the percentage of risks and help you build confidence. Savings can help Rhonda manage her personal risks as savings helps one become financially secure and provide safety in case of emergency.

2. Investing:

After savings comes the major process, which is investment. It is rightly said, savings without invested proper is vain. Investment not only gives you returns or generates more profits but also ensures present and future long term financial security.

3. Reduce expenses:

A common man's expenses can never finish except it is controlled. Reduction in daily expenses can give a hike in savings and increase return on investment. Prompt planning can help cut in expenses.

5 0
3 years ago
How to create drop down list in excel with multiple selections.
Art [367]

Answer: <em>Select the cell or cells you want the drop-down list to appear in.</em>

<em>Click on the Data tab on Excel's ribbon.</em>

<em>Click on the Data Validation button in the Data Tools group.</em>

<em>In the Data Validation dialog, in the Allow: list select List.</em>

<em>Click in the Source: box.</em>

<em />

<em></em>

<em />

8 0
3 years ago
Read 2 more answers
Which keyboard shortcut can you use to copy data from a cell? HURRY UP PLZ RIGHT NOW HURRY.
Romashka-Z-Leto [24]
The keyboard shortcut used to copy data from a cell is A.) Ctrl + c command +C

I hope this helped!! :)
7 0
3 years ago
Read 2 more answers
Other questions:
  • In what way would web-based applications be useful to organizations?
    8·1 answer
  • If a cheetah covers 155 meters in 5 seconds, at what speed is the cheetah running?
    14·2 answers
  • When a packet with the code is transmitted, it is received and processed by every machine on the network. this mode of operation
    12·1 answer
  • When you don't have enough room to stop, you may _______ to avoid what's in front of you. A. speed up B. steer away C. brake
    7·2 answers
  • a limited-access expressway. A)allows vehicles to enter or exit only at certain place.B) does not permit trucks or buses.C)has n
    9·1 answer
  • Select the appropriate APA guidelines when typing a research paper.
    11·1 answer
  • Julie is purchasing new shoes on a website for her favorite store. Which of the following would indicate that a website is a sec
    6·1 answer
  • What is 11100111 to decimal form?
    9·2 answers
  • how does the use of data abstraction manage complexity in program code? how does using lists make a program easier to develop an
    5·1 answer
  • A department store maintains data on customers, products, and purchase records in three tables: customer, product, and purchase.
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!