Write a SIMPLE code in c++ to input a user's age, name, date, month and year of birth, favorite color and so on. You will then turn around and ask another person the same and do this for 9 people. You will then output these information for these 9 people back to the screen in the same order. Further, add the ages of all these people and output the total to the screen. comment the code
******************************************************************************************
Please Upvote the answer as it matters to me a lot :)
*****************************************************************************************
As HOMEWORKLIB RULES expert answering guidelines,Experts are supposed to
answer only certain number of questions/sub-parts in a post.Please
raise the remaining as a new question as HOMEWORKLIB RULES
guidelines.
******************************************************************************************
#include <bits/stdc++.h>
using namespace std;
int main()
{
string s[9][5];
int age[9];
for(int i=0;i<9;i++)
{
cout<<"Enter user age: ";
cin>>age[i];
cout<<"Enter name";
cin>>s[i][0];
cout<<"Enter date";
cin>>s[i][1];
cout<<"Enter month";
cin>>s[i][2];
cout<<"Enter year of birth";
cin>>s[i][3];
cout<<"Enter favorite color";
cin>>s[i][4];
}
int ans=0;
for(int i:age)
ans+=i;
for(int i=0;i<9;i++)
{
cout<<" Age: ";
cout<<age[i]<<" ";
cout<<"Name: ";
cout<<s[i][0]<<" ";
cout<<"Date: ";
cout<<s[i][1]<<" ";
cout<<"Month: ";
cout<<s[i][2]<<" ";
cout<<"Year of birth: ";
cout<<s[i][3]<<" ";
cout<<"Favorite color";
cout<<s[i][4]<<endl;
}
cout<<"Total age is "<<ans<<endl;
return 0;
}

Write a SIMPLE code in c++ to input a user's age, name, date, month and year...
Write an interactive C++ program that asks a user to input the color code of a resistor and determines its value and tolerance Tell the user how to input the color rings “Instructions” Tell the user to input the colors one after the other After the program receives the information it will display the resistance and tolerance Output an error message if the user enters an invalid color code (no garbage values should be displayed), and ask for another input...
Create a program that will ask for the name, age, address, and
favorite food of the user. After which, create a calculator with
ADD, SUB, MULTI, and DIV. Then the program will display all the
user have inputted in bash program
ACTIVITY 4: Create a program that will ask for the name, age, address, and favorite food of the user. After which create a calculator with ADD, SUB, MULTI, and DIV. Then the program will display all the user have...
Write a C++ program that determines the user's age after the user enters both the current date and hisher birthdate as 3 integers: yyyy mm dd Define a class which is named DateType and will be used to declare 2 objects: "birthday" and "today". The class will have a function "output" which will display the date in conventional form (like it is above next to Date Assigned: Month dd, yyyy and it will have a second function named “input”...
c. print python code that requests a person's first name, birth year, birth month like 'January', and birth day of month as input, then outputs a full sentence using the three inputs and another sentence that tells the length of the previous sentence that was printed.. Include one line of comment explaining each line of code: d., print python code that assigns the 4 variables shown in step 8 the math formulas created in step 8. Output a sentence that...
Python assignment: Write a program that asks for the user's age. Based on their response print "You can vote" (18 years old or older) or "You can't vote" and also whether or not he/she is a senior citizen (over 64). If senior citizen print "You're a Senior Citizen...you deserve two votes"! Use the Idle editor and don't forget the .py extension. Good luck. Your python program will be graded on the following: Execution of the program gives the correct...
Write a Visual C# program that will input the user's name and a message. The user will be able to choose from an option of formatting tools to change the way the message (and only the message) will look. The user can choose from bold, underline, italic, along with several different color options. All changes the user selects will be displayed in the message textbox. Once the user selects the Finish button, the two pieces of information entered by the...
A _____ is the most customizable to meet the user's needs. laptop desktop Chromebook server Question 2 of 10 The device that connects your home network to the Internet is the _____. circuit board ISP modem router Question 3 of 10 Rio Salado's network is an example of a _____. PAN WAN WWW LAN Question 4 of 10 A computer component that you can touch is referred to...
Please write this code in C++ Object-Oriented Programming,
specify which files are .h, and .cpp, and please add comments for
the whole code.
Include a class diagrams, and explain the approach you used for
the project and how you implemented that, briefly in a few
sentences.
Please note the following:
-Names chosen for classes, functions, and variables should
effectively convey the purpose and meaning of the named
entity.
- Code duplication should be avoided by factoring out common code
into...
Write a C++ code to make a simple program that imports the input
file in and gets the results as specified
Please follow the instructions and paste the code below as the
answer with a screenshot of the output to prove it worked.
Input file ->
https://www.dropbox.com/s/444jofkchu6ylwr/names.txt?dl=0
Scoring Names You will be using the provided names.txt file, text file containing over five-thousand first names, and you will calculate a score for each name. Begin by reading the names from the...
C++ There is a class called Person which has name and age as private variables. Another class called Student, which is derived from person with gpa and id as variables. name is a string, age and id are integers and gpa is a double... All of them are private variables. age, gpa and id should be generated randomly when the object is created with the following ranges: age 20 to 32 gpa 0.0 to 4.0 // this one is tricky...