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
777dan777 [17]
3 years ago
8

Write a c++ program that reads a word and prints the number of syllables in the word. For this exercise, assume that syllables a

re determined as follows: Each sequence of vowels a e i o u y, except for the last e in a word, is a vowel. However, if that algorithm yields a count of 0, change it to 1. For example, Word Syllables
Harry 2
hairy 2
hare 1
the 1
Computers and Technology
1 answer:
Dvinal [7]3 years ago
8 0

Answer:

Explanation:

#include "stdafx.h"

#include <iostream>

#include <string>

using namespace std;

int main()

{

char word;

int count = 0;

cout << "Please enter the word from which you want to check syllables: ";

cin.get(word);

cout << "Vowels: ";

while (word !=)<<endl;

{

 cin.get(word);

 switch (toupper(word))

 {

 case 'A': cout << word << ", ";

  count++;

  break;

 case 'I': cout << word << ", ";

  count++;

  break;

 case 'O': cout << word << ", ";

  count++;

  break;

 case 'U': cout << word << ", ";

  count++;

  break;

 case 'Y': cout << word << ", ";

  count++;

  break;

 }

}

if (cin.get(word))

{

 word == 'AI';

 word == 'AU';

 word == 'EA';

 word == 'EE';

 word == 'IE';

 word == 'OA';

 word == 'EO';

 word == 'OI';

 word == 'OO';

 word == 'OU';

 word == 'UI';

 count--;

}

 

cout << "total number of " << count << " syllables in your word are:" << endl;

return 0;

}  

You might be interested in
Hi guys, Im making a game. I want to make a collision event, but what is the code for making the wall and the box collide. I rea
professor190 [17]

Answer:

i think its 3337

Explanation:

7 0
3 years ago
How will advertising and communications change as technology improves?????? HELP PLEASE :0 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
drek231 [11]

Technology changes advertising and communications by increasing the outreach of people that will get the message, and increasing the speed at which they get the message. Which in turn makes the advertising more relevent because they can release more product to a wider audience during a specific time period.


6 0
3 years ago
Convert each of the fo" wing base ten representations to its equivalent binary form a. 6 b. 13 C. d. 18 e. 27
asambeis [7]

Answer:

6=110

13=1101

18=10010

27=11011

Explanation:

A decimal number is converted to binary number by constantly dividing the decimal number by 2 till the number becomes zero and then write the remainders in reverse order of obtaining them.Then we will get our binary number.

I will provide you 1 example:-

18/2 = 9   the  remainder =0

9/2 = 4    the remainder =1

4/2 = 2    the remainder =0

2/2 = 1     the remainder =0

1/2 = 0     the remainder =1

Writing the remainder in reverse order 10010 hence it is the binary equivalent of 18.

6 0
3 years ago
Lionbridge theory test
marishachu [46]
What about it kidddddd
4 0
3 years ago
Read 2 more answers
Jim has just purchased two new SCSI hard disk drives and a controller card for them. He properly installs the hardware in his ma
yawa3891 [41]

Answer:

  • Create partitions on each hard disk drives.
  • Mount the partition created on each hard drive so they are accessible by the the operating system.
  • Format the partitions created with a filesystem recognized by Linux.

Explanation:

Having purchased the two new SCSI hard disk drives with the controller cards for each and installed them properly, before using them for data storage and retrieval he must first use the fdisk command to create one or more partitions on each of the hard disk drives then mount any partitions created on the two hard drives so that they are accessible by the operating system before then proceeding to format any partitions created with a valid filesystem recognized by Linux.

4 0
3 years ago
Other questions:
  • Need answers for 11&amp;12. Due today. Thanks.
    14·1 answer
  • To add text to a blank slide layout, _____.
    8·2 answers
  • Which of following allows you to share a file with someone that is too large to send via e-mail?
    5·1 answer
  • The set of instructions that directs the computer to perform a variety of tasks is known as a
    9·1 answer
  • An OS X backup utility that automatically backs up files to a dedicated drive that is always available when the computer is turn
    6·1 answer
  • Use a switch statement to display "one" if the user has entered 1, "two" if the user has entered 2, and "three" if the user has
    14·1 answer
  • John is runnig his Database application on a single server with 24 Gigabytes of memory and 4 processors. The system is running s
    6·1 answer
  • When adjusting the aperture, an F-stop of F32 lets in more light then a setting of F8
    10·1 answer
  • Choose the response that best completes the following statement.
    14·2 answers
  • What service determines which resources a user can access along with the operations that a user can perform?.
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!