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
Alexandra [31]
3 years ago
8

Using C, Write a program that reads a series of strings from standard input and prints only those strings beginning with the let

ter 'b'.
Computers and Technology
1 answer:
Mekhanik [1.2K]3 years ago
5 0

Explanation:

/Header file section

#include <stdio.h>

//Program begins with a main function

int main()

{

//Declare variables

char letters[100][20];

int i, num;

//Prompt and read the input from the user

printf("Enter how many series of strings are you entered:");

scanf("%d", &num);

printf("Enter %d strings:\n", num);

for (i = 0; i<num; i++)

 scanf("%s", letters[i]);

//Display those string beginning with letter 'b'

printf("\nThe strings are beginning with the letter \"b\":\n");

for (i = 0; i<num; i++)

{

 //Find start letter is 'b' by using ASCIII

 //(ASCII value of letter 'b' is 98)

 if ((int)letters[i][0] == 98)

  printf("%s\n", letters[i]);

}

return 0;

}

You might be interested in
Fill in the blank with the correct response.
SCORPION-xisa [38]
Higher Resolution i guess it depends on what it’s requiring
3 0
3 years ago
How would you identify communication equipment?
eimsori [14]

Answer

Explanation:

There should be more context to this question but I would say there is a variety of things that could be seen as communication equipment, such as email, telephone, voice message, through mail.

6 0
3 years ago
Which of the following factors will have the greatest impact on your credit score?1. Length of credit history 11. Payment histor
irinina [24]
I believe your payment history would have the greatest impact on your credit score
4 0
4 years ago
Define what is meant by an entity in a data model. How should an entity be named? What information about an entity should be sto
AURORKA [14]

Answer:

Check the explanation

Explanation:

An entity can be a person, place, thing, or even an event about which data is collated and stored. Entities names usually are nouns.

The Entity Data Model (EDM) is an extensive model of the Entity-Relationship model which identifies the conceptual model of the data using a variety of modeling technique. It acan also be termed as a set of concepts that illustrates data structure, regardless of its stored form.

The Information stored or can be stored in a CASE repository regarding an entity includes:

Name

Definition

Special Notes

7 0
3 years ago
In public-key encryption, the two keys–one for coding and one for decoding–are known as ________.
Feliz [49]
Public key and private key  - In public key encryption, a pair of keys is used (public key and private key). The public key can be made available publicly, while the private key is only known  by the owner. The public key is used to encrypt the message, while the private key is used to decrypt the message.
5 0
3 years ago
Other questions:
  • How can cybercriminals harm a person whose personal information they have stolen
    7·1 answer
  • Prove, using mathematical induction, that the given property of the Fibonacci numbers is true [F(n+1)]2 =[F(n)]2+F(n−1)∗F(n+2) f
    5·1 answer
  • Which of the following is a component of slides
    10·1 answer
  • When reading words with a scanner object, a word is defined as ____?
    15·1 answer
  • John travels a lot and he needs to access his documents and services on the go. Which of these technologies allows his to access
    5·1 answer
  • What is the current situation in farming​
    13·2 answers
  • Identify the following verb by number and person by checking on the appropriate boxes.
    15·2 answers
  • What is the most appropriate data type for each of these items?
    15·1 answer
  • Which of the following media forms is the Federal Communications Commission able to regulate content on?
    12·1 answer
  • Treating others with respect, even when they're impolite, is considered
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!