We're getting married Code in C language
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
We're getting married
Code in C language
![main.c
< > +c
Tests
Executions
4. We're Getting Married
1 #include<stdio.h>
by Jay Vince Serato
2
3 void wed_together(char *groom, char *bride);
CE Run Tests
Marriage is not only a contract -- it is a covenant.
4
5- int main(void) {
Test Cases
When Wilma Doesnt got married with Gerick Parin, her name changed into Wilma
char bride[10®], groom[100];
Doesnt-Parin. Let us also do that!
7
8
// TODO Scan the names of the groom and the bride here.
O Test Case 1
Given the groom's full name and the bride's full name, return the changed name of the
bride. I know that the bride may choose not to take the name of the groom, but for the
sake of this activity let us do so.
10
// DO NOT CHANGE THE REST OF THE MAIN METHOD.
// Doing so will nullify your score for this activity.
wed_together (groom, bride);
11
Your Output
12
No Output
13
Also, assume that the last name of both are only one word.
14
15
printf("\nCongratulations to Mr. %s and Mrs. %s!", groom, bride);
Expected Output
16
17
return 0;
Input
18 }
Groom's Name: Gerick Parin
19
Bride's Name: Wilma Doesnt
1. Groom's Name
20 // TODO change the bride 's name accordingly
21 // No need to return anything sin ce we pass by reference
22 - void wed_together(char *groom, char *bride) {
23
2. Bride's Name
Congratulations to Mr. Gerick Parin and Mrs. Wilma Doesnt-Parin!
4.
Output
24 }
O Test Case 2
Groom's Name: Gerick Parin
Bride's Name: Wilma Doesnt
O Test Case 3
Congratulations to Mr. Gerick Parin and Mrs. Wilma Doesnt-Parin!
O Test Case 4
O Test Case 5
O Test Case 6 Hidden](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F943a4d04-a5d4-4b88-9c79-2ea2cb320684%2Ff7d4793e-e169-4cc6-9f29-f9a7012a2b32%2Fp2q0wcw_processed.png&w=3840&q=75)
Transcribed Image Text:main.c
< > +c
Tests
Executions
4. We're Getting Married
1 #include<stdio.h>
by Jay Vince Serato
2
3 void wed_together(char *groom, char *bride);
CE Run Tests
Marriage is not only a contract -- it is a covenant.
4
5- int main(void) {
Test Cases
When Wilma Doesnt got married with Gerick Parin, her name changed into Wilma
char bride[10®], groom[100];
Doesnt-Parin. Let us also do that!
7
8
// TODO Scan the names of the groom and the bride here.
O Test Case 1
Given the groom's full name and the bride's full name, return the changed name of the
bride. I know that the bride may choose not to take the name of the groom, but for the
sake of this activity let us do so.
10
// DO NOT CHANGE THE REST OF THE MAIN METHOD.
// Doing so will nullify your score for this activity.
wed_together (groom, bride);
11
Your Output
12
No Output
13
Also, assume that the last name of both are only one word.
14
15
printf("\nCongratulations to Mr. %s and Mrs. %s!", groom, bride);
Expected Output
16
17
return 0;
Input
18 }
Groom's Name: Gerick Parin
19
Bride's Name: Wilma Doesnt
1. Groom's Name
20 // TODO change the bride 's name accordingly
21 // No need to return anything sin ce we pass by reference
22 - void wed_together(char *groom, char *bride) {
23
2. Bride's Name
Congratulations to Mr. Gerick Parin and Mrs. Wilma Doesnt-Parin!
4.
Output
24 }
O Test Case 2
Groom's Name: Gerick Parin
Bride's Name: Wilma Doesnt
O Test Case 3
Congratulations to Mr. Gerick Parin and Mrs. Wilma Doesnt-Parin!
O Test Case 4
O Test Case 5
O Test Case 6 Hidden
Expert Solution
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 4 steps with 2 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
![Database System Concepts](https://www.bartleby.com/isbn_cover_images/9780078022159/9780078022159_smallCoverImage.jpg)
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
![Starting Out with Python (4th Edition)](https://www.bartleby.com/isbn_cover_images/9780134444321/9780134444321_smallCoverImage.gif)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
![Digital Fundamentals (11th Edition)](https://www.bartleby.com/isbn_cover_images/9780132737968/9780132737968_smallCoverImage.gif)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
![C How to Program (8th Edition)](https://www.bartleby.com/isbn_cover_images/9780133976892/9780133976892_smallCoverImage.gif)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
![Database Systems: Design, Implementation, & Manag…](https://www.bartleby.com/isbn_cover_images/9781337627900/9781337627900_smallCoverImage.gif)
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
![Programmable Logic Controllers](https://www.bartleby.com/isbn_cover_images/9780073373843/9780073373843_smallCoverImage.gif)
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education