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
malfutka [58]
3 years ago
5

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

e number.
Computers and Technology
1 answer:
bazaltina [42]3 years ago
8 0

<u>Answer:</u>

//import the necessary libraries

using System.IO;

using System;

//Begin class definition

class PersonalInfo

{

   //Begin main method

  static void Main()

   {

       //Declare all needed variables

       string name;

       string birthdate;

       string workphonenumber;

       string cellphonenumber;

       

       //Prompt user to enter name

       Console.WriteLine("Please enter your name");

       //Receive the user name and store in the name variable

       name = Console.ReadLine();

       

       //Prompt the user to enter date of birth

       Console.WriteLine("Please enter your birthday (dd/mm/yyyy)");

       //Receive the user date of birth and store in the right variable

       birthdate = Console.ReadLine();

       

       //Prompt the user to enter work phone number

       Console.WriteLine("Please enter your work phone number");

       //Receive and store the user work phone number

       workphonenumber = Console.ReadLine();

       

       //Prompt the user to enter cell phone number

       Console.WriteLine("Please enter your cell phone number");

       //Receive and store the user cell phone number

       cellphonenumber = Console.ReadLine();

       

       //Now display the result

      Console.WriteLine("========Your Info========");

       Console.WriteLine("Name: {0} ", name);

       Console.WriteLine("Date of birth: {0} ", birthdate);

       Console.WriteLine("Work Phone Number: {0} ", workphonenumber);

       Console.WriteLine("Cell Phone Number: {0} ", cellphonenumber);

   }

}

<u>Sample Output</u>

Please enter your name

>>Omobowale

Please enter your birthday (dd/mm/yyyy)

>>19/05/1990

Please enter your work phone number

>>08022222222

Please enter your cell phone number

>>08033333333

========Your Info========

Name: Omobowale  

Date of birth: 19/05/1990

Work Phone Number: 08022222222

Cell Phone Number: 08033333333

<u>Explanation:</u>

The code above has been written in C#. It contains comments explaining each line of the code. Kindly go through the comments. A sample output has also been provided.

Should you need the program file, please find it attached to this response.

Download pdf
You might be interested in
In Tynker, it is not possible to create a/an __________.
xz_007 [3.2K]

Answer:

yes

Explanation:

7 0
3 years ago
Read 2 more answers
You may see the term FAQ on websites which stands for Frequently Asked Questions this is an example of which type of mnemonic?
babymother [125]
The first question is B.), acronym, and the second one is c.) acrostic.
Hope this helps!
6 0
3 years ago
Print "Censored" if userInput contains the word "darn", else print userInput. End with newline. Ex: If userInput is "That darn c
barxatty [35]

Answer:

#include <string>

#include <iostream>

using namespace std;

int main() {

string userInput;

getline(cin, userInput);

// Here, an integer variable is declared to find that the user entered string consist of word darn or not

int isPresent = userInput.find("darn");

if (isPresent > 0){

cout << "Censored" << endl;

// Solution starts here

else

{

cout << userInput << endl;

}

// End of solution

return 0;

}

// End of Program

The proposed solution added an else statement to the code

This will enable the program to print the userInput if userInput doesn't contain the word darn

6 0
3 years ago
Can run mobile-style apps in the area known as the start screen, while running traditional software in the more familiar desktop
Travka [436]
The correct answer: Yes, mobile-style apps can run in a personal computer's desktop.

That is possible by means of a desktop application called emulatator. An emulator like Bluestacks allows a personal computer to run mobile-style apps by acting as a virtual drive in the personal computer's harddisk. 

Emulation is successful if the system requirements of the mobile-application is met by the personal computer's system attributes such as Random Access Memory abundance, Random Access Memory speed, Processing speed (in some cases core abundance e.g. core 2) etc. 

Some mobile-applications do not work in the personal computer's desktop, however, if this application requires platform specific functions such as mobile device's network provider etc.
4 0
4 years ago
Servers that exist within a data center that is publicly accessible on the internet are referred to as on-premises servers.
adoni [48]

Servers that exist within a data center that is publicly accessible on the internet are referred to as on-premises servers: b. false.

<h3>What is a server?</h3>

A server can be defined as a dedicated computer system that is designed and developed to provide specific services to other computer devices or programs, which are commonly referred to as the clients.

<h3>What is an on-premises server?</h3>

An on-premises server can be defined as a type of server that are privately owned by a company or individuals, which must be managed and maintained individually.

In conclusion, servers that exist within a data center that is not publicly accessible on the internet are generally referred to as on-premises servers.

Read more on servers here: brainly.com/question/27960093

#SPJ1

7 0
2 years ago
Other questions:
  • Using information from the lesson, explain how new technologies change your experience as a consumer.
    5·2 answers
  • Janis is preparing a financial document. She needs to use the dollar symbol placed above the number key 4. Which key will Janis
    12·2 answers
  • What is a directory server?
    5·1 answer
  • The Coins class was created to hold all your loose change, kind of like a piggy bank! For this exercise, you are going to simula
    15·1 answer
  • Identify examples of loop structures using comments in your code. Be sure your examples address each of the following: i. Item-b
    6·1 answer
  • Write a program num2rome.cpp that converts a positive integer into the Roman number system. The Roman number system has digits I
    8·1 answer
  • How can a search be narrowed to only search a particular website????
    15·1 answer
  • A digital forensic analyst examines the original digital source (e.g. computer, flash drive, backup tape) suspected of being inv
    5·1 answer
  • Braxton is writing a program to design t-shirts. Which of the following correctly sets an attribute for color?
    7·1 answer
  • Is there an air flow through the house? if so, does the air flow in the window and out the chimney, or in the chimney and out th
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!