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
sweet-ann [11.9K]
3 years ago
11

Write a program that opens a text file and reads its contents into a queue of characters. The program should then dequeue each c

haracter and have a counter to see how many of the characters are actually letters. This number should be printed to the console for the user

Computers and Technology
1 answer:
dangina [55]3 years ago
4 0

Answer:

Please see explaination for code and attachment for output

Explanation:

The program source code.

#include <iostream>

#include <fstream>

using namespace std;

int main()

{

ifstream fs("xy.txt");

char ch;

string str=""; // for storing characters

while(fs>>ch)

{

str=str+ch; // appending characters to string

}

int i=0,count=0;

while(str[i]!='\0')

{

if((str[i]>=65 && str[i]<=90)||(str[i]>=97 && str[i]<=122))

{

count++;

}

i++;

}

cout<<"No. of Alphabets:"<<count<<endl;

}

xy.txt:

Check attachment for output and code on screen.

You might be interested in
Ill give alot of points if you answer: How do I get a 100 dollar ps4
stepladder [879]
Uh how do you get a little blue box in a sandwich
8 0
3 years ago
Read 2 more answers
You have installed a point-to-point connection using wireless bridges and Omni directional antennas between two buildings. The t
kozerog [31]

Answer and Explanation:

Omnidirectional antenna are those antennas which receives the signals from multiple directions equally.These are the antennas that cannot  get the signal from a particular direction thus gives the low throughput.

To get high throughput, directional antennas should be installed because they receive the signal from a particular direction only .Thus the signal received from these antenna work for a certain area.Example-Television antenna at homes are directional antennas names as Yagi-uda antennas.

3 0
4 years ago
In three to four sentences, describe why CEOs (the chief executive officers, that is, the leaders of large companies) make very
mixer [17]
Well, CEOs are on the top of the food chain. It takes a lot of work and ambition to become one, and once they are one, <span>CEOs accept a huge amount of responsibility - that means having to take blame if things go wrong and </span><span>having more tasks to complete such as having to attend numerous meetings, make decisions. They are also on the board of directors.</span>

Assistants do not have to do as much, they likely won't have that much responsibility or experience, their tasks revolve around ensuring meetings are scheduled and performing other ad-hoc duties.
5 0
4 years ago
FILL IN THE BLANK
Gwar [14]

Answer:

search

Explanation:

4 0
3 years ago
Hank is the network administrator responsible for managing the web server cluster for an e-commerce company. He’s worried about
statuscvo [17]

Answer: ....

If one load balancer fails, the secondary picks up the failure and becomes active. They have a heartbeat link between them that monitors status. If all load balancers fail (or are accidentally misconfigured), servers down-stream are knocked offline until the problem is resolved, or you manually route around them.

Explanation:

Load balancing is a technique of distributing your requests over a network when your server is maxing out the CPU or disk or database IO rate. The objective of load balancing is optimizing resource use and minimizing response time, thereby avoiding overburden of any one of the resources.

The goal of failover is the ability to continue the work of a particular network component or the whole server, by another, should the first one fail. Failover allows you to perform maintenance of individual servers or nodes, without any interruption of your services.

It is important to note that load balancing and failover systems may not be the same, but they go hand in hand in helping you achieve high availability.

3 0
3 years ago
Other questions:
  • Building relationships during your career exploration is called
    9·2 answers
  • Binary code what does this mean I was sick so I don't under stand
    7·2 answers
  • What is the best strategy to avoid paying interest on your credit card
    8·1 answer
  • I swear I’m hopeless....
    8·1 answer
  • If you need to grasp the topic of a document quickly, which strategy can you follow? A. guessing from context B. paraphrasing C.
    7·2 answers
  • Fear and superstition were swept away as scientists began to understand natural phenomena, leading to a shift in content for gra
    5·1 answer
  • Universal Containers uses a custom object within the product development team. Product development, executives, and System Admin
    11·1 answer
  • Write a Python program that accepts a year written as a four-digit Arabic (ordinary) numeral and outputs the year written in Rom
    8·1 answer
  • Schuyler is making a list of the parts of a computer that are software. Which of the following will be on the list?
    13·2 answers
  • How many basic elements of QBASIC are there
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!