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
icon
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
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
steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
Structured English
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
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)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education