Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I want it just like the picture below similar to it using the same stuff using array and namespace 7. Name Arranger Write a program

image text in transcribed
I want it just like the picture below similar to it using the same stuff using array and namespace
image text in transcribed
image text in transcribed
image text in transcribed
7. Name Arranger Write a program that asks for the user's first, middle, and last names. The names should be stored in three different character arrays. The program should then store, in a fourth array, the name arranged in the following manner: the last name followed by a comma and a space, followed by the first name and a space, followed by the middle name. For example, if the user entered "Carol Lynn Smith", it should store Smith, Carol Lynn" in the fourth array. Display the contents of the fourth array on the screen. FrancisHocke Labssignments NameArranger - Microsoft Visual Studio File Edit View Project Build Debug Team Tools Test Analyze Window Help Local Windows Debugger . Aut Team Explorer Connect main.cpp X (Global Scope FrancisHocke LabAssignment8 NameArranger 1 E/*Francis Hocke IV 2 Lab Assignment 8 3 Name Arranger*/ #includeciostream> #includeccstdlib 5 leincludecionanip (#includecetype> 10 using nanespace std; 12 lint main() 14 " CONSTANTS DEFINED : const int MAX_CHAR 11; const int ZERO THRESHOLD 8 17const int MAX NAME_CHAR 41 19 2e ARRAYS DEFINED char neidianeArray [MAX NAME_CHAR] char firstNaneArray[MAX-CHARI; char .ddleNaneArray[MAX CHAR]; char LastNameArray [MAX CHAR]: 100% Output Show output from: Debug FrancisHocke Labassignment8 Namekrranger exe (in32): Loaded 'C:Windows 1Syswow64rpert4.di1. Cane FrancisHocke Labassisneent8 Hamearranger.exe' (win32): Loaded C:lwindows1SysHOW64 1Sspicli.d11'. Carn Francis Hocke-Labas signeemt B-Namearranger . exe' (kin32): Loaded ..wt ndows\Sysla 64 \ crypt base.du, c FrancisHocke Labssignment8,NareArranger.exe (win32): Loaded C:windows1Sy sows4bcryptprinitives. TrancisHocke Labassignment8 NaneArranger.exe (win32): Loaded "CawindowsSyshow64 sechost.412".Cann The thread 9x3a54 has exited with code (0x0) The thread 0x114 has exited with code (0x8) The theeas3 8:4024 has exited with code (0xe) ) Saved acer FrancisHocke LebAssignmentB NameArranger-Microsoft Visual Studio File Edt View Project Build Debug Team Tools Test Analyze Window Help Local Windows Debugger-Auto Team Explorer- Connect (Global Scope) ke Lablasignments Nameleranger char newlameArray[A NAE CHAR] char firstNaneArray[MAX CHAR]: char middleNameArray [MAX CHAR] char lastlaArray[X CHAR] PROGRAM DEFINED cout

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions