Create two structure variables of type phone

Assignment Help C/C++ Programming
Reference no: EM131097411

Program

A phone number such as (212) 767-8900 can be thought of as having three  parts: the area code (212), the exchange (767) and the number (8900). Write a program that uses a structure to store these three parts of a phone number separately. Call the structure phone. Create two structure variables of type phone. Initialize one and have the user input a number for the other one. Then display both numbers. The interchange might look like this:
Enter your area code, exchange and number; 415 555 1212

My number is (212) 767-8900
Your number is (415) 555-1212

Reference no: EM131097411

Questions Cloud

Safety inventory of mozzarella : How much safety inventory of mozzarella cheese will the pizza restaurant need to hold under each of these two carrier options? Show how you calculated this SI value.
Define consumer surplus total welfare and deadweight loss : What are the two characteristics that must be met for a good to be considered a "public good?" Define the Consumer surplus, Producer surplus, Total welfare and Deadweight loss.
Discrimination in the workplace : Women have always been target for discrimination in the workplace. This applies for recruitment as well, as there are many jobs that are perceived to be meant for men rather than women.
Importance of implementing ethics-training program : Research Paper for Unit VII, you will build a 10-slide PowerPoint presentation to present your findings, and portray the importance of implementing an ethics-training program for a public organization. This is the framework for an actual presentat..
Create two structure variables of type phone : Create two structure variables of type phone. Initialize one and have the user input a number for the other one. Then display both numbers. The interchange might look like this.
Calculate selling price per person in gbp for night package : Assignment title - Planning, selling, administering, operating and costing a package holiday programme. Calculate a selling price per person in GBP for a 7 night package, identifying fixed and variable costs based on all 50 seats being sold
To evaluate organisational strengths : The assessments in this subject are aimed at providing students a framework to understand organisation behaviour, politics and the dynamics of business environments.
What insights do have on your proposed dissertation topic : In light of the 10 Strategic Points, what insights do you have on your proposed dissertation topic? How are you currently formulating your research approach? Based on your current understanding of research methodologies, what hurdles or barriers a..
Create the equivalent of a four function calculator : Create the equivalent of a four function calculator. The program should request the user to enter a number an operator and another number. It should then carry out the specified arithmetical operation: adding, subtracting, multiplying or dividing the..

Reviews

Write a Review

C/C++ Programming Questions & Answers

  A file (complex.txt) which has a number of complex numbers

Read in a file (complex.txt) which has a number of complex numbers in the form of a+bi (e.g. 3+5i  2-3i etc).

  You are required to prepare a program for assessment system

you are required to prepare a program for assessment system of a university. the main idea is to evaluate the gpa

  Write a statement that writes both of their values

Write a statement that writes both of their values to standard output in the format

  Create a program reads in a senctence and encodes it

Create a program reads in a senctence and encodes it. Ask the user for the sentence, a mulitplier and an adder.

  Variable of primitive type

What value is stored in ch by the following statement? ch = str.charAt(0); What value is stored in ch by the following statement? ch = str.charAt(10);

  Write a program that uses recursion to determine one age

Write a program that uses recursion to determine one's age. The user will enter the current year and the year they were born (birth year) from the keyboard. The program will output the current age of the user. Check positive and zero cases only.

  Implement a queue class whose add and remove

Implement a Queue class whose add and remove methods are synchronized. Supply one thread, called the producer, which keeps inserting strings into the queue as long as there are fewer than 10 elements in it.

  Create a program that will input a group of floating point

Create a program that will input a group of floating point values, storing them as double values in an array. This array will then be sent to three functions.

  . write a segment of code that prints the number of elements

Assuming the array x has been defined as: int x[n]; for some n and that values have been assigned to all the elements. Write a segment of code that prints the number of elements between (but not including) the largest and smallest values in the array..

  Convert infix to postfix and also calculate the result

I have to convert infix to postfix and also calculate the result. We have been given test data via a text file.

  How do you generate arrays, random numbers

How do you generate arrays, random numbers and multiply and add rows, columns and diagonals in C

  Identify two key oo concepts and explain them as if you

1. discuss the advantages and disadvantages of both the structured and object-oriented oo paradigm in programming. why

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd