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
Dominik [7]
3 years ago
15

A phonebook typically lists the name, address, and telephone number of everyone living in an area. Write code defining a structu

re template that could be used to store this data. Assume that a name and address will be no more than 30 characters each, and that a telephone number has exactly seven digits.
Computers and Technology
1 answer:
nika2105 [10]3 years ago
4 0

Answer:

#include <stdio.h>

struct Phonebook {

   char name[30];

   char address[30];

   int phone_number;

};

int main()

{

   struct Phonebook pb = {"John Josh", "Newyork", 5551234};

   printf("Name: %s \n", pb.name);

   printf("Address: %s \n", pb.address);

   printf("Phone Number: %d \n", pb.phone_number);

   return 0;

}

Explanation:

- Define a struct called <em>Phonebook</em> that has two character arrays to store the value for name and address, and an integer value to hold the phone number

- In the main, define <em>pb</em> to represent a person and assign default values

- Print the name, address and phone number of the <em>pb</em> (person)

You might be interested in
What is one advantage of inserting a page number field in your document instead of inserting the actual page number?
Tanzania [10]

It is faster and saves time

3 0
3 years ago
In Java :
Natali5045456 [20]

Answer:

The code to this question can be given as:

Code:

//define code.

//conditional statements.

   if (Character.isLetter(passCode.charAt(0))) //if block

   {

       System.out.println("Alphabetic at 0"); //print message.

   }

   if (Character.isLetter(passCode.charAt(1))) //if block

   {

       System.out.println("Alphabetic at 1"); //print message.

   }

Explanation:

In this code, we define conditional statement and we use two if blocks. In both if blocks we use isLetter() function and charAt() function. The isLetter() function checks the inserted value is letter or not inside this function we use charAt() function that checks inserted value index 1 and 2 is the character or not.

  • In first if block we pass the user input value and check the condition that if the inserted value is a character and its index is 0 so, it will print Alphabetic at 0.
  • In second if block we pass the user input value and check the condition that if the inserted value is a character and its index is 1 so, it will print Alphabetic at 1.
5 0
3 years ago
Which of the following relationships between variables could be shown with a scatter plot graph?
Wittaler [7]

Link to the Plot, plz.

8 0
3 years ago
What would you enter at the command prompt on a Linux system to display the IP addressesand the subnet masks assigned to each ne
noname [10]

Answer:

The ifconfig command.

Explanation:

A linux network system, like cisco networking devices, uses the linux operating system, in which it configuration differs from that of the cisco. It is very essential in network administration of have the basics in linux systems.

The network administrator uses the "ifconfig" command to display the IP addresses and subnet masks assigned to each network interface on a linux system.

5 0
3 years ago
Write a summary, on the requirements for a home automation IoT network discussing whether Wi-Fi is the best network option, by c
Wewaii [24]

Answer:

following are the answer to this question:

Explanation:

In the given question, firstly we focus solely on the smart homes IoT systems criteria, that can access the whole IoT notion throughout two ways, which be defined as follows:

Initially, whenever it links with the smart home includes ventilation, flower arranging, smart house appliances, device, and the designers will use search engine support, etc. all of this, including several, includes certain components like sensors, hubs, doorbells, fire detector.

In the second way the cloud control devices described from first are provided, however, manufactures should be recorded here through cloud computing, and when the process, entirely controlled, can easily be managed remotely, because it is first performed.

The Zigbee is a great priority when it comes to energy usage due to the extremely reduced wattage or battery capacity, and when it comes with wifi capacity, the best solution is Zigbee and it is too expensive with memory footprint 9 because this is also a very big one) It also allows all of the implements to enter even before wifi permits.  

Even so, in wifi, we will not ever realize if it will fall to the ground, however in ZigBee and at the start, they only have to pay tremendous like wifi but it has some repayment options, that lead the user can decide whatever they want. It can pay for our consumption levels.

5 0
3 years ago
Other questions:
  • A. STOP: What is a technology habit you practice today that you now realize will not help you to be successful? Explain why it’s
    10·2 answers
  • Individuals with desirable traits will be __________ to have young that survive than individuals without these traits. (2 points
    5·2 answers
  • Modify the definition of the throttle class on page 35, to create a new throttle ADT, which allows the user of the ADT to specif
    6·1 answer
  • Informatyka klasa 7 daje naj
    10·1 answer
  • The labels on the tab buttons on the Driver tab of the Windows Device are Driver Details, Update Driver, Roll Back Driver, Unins
    12·1 answer
  • What are the 6 external parts of a computer system
    5·1 answer
  • What is MS Paint ?<br>Computer <br>short answer​
    14·2 answers
  • Plz answer -----------
    11·2 answers
  • When adopting and implementing a Software as a Service (SaaS) platform such as Salesforce for your business, which responsibilit
    7·1 answer
  • Before creating a graphic, you should _____. Select all that apply. A. export it as an SVG file B. consider whe
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!