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
gregori [183]
3 years ago
12

Why is the given C++ program is not working?

Computers and Technology
1 answer:
Jobisdone [24]3 years ago
3 0

Answer:

Please find the edited program below:

#include<iostream>

#include <stdio.h>

using namespace::std;

int main()

{

char ch;

cout<<"Enter any letter: ";

ch=getchar();

if(ch=='a' || ch=='e' || ch=='i' || ch=='o' || ch=='u'|| ch=='A' || ch=='E' || ch=='I' || ch=='O' || ch=='U')

cout<<"Vowel";

else

cout<<"Consonant";

return 0;

}

Explanation:

We cannot input char type using cin, we need to use getchar, and it is under header file stdio.h. Also, for comparing we need to use == and not =. And corrrect way of including std is using namespace::std;

You might be interested in
A software EULA is an agreement related to which of the following?
densk [106]

A software EULA is an agreement related to the terms of use of the software

the terms of use of the software

<u>Explanation:</u>

EULA stands for End User License Agreement. It can be defined as an agreement related to the terms of use of the software. EULA provides the user with all the details and any restrictions that have been imposed on the application by the developer.

In order to use the software, the user has to agree with all the terms and conditions specified in the EULA. The most common restriction imposed on an application/software is that it shouldn't be shared with anyone, in proprietary software.

7 0
3 years ago
Read 2 more answers
Help plz technological wuestion
Alex787 [66]
The first answer is the correct one
8 0
3 years ago
What at some advantages of creating a powerpoint?
Umnica [9.8K]
 <span>A power point presentation is designed as a presentation tool for any individual that needs to present information in a basic or through the use of a template and/or animated sequences with the flow of information, whether images, [ or text boxes as well as sound if speakers are present; all of which is used to make it more interesting and convey to people. Power point is used for all types of reasons, either for a selling tool such as sales & marketing; academic presentation of certain tasks and pieces of research, et cetera. it can be exported to a PDF or another format to allow further manipulation; it can be saved as a package onto a CD/DVD if you are submitted the presentation by disc. Depending on the version you use, you can customise the way you can present the information itself. Due to the flexibility of the application, if you are for instance using another graphic application to create images and special effects; you can normally drag and drop the content straight into the program without having to import it through the File menu options of Power Point, but again it depends on the version.</span>
8 0
3 years ago
Validation ensures that a website looks good.<br> True or False
Nezavi [6.7K]
The answer would be false. Validation doesn't have to do with a website looking good, validation is just checking the quality of the logic and backing up a statement with information that proves a statement to be true
8 0
3 years ago
To back up your database, click the _____________to display Backstage view, click the Save &amp; Publish tab in the navigation b
Nuetrik [128]

Answer:

The answer is "File Tab".

Explanation:

In the database, restore is a database recovery process mechanism, that maintains administrative environment, configuration and stored software data. In the case of primary computer crashes, it helps to construct a new instance or to clone the database.

  • In this a file tab is an option, when we click on it is provides a backstage view of the file window, that deals with repositories and feature grades.
  • It helps you to do something in a database when you can make the situation within the database by putting commands on some other tabs on the Ribbon, that's why the file tab is the correct answer.
4 0
3 years ago
Other questions:
  • 24 bit or 16 million colors is often called?
    7·1 answer
  • Which organization has published more than 300 web standards
    7·1 answer
  • A student has created a Book class. The class contains variables to represent the following.An int variable called pages to repr
    11·1 answer
  • Make a program (C++). Sum of a 4 digits number and eliminating last digitsȘ
    13·1 answer
  • What can u access various sites on
    12·1 answer
  • Which of the following is NOT a useful strategy when making an informed purchase ?
    7·1 answer
  • You can use _____ to track the state of each user in the application.
    8·1 answer
  • How many basic elements of QBASIC are there
    14·1 answer
  • Jeremy knows that there is a keyboard shortcut in Word, but he does not know what it is. What should Jeremy do to find out what
    14·1 answer
  • Edra kinsman is the sales manager for narbonne suites hotel chain, which has locations in washington, oregon, idaho, and montana
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!