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 an Algorithm? (might not be in the chapter text). Give an example.
Rashid [163]

Answer:

The answer to this question is given below in the explanation section.

Explanation:

An algorithm is the list of a finite set of instructions and rules that a computer needs to do to complete a task in order to solve a problem.

In short, an algorithm is a series of instructions that are implemented step by step to solve a problem. For example, you could consider a pizza recipe an algorithm for making a pizza in an everyday life routine. But when you are talking about using algorithms in computation and in mathematics. It means that solving a problem using a series of steps step by step.

For example, your everyday tasks aligned on a google calendar and remind you about your tasks using the alarm, etc- how to implement this using set of instructions and rules- is an algorithm.

Solving a quadratic equation is another example of an algorithm.

Binary search, array sorting are an example of an algorithm in computation. Because these algorithms based on the execution of step-by-step instruction to solve a problem such as sorting a list of numbers etc.  

6 0
3 years ago
Software that instructs the computer how to run applications and controls the display/keyboard is known as the
saw5 [17]
Answer is : operating system
8 0
4 years ago
List and the deference between MS access objects​
Dafna11 [192]

Answer:

MS access objects help the user list , information and designed reports .

Explanation:

MS access objects are create a forms, data base, tables,queries, and modules. There are many objects are following:-Tables, Forms,Reports, Queries.

Table:- These are objects used into a define and store the data,tables are contain the columns and the store of different data.

Form:- Form is the object that designed by the data input and control application queries or tables, forms are used in viewing records.

Reports:- Reports are the designed to the printing and calculating data,reports are used because data in read to easy format.

Queries:- Queries are provides that data from one or more table,you can define the update ,delete, insert, select data.

4 0
4 years ago
Write the proghrams for the following:
belka [17]

Answer:

a)

#include <iostream>

using namespace std;

int main() {

   bool a,b,c;

   cin>>a>>b;

   if(a^b)//X-OR operator in C++.

   c=true;

   else

   c=false;

   cout<<c;

return 0;

}

b)

#include <iostream>

using namespace std;

int main() {

   bool a,b,c,d;

   cin>>a>>b>>c;

   if((a^b)^c)//X-OR operator in C++.

   d=true;

   else

   d=false;

   cout<<d;

return 0;

}

Explanation:

The above written programs are in C++.There is an operator (^) called X-OR operator in C++.It returns true if the number of 1's are odd and returns false if the number of 1's are even.

In the if statement I have user X-OR operator(^) to find the result and storing the result in another boolean variable in both the questions.

5 0
4 years ago
WHAT ACTIONS CAUSE SPAM ON LINKEDIN?
klio [65]

Answer:

LinkedIn has a very smart algorithm, and it has a very strict policy against spammers. Back in 2014, it deleted millions of accounts that were causing spam on LinkedIn.  

Spam occurs:  

1. When you send bulk of connect requests in a short time  

2. When you send irrelevant messages to prospects  

3. When you Perform overactivity  

4. When you use LinkedIn automation tools  

5. When you send spammy and sales-y messages  

All these actions cause spam on LinkedIn, and it immediately takes action against you by restricting your account temporarily or permanently.

4 0
3 years ago
Other questions:
  • A _______ is smaller than a notebook or laptop and has a touchscreen and sometimes a pointing device.
    13·1 answer
  • Explain why the game of economics has no winner
    8·1 answer
  • Juliet is trying to increase her savings account and she decides that she is going save an additional $700 every month. If her m
    9·1 answer
  • Suppose that Alice wants to send Bob a 50 kilobyte message over a 1 Gbps link. The total time required to transmit the message (
    5·1 answer
  • PowerPoint allows you to input files from variety of sources, such as Microsoft access.
    6·1 answer
  • Effective display designs must provide all the necessary data in the proper sequence to carry out the task. Identify a recent pe
    12·1 answer
  • You want to use a terminal program to terminal into a cisco router. what protocol should i use
    8·1 answer
  • Power delivered to the hitch of tractors is called
    12·1 answer
  • Darcy was working on a presentation on playing chess. Because she chose the Checkerboard animation for her slide title, she had
    15·2 answers
  • What feature preserves your open apps and data, but allows another user to log in to his or her own session of the same computer
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!