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
mars1129 [50]
3 years ago
11

Write, compile, and test a program named PersonalInfo that displays a person’s name, birthdate, work phone number, and cell phon

e number on separate lines. Follow the format in the example below
Computers and Technology
1 answer:
djverab [1.8K]3 years ago
7 0

Answer:

A very simple C program is as follows:

#include <stdio.h>  // for input output functions

int main()  

 {

    printf("Name : John\n");   //display name

    printf("Date of Birth : 05/02/1993\n");  //displays DOB

    printf("Mobile Number: 98-7654321\n");  //displays mobile number

  }    

Explanation:

Now if you want to take name, date of birth and number from user as input then you can use the following code:

#include <iostream> // for input output functions

using namespace std; // to identify objects like cin cout

/* The function named PersonalInfo that takes input from user and displays name, mobile number and data of birth on output screen */

void PersonalInfo(char name[],char birthdate[], char number[]){

//prompts user to enter name

cout<<"Please enter your name: "<<endl;

cin>>name; //stores name entered by the user

//prompts user to enter his dob in the format given in the bracket

cout<<"Please enter your birthdate (dd/mm/yyyy): "<<endl;

cin>>birthdate; //stores dob entered by the user

//prompts user to enter his mobile number in the given format

cout<<"Please enter your mobile number (xx-xxx-xxxxxxx): "<<endl;

cin>>number; //holds the digits entered by the user

cout<<"Your name is: "<<name<<endl; //displays name

cout<<"Your birthdate is:"<< birthdate<<endl; //displays date of birth

cout<<"Your mobile number is: "<<number<<endl; } //displays number

int main() //start of main() function body

{   char username[30],dob[30],phone[30];

/*three char type arrays that contain name of user in username, date of birth in dob and phone number in phone array */

   PersonalInfo(username,dob,phone);  } //calls function PersonalInfo()

Output:

Please enter your name: John

Please enter your birthdate (dd/mm/yyyy): 09/05/1993

Please enter your mobile number (xx-xxx-xxxxxxx): 91-123-4567890

Your name is: John

Your birthdate is: 09/05/1993

Your mobile number is: 91-123-4567890

You might be interested in
What is the most consistent item regardless of the software used in BI?
vodomira [7]

Answer Explanation:

Business intelligence is defined as the strategies and technologies used by companies for the data analysis of business information it tell us also about predictive views of business operation.

THE MOST CONSISTENT ITEMS REGARDLESS OF SOFTWARE USED IN BI ARE :

  • data analyst has the most responsibility of BI he is the most important part of BI
  • It is the interconnected process of inspection changing and modeling
  • data analysis is hugely aided by data mining
5 0
3 years ago
To be eligible for the leadership training program offered by the office, a student must have at least 2 years of post-secondary
erica [24]

Answer:

The formula for the given problem is:

=IF(OR(D2>=2,G2>"Yes"), "Yes", "No")

Explanation:

Please see attachment for step by step guide

7 0
4 years ago
How do u type faster
eduard

Answer:

by learning the right home keys and how to place the fingers

Explanation:

the left hand side : A,S,D,F

the right hand side: :, L, K, J

the two little fingers are guide keys

guide keys: letter A and column

5 0
4 years ago
In excel, dates are _____-aligned in the cell by default, regardless of date format.
max2010maxim [7]

Answer:

The answer to the given question the option "a".

Explanation:

In computer science, Excel is a spreadsheet program. It provides us a table in this table we create a grid of text, numbers, and formulas specifying calculations, graphs, and charts and insert picture in the table. In the table aligned cells are by default is left. because in the spreadsheet all the data will insert from the left to right. So the correct answer to this question is the option "a".

4 0
3 years ago
____ files involves combining two or more files while maintaining the sequential order of the records.
zysi [14]

Merging files involves combining two or more files while maintaining the sequential order of the records.

<h3>What is Merging files?</h3>

Merging is known to be the act of of taking two or a lot of groups of data in the method of a file or folder, and adding them together into a single file or folder,

There are different kinds of files that exists. A computer file is one that comes in different format and sizes as well as its function. To merge connote to put two or more things together.

Note that, Merging files involves combining two or more files while maintaining the sequential order of the records.

Learn more about Merging files from

brainly.com/question/1206838

#SPJ1

6 0
2 years ago
Other questions:
  • Liz will use a CD-R compact disk to write to more than once. Carlo will use a CD-RW compact disk to write to more than once. Who
    8·1 answer
  • The design of computers, devices, and media in a network is categorized as either client/server or peer-to-peer. what is the ter
    8·1 answer
  • Which of the following does NOT describe a node?
    10·2 answers
  • Write a program that reads three numbers and print the largest one step by step answer
    9·1 answer
  • What is the command for basic router configuration?
    6·1 answer
  • I need help with this answer, I will give brainliest as long as there is actually an answer!
    11·1 answer
  • How to hack free fire dimond
    10·2 answers
  • Tin học đã làm thay đổi công tác văn phòng ngày nay như thế nào?
    5·1 answer
  • Explain the working principle of computer with suitable diagram​
    15·1 answer
  • Write a code snippet Now write your own code snippet that asks the user to enter two numbers of integer type (one at a time) and
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!