Input three sets of data without using array

Assignment Help Basic Computer Science
Reference no: EM133234606

Write code which allows the user to input three sets of data without using an array. Create three different sets of variables for each of the data items you're trying to input. The variables will be:

lastName1, lastName2, lastName3

pubYear1, pubYear2, pubYear3

pubCity1, pubCity2, pubCity 3

Each of these variables need to obey the rules set up for the error trapping on them: last names are 32 characters or less, city names are 64 characters or less, and the publication year is in [1477, 2022]. You will then use a counter variable to determine which set of variables you're on to receive input. Use a switch statement on the counter in order to assign data to the correct set of variables; counter 0 should go to set 1, which will be lastNmae1, pubYear1, and pubCity1, as an example.

At the end of the input, ask the user if they want to input another. If the user replies "No", you will then print out what they have entered, based on the counter again. If the user says "Yes" and they have entered less than three sets, the counter increases and the entire entry process is looped back to execute again. If all three sets have been entered, the loop doesn't ask the user anything, it just immediately prints out the information it has.

in C language

Reference no: EM133234606

Questions Cloud

What is the validity of your certificate : What is the validity of your certificate (date range)? Do you have an intermediate certificate? If so, what is it?
Establish password aging attributes : Assign this user a password and establish password aging attributes so that this user cannot change their password within 4 days
All logical gates can be built from only nand gates : This is equivalent to saying that all propositional formulas can be built out of NAND operations such as A ?B.
Unsigned numbers and signed numbers in binary : What is the difference between unsigned numbers and signed numbers in binary?
Input three sets of data without using array : Write code which allows the user to input three sets of data without using an array.
Connection nodes labeled : How are the 5 connection nodes labeled (give an example)? How are the 50 connection nodes labeled?
Convert binary number to decimal number : Convert the Binary Number (Base 2) to a Decimal(Base 10) number.
Element into position two of array : Write the C++ program to insert an element into position two of an array. Your answer should include an explanation in your output.
Create script named generate : Create a script named generate-ssn.sh that generates all possible social security number and stores them into a file named ssn.txt.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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