Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

  • Write a program that declares an integer in main() functions. One function inputs a value in the variable defined in the main() function. The second function doubles the value of that variable

Modify the codes given below so that the program is able to display the number of digits and alphabets

entered by the user. Use function to display it.

#include<iostream>

using namespace std;

int main()

{

char input;

for(int counter = 0; counter < 10; counter++)

{

cout<<"Enter a symbol: ";

cin>>input;

}

return 0;

}


Modify the given program so that the program is able to calculate and display the number of male and

female employees. Use a function name displayGender() to display counter number of gender.

#include<iostream>

using namespace std;

int main()

{

char name[30];

char gender;

for(int counter = 0; counter < 5; counter++)

{

cout<<"Name of the employee: ";

cin>>ws;

cin.getline(name, 30);

cout<<"Gender of the employee (M / F): ";

cin>>gender;

}

return 0;

}


QUESTION 2

Modify the codes given below so that the program is able to display the number of digits and alphabets entered by the user. Use function to display it.


  #include<iostream>

using namespace std;

int main() {

char input;

for(int counter = 0; counter < 10; counter++) {

      cout<<"Enter a symbol: ";

      cin>>input;

}

return 0; 


QUESTION 1


Modify the given program so that the program is able to calculate and display the number of male and female employees. Use a function name displayGender() to display counter number of gender.


  #include<iostream>

using namespace std;

int main() {

  char name[30];

  char gender;

for(int counter = 0; counter < 5; counter++) {

cout<<"Name of the employee: ";

cin>>ws;

cin.getline(name, 30);

cout<<"Gender of the employee (M / F): "; cin>>gender;

}

return 0;

}


Develop a C program for File Operations that stores n number of the Alphabets from A to Z in a file and display it.



Input :

11

80


Output :

P

Q

R

S

T

U

V

W

X

Y

Z


Write a C program to display the month of year using enumeration.


Input :

6


Output :

June


Write a function named Smallest that takes three integer inputs and returns an integer that is the smallest of the three inputs. Write the prototype for the smallest function. Write a program that gets 3 integers from a user and displays the smallest.


Input :

5

6

8


Output :

5


In online journal system, the user has to give detail information about their abstract of the manual script before upload of source document. The abstract submitted by the author should not more than 300 words. The journal system uses program to count the number of vowels, consonants, digits and symbols in a given paragraph. Write a program to count the number of vowels, consonants, digits and symbols using pointers as reference to the function.


Runtime Input :


1=>see-programming.blogspot.com


Output :


No. of vowels: 8

No. of consonants: 17

No. of digits: 1

No. of symbols: 1

Others: 4


 Write a program that uses a loop to copy all the elements from an unsigned Word (16-bit) array into an unsigned doubleword (32-bit) array. 


LATEST TUTORIALS
APPROVED BY CLIENTS