need a program written in C++ that asks, with breaks, the user
for their
name (character sequence)
age (integer)
gender (as a character)
address (as a sentence)
and then the program clears the inputs
then prints the information to the user
formating must has some aesthetical appeal
#include <iostream>
using namespace std;
int main() {
string name;
int age;
char gender;
string address;
cout<<"Enter name: ";
cin>>name;
cout<<"Enter age: ";
cin>>age;
cout<<"Enter gender: ";
cin>>gender;
cout<<"Enter address: ";
getline(cin,address);
getline(cin,address);
cout<<"Name: "<<name<<endl;
cout<<"Age: "<<age<<endl;
cout<<"Gender: "<<gender<<endl;
cout<<"Address: "<<address<<endl;
return 0;
}


need a program written in C++ that asks, with breaks, the user for their name (character...
Write a C++ program that asks the user to read one character. Pass the character to a function called Binary. Convert the character into its corresponding binary code, then print the character and its corresponding binary code.
I need this written in the C format not C++
Name this program count.c-The program reads an unknown number of words - strings that all 20 characters or less in length. It simply counts the number of words read. The end of input is signaled when the user enters control-d (end-of-file). Your program prints the number of words that the user entered. 4.
Use PYTHON3 to create a program that asks the user for their name, and then prints their initials. You must create a function called getInitials() that takes the name string and prints out the initials. It must be case insensitive and the initials must be printed in upper case. The program must contain a main() and a function called getInitials(), implemented as described in the function header comment given below. (You should include this function header comment in your own...
***** JAVA ONLY ***** Write a program that asks the user to enter the name of a file, and then asks the user to enter a character. The program should count and display the number of times that the specified character appears in the file. Use Notepad to create a simple file that can be used to test the program. ***** JAVA ONLY *****
In python create a program that does the following: Asks the user for their first name Asks the user for their last name Asks the user for the year they were born Calculates the age of the user from this number Gives an output message stating: It is nice to meet them (call them by name) And how impressed you are by their age
Wrote a program called ExceptionalDivide that asks the user for 2 integer values and displays the quotient of the first value divided by the second value. Make sure the your program reads in the two input values as ints. Your program must catch either of two exceptions that might arise and crash your program java.util.InputMismatchException //wrong data type inputted java.lang.ArithmeticException //divide by zero error Once you catch these exceptions, your program must print out a message explaining what happened and...
Write a program that asks for the user’s first name and last name. Then prints it out in a sentence (The sentence is: __first name__ __lastname__.)Please use C program
Java Question, I need a program that asks a user to input a string && then asks the user to type in an index value(integer). You will use the charAt( ) method from the string class to find and output the character referenced by that index. Allow the user to repeat these actions by placing this in a loop until the user gives you an empty string. Now realize that If we call the charAt method with a bad value...
Write a program in java that asks a user for a file name and prints the number of characters, words (separated by whitespace), and lines in that file. Then, it replaces each line of the file with its reverse. For example, if the file contains the following lines (Test1.txt): This is a test Hi there Output on the console: Number of characters: 22 Number of words: 6 Number of lines: 2 Data written to the file (Test1.txt): tset a si...
Write a program that asks for 'name from the user and then asks for a number and stores the two in a dictionary [called the_dicr) as key-value pair. The program then asks if the user wants to enter more data [More data ly/n]?) and depending on user choice, either asks for another name-number pair or exits and stores the dictionary key, values in a list of tuples and prints the list Note: Ignore the case where the name is already...