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]
2 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]2 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
Something the user knows (ID and password); something the user has (such as a smart card, which is a credit card device storing
Vlad1618 [11]

Answer:

Secure Authentication involves a combination of the following three information

Explanation:

Generally, it is important that users have access to secure sources of information or data. These data will be used by the users to get access to their platform such as account details. The user should also be the only person that has access to his or her vital information. This should not be disclosed to any other person.

8 0
3 years ago
Technician A says that wheel speed sensors are a highly probable cause of illuminated EBC warning lamps. Technician B says that
Blababa [14]

Technician A because

3 0
2 years ago
Which of the following best meets the requirements of a strong password?
Hoochie [10]

Answer:

having a capital and lower case letters and a special characters and numbers.

Explanation:

it should be hard but easy enough to remember and no one will know

6 0
3 years ago
Read 2 more answers
Bye guys imma k.ill myself for real this time.
oksano4ka [1.4K]

Answer:

bro no- why?

Explanation:

7 0
2 years ago
Read 2 more answers
Given three variables, a, b, c, of type double that have already been declared and initialized, write a statement that prints ea
mihalych1998 [28]

Answer:

The statement is written in Java.

  1. System.out.printf("%.5f %.5f %.5f",a,b,c);

Explanation:

Presume that there are three variable a, b and c which have already been declared and initialized with 4.014268319, 14309, 0.00937608 respectively.

To print each of the value with 5 digits to the right of the decimal point, we can use printf() method. We create a format specifier %.5f which is a placeholder of a floating point value. The .5 will specify five digits to the right of the decimal point.

We just create three similar format specifiers ( one for variable a, b, and c, respectively) and include them into printf() method. This will print the output as follows:

4.01427 14309.00000 0.00938  

6 0
3 years ago
Other questions:
  • Will the Python code below print something? And will it terminate?
    9·1 answer
  • A _____ is a network that uses multiple access points to link a series of devices that speak to each other to form a network con
    10·1 answer
  • Write a function listLengthOfAllWords which takes in an array of words (strings), and returns an array of numbers representing t
    14·1 answer
  • The _______ of a secondary storage device indicates how much data the storage medium can hold.
    13·1 answer
  • 17.
    15·1 answer
  • 5. A Disk defragmenter tool does what to a computer HDD?
    6·1 answer
  • What is the main difference between a peripheral device and other types of devices? Choose the best answer.
    12·1 answer
  • Mingji is working to transfer photos from her digital camera to her computer. While
    11·1 answer
  • Pls awnser if awnser is wrong I will unmark brainliest
    5·1 answer
  • What is a photographic print made from a negative image?
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!