answer.
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
Mkey [24]
2 years ago
3

"Create a program that allows the user to input a list of first names into one array and last names into a parallel array. Input

should be terminated when the user enters a sentinel character. The output should be a list of email addresses where the address is of the following form: [email protected]"

Computers and Technology
1 answer:
lidiya [134]2 years ago
3 0

Answer:

#include<iostream>

using namespace std;

int main()

{

   string f[50],l[50],str1,str;   //f[] will store firstnames and l[] lastnames

   int i;

   cout<<"Enter firstnames and enter # to stop\n";

   cin>>str;

   for(i=0;str!="#";i++)       //# will be the sentinel character

   {

       f[i]=str;

       cin>>str;

   }

   cout<<"Enter lastnames and enter # to stop\n";

   cin>>str1;

   for(i=0;str1!="#";i++)

   {

       l[i]=str1;

       cin>>str1;

   }

   int n=i;        //n wiill be number of elements in array

   cout<<"\nList of emails are : \n";

   for(i=0;i<n;i++)        //loop to print list of emails

   {

       cout<<f[i]<<"."<<l[i]<<"@mycollege.edu"<<endl;

   }

   return 0;

}

OUTPUT :

Please find the attachment below.

Explanation:

Two arrays are maintains which are f[] and l[]. f[] stores firstnames and l[] stores lastnames. First 2 loops are reading firstnames and lastnames which will break if '#' is typed as it is considered as a sentinel character here which is assured by checking the condition in the loop. Then n variable is used to store the length of the arrays. Both arrays have to be of equal length as email ids contains both firstname and lastname. Then a loop is created to print email ids of the format specified by using arrays f[] and l[].

You might be interested in
Which of the following provides a suite of integrated software modules for finance and accounting, human resources, manufacturin
zzz [600]

Answer:

B) ERP systems

Explanation:

ERP which means Enterprise Resource Planning is a software that uses a centralized database, it helps to hasten business processes thereby reducing the use of manual labour. Some of the integrated software modules which it provides are:

*Finance, Accounting.

*Human resource.

*Manufacturing and production.

*Sales and marketing.

The ERP system does not really need the total involvement of a human because it has a database where information stored is used in the daily execution of tasks, it can also be used to measure the productivity and profitability of the business.

6 0
2 years ago
Terry came into work and turned on his computer. During the boot process, the computer shut down. When he tried again, the compu
kirza4 [7]

Answer: Something to do with the storage device, in this case most likely a HDD.

Explanation: Operating System files has somehow probably gotten corrupted during the boot process, or the system drive connection to the motherboard have been severed.

7 0
2 years ago
Suppose you are given an unknown chip which could be any one of the of the following: 7400, 7402, 7404, 7408, 7410, 7420, 7427,
Olenka [21]

The answer & explanation for this question is given in the attachment below.

3 0
2 years ago
In which job role would a course in 3D modeling help with professional career prospects?
ale4655 [162]

Answer:

An eye for detail and good visualization skills.

Explanation:

In which job role would a course in 3D modeling help with professional career prospects? Computer Programmer. Multimedia Artist. Technical Support Specialist.

4 0
2 years ago
To be a successful computer systems engineer, you must be proficient in programming languages and operating systems. Similarly,
Maslowich

Collectively, skills like the ones listed above are Technical skills. These skills refer to the Knowledge and ability to perform specific tasks. However, Soft skills are also important, because they relate to the ability to interact and communicate effectively with people.

6 0
2 years ago
Read 2 more answers
Other questions:
  • An asterisk (*) following a cell reference in a formula is the arithmetic operator that directs excel to perform the division op
    7·1 answer
  • A search box does all of the following EXCEPT ________.
    12·2 answers
  • When excel follows the order of operations the formula 8 * 3 + 2 equals?
    11·1 answer
  • Which selections are possible for controlling the start time of audio playback? Check all that apply. Automatic Rewind when done
    10·1 answer
  • How many solutions exist for the given equation?
    9·1 answer
  • Using virtualization comes with many advantages, one of them being performance. Which of these is NOT another realistic advantag
    7·1 answer
  • Why do agriculture and natural resource systems vary from state to state?
    8·1 answer
  • As a twist on the Hello World exercise, you are going to be the end user of the Hello class. This class is designed to greet the
    9·1 answer
  • 4. Word Separator:Write a program that accepts as input a sentence in which all of thewords are run together but the first chara
    10·1 answer
  • A video game character can face toward one of four directions: north, south, east, and west. Each direction is stored in memory
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!