Write an application that allows a user to enter the names and birthdates of up to 10 friends. Continue to prompt the user for names and birthdates until the user enters the sentinel value ZZZ for a name or has entered 10 names, whichever comes first. When the user is finished entering names, produce a count of how many names were entered, and then display the names. In a loop, continuously ask the user to type one of the names and display the corresponding birthdate or "Sorry, no entry for name" if the name has not been previously entered. The loop continues until the user enters ZZZ for a name.

Question

Write an application that allows a user to enter the names and birthdates of up to 10 friends. Continue to prompt the user for names and birthdates until the user enters the sentinel value ZZZ for a name or has entered 10 names, whichever comes first. When the user is finished entering names, produce a count of how many names were entered, and then display the names. In a loop, continuously ask the user to type one of the names and display the corresponding birthdate or "Sorry, no entry for name" if the name has not been previously entered. The loop continues until the user enters ZZZ for a name.

Expert Answer

1 Rating

Want to see the step-by-step answer?

Check out a sample Q&A here.

Want to see this answer and more?

Experts are waiting 24/7 to provide step-by-step solutions in as fast as 30 minutes!*

*Response times may vary by subject and question complexity. Median response time is 34 minutes for paid subscribers and may be longer for promotional offers.
Tagged in
Engineering
Computer Engineering

Programing

Related Computer Engineering Q&A

Find answers to questions asked by students like you.

Q: True or false Please do all

A: Hey, since multiple sub part questions posted, we will answer first three questions according to our...

Q: Write a template function that returns the average of all the elements of an array. The arguments to...

A: Program code: //include the required header files#include<iostream>using namespace std;//templ...

Q: Ssuet network gateway, 2 Mbps, packet size 1000 bytes, arrival rate of 125 packets/sec. The what is ...

A: A gateway is a bit of systems administration equipment utilized in media communications for broadcas...

Q: How many length twenty strings of a’s, b’s, and c’s haveten a’s, six b’s, and four c’s?

A: Solution: in which 20 is used for total string length.  10 for a's and   6 for b's , 4 for c's

Q: How many branches are there in this network?

A: Solution in Step 2.

Q: The table below shows instruction-type breakdown for different programs. Using this data, you will b...

A: Click to see the answer

Q: Question 12: i Explain what is meant by “lower representation gap” with OO modelling. Use an example...

A: The, answer has given below:

Q: 1. Write a function called displayCodes to receive the pointer of the first element of the array and...

A: Answering the first question only according to the policy. Since the programming language is not men...

Q: If t 2 2 what is the expected number of copies of K, in a random graph НЕ G(n, p)?

A: random graphs, also known as Erd¨os-R´enyi random graphs. The degree of a node is the number of link...

Q: Create a class BeautyProduct with name, color, brand. Provide Constructors, getters, setters and als...

A: First, create class BeautyProduct as mentioned.   Next, create class Lipstick which inherits base cl...

Q: Write a Java program to find the second smallest element in an array, using  the numbers {-2, 5, 0, ...

A: public class secondSmallest {   public static int getSecondSmallest(int[] a, int total){     int tem...

Q: Write a C program which should consists of a user defined function “Task ()” [Function returns no va...

A: PROGRAM: #include <stdio.h>   //defining Task() void Task(int* arr, int size, int element){   ...

Q: Are microcontrollers better than microprocessors? Justify your answer.

A: Microcontrollers and microprocessors Microcontrollers are used for performing a low power applicati...

Q: Write a user-defined function that plots a triangle and the circle that is inscribed inside, given t...

A: Actually, function is a set of statements.

Q: Differentiate REAL mode of operation and FLAT mode of operation.

A: Differences between REAL  REAL mode and FLAT mode operation Flat mode Memory appears to a program a...

Q: Construct C++ program to solve a given problem using appropriate programming techniques.   Write a p...

A: We can implement this using basic Object oriented programming concepts Create an Employee with 3 dat...

Q: Assuming even parity, find the parity bit for each of the following data units.a. 1001010b. 0001101c...

A: Parity bit: Parity of number is define as, if the total number of set that is 1-bit in binary repre...

Q: In terms of client-server architectures, can you explain the difference between the two-tier, three-...

A: Actually, A client is a computer hardware device or software that accesses a service made available ...

Q: Compare and contrast the features of Pentium IV and Core i7 processor

A: Answer in step2

Q: Hi! I need assistance writing the PSEUDOCODE and the SOURCE CODE for the problem listed below! Any h...

A: import randomdef toKilometers(miles): return miles * 1.60934print("MILES KILOMETERS")for i in ran...

Q: Map the ER into relational schema.

A: The relation schema for the given ER Diagram is: The entity tables and the relation are mapped . For...

Q: Q1. Write a program to enter 10 numbers using keyboard and put them in an array. Now generate anothe...

A: Note:- Since you have not specified the programming choice, we will be solving this question in pyth...

Q: What's the answer for "It's inventiveness and certainty and futuristic ideas typically deal with sci...

A: Inventiveness is nothing but innovation which is part of almost each and every sector Certainty is n...

Q: Get 10 numbers from user using loop. Find which number is a. positive b. negative C. zero d. Odd e. ...

A: Algorithm: An algorithm is a set of steps used to solve a problem in natural language English. The r...

Q: Can TT for ALU Control: Inputs Outputs ALUOP Binvert Ainvert Funct field. Fx Operation F5 F4 F3 F2 F...

A: Actually, the ALU is one of the part of computer. It is used to perform Arithmetic and logical opera...

Q: In what ways is a move toward green computing consistent with your organization's mission of develop...

A: Green computing involves reducing the environmental impact of technology. That means using less ener...

Q: Construct C++ program to solve a given problem using appropriate programming techniques.   Write a p...

A: GIVEN: Write a c++ program to process a collection of daily high temperatures. print the category of...

Q: Help their can possibly be more than one correct answer

A: The, answer has given below:

Q: please please help

A: V=[12,18,4,8,8];W=[14,0,3,1,0];A=V+W;d=0;for i = 1:length(V)    d=d+A(i)*A(i);enddisp(d)

Q: I’m working in c++ and can’t find what to put for the return value! I need it to get my arrays set u...

A: The requirement is to pass three empty arrays to a method named PopulateArray() and get that arrays ...

Q: -(2 > 3) & ((2 < 3) I (1 - 0)) What is the final value of a?

A: In general, the expressions are evaluated from left to right but in case of any statements in bracke...

Q: textbook is Introduction to programming with c++ write codes in c++ please

A: The C++ program is written where it takes the input from the user and counts the positive and negati...

Q: Suppose that a B+-tree index on building is available on relation departmentand that no other index ...

A: A B+ tree is a m-ary tree with a variable however regularly enormous number of kids per hub. It comp...

Q: 3. Write a C++ program that can accept two inputs from user. First input being of character type (sy...

A: Please find the answer below :  

Q: how to write a java program that calculates and prints the monthly pay for an employee

A:  java program that calculates and prints the monthly payment for an employee Let's Consider below va...

Q: Write a program to read 50 numbers and find maximum number between them

A: The below given C++ program will obey the following rubrics: Including necessary header files. In t...

Q: Differentiate between basic variables and non-basic variables?

A: Simplex algorithm is an algorithm for linear programming. A linear programming can be represented as...

Q: Differentiate REAL mode of operation and FLAT mode of operation .

A: Differences between REAL mode and FLAT mode operation: Flat mode — Memory appears to a program as a ...

Q: The mirror symmetry about the X axis of a 2D figure centered at the origin involves changing the sig...

A: As the transformation is about the X axis, the X coordinate will stay unchanged and the sign of Y co...

Q: Compare the data rates for Standard Ethernet, Fast Ethernet, Gigabit Ethernet, and Ten-Gigabit Ether...

A: The data rate is the date that was transmitted per given unit time interval and generally these data...

Q: Please draw a flowchart and write a program that finds the years divisible to 4 between the years of...

A: Actually, program is a executable software that runs on a computer.