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
If you are working in a word-processing program and need to learn about its features, the best place to get assistants is from t
Hoochie [10]

Answer:

A

Explanation:

plz mark me brainlies

7 0
3 years ago
Read 2 more answers
Int x = 25;
Olin [163]

Answer:

printer

Explanation:

4 0
3 years ago
Here are a list of attributes that either belong to user model or system model. Please identify which attribute(s) belong to use
OverLord2011 [107]

Answer:

Explanation:

Before answering this question we need to first know the differences between System Mode and User Mode.

System Mode mainly runs code and at the same time overlooking the user's privileges and permissions.

the attribute(s) that belongs to the user model includes:

User Mode

  1. User programs typically execute in this mode
  2. Less-privilege mode

while the attribute(s) that belongs to the system model includes:

System Mode

  1. Also referred to as control mode or kernel mode
  2. Kernel of the operating system
  3. More-privilege mode

8 0
3 years ago
What materials could I use to make diy headphones and game controller (doesn't have to work) it needs to be handmade so no store
Veseljchak [2.6K]
The materials you could use to make DIY headphones are the following:
Headband - A headphone has a headband used to put over your head. You can use a normal headband for this.
Small Tin Cans - This can be used for the housing of the speaker.
Foam - The speaker has earpads. You can use foam for this.
Wire with jack - You can use a wire with a jack from an old broken earphone or headphone.
Speakers - This one is hardest and the most important part of the headphone. You can look up how to make one using magnets and copper wire or you can just recycle an old pair of working speakers that fit in tin can housing.
4 0
3 years ago
In 2009 to 2010, how many social network users were reported as being victims of online abuse?
Dafna1 [17]
The answer is B because being victims of online abuse is not important
7 0
3 years ago
Read 2 more answers
Other questions:
  • What is printed by the following program provided all necessary standard header files are included? Explain each line of the out
    10·1 answer
  • A teacher wants a program to give extra points to students who fail a test. Write a Python program to do the following: (a) Ask
    5·1 answer
  • What is the most common password on the internet?
    11·2 answers
  • Determine the number of cache sets (S), tag bits (t), set index bits (s), and block offset bits (b) for a 1024-byte 4-way set as
    5·1 answer
  • They convert energy from the Sun into usable chemical energy by the process of photosynthesis. They are
    11·1 answer
  • Devon keeps his commitments, submits work when it's due, and shows up when scheduled. What personal skill does Devon
    15·2 answers
  • Choose the word that matches each definition. : processed facts, how the output is used for making decisions : action performed
    12·2 answers
  • How do science, mathematics, and technology each influence engineering
    9·2 answers
  • What is table,form,query and report ?short ans​
    13·1 answer
  • Could anyone beat my typing?<br><br> https://keyma.sh/custom/33K7C
    5·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!