Instructions: For this assignment you will be implementing a program that plays a jumbled word (Wordwarp game
Instructions: For this assignment you will be implementing a program that plays a jumbled word (Wordwarp game
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
Code for this in C please.
![Intro to Programming in C –program 8 (larger program)
Assignment purpose: To compile, build, and execute an interactive program using functions from stdio.h (printf
and scanf), ctype.h, and string,h. A simple do/while loop, file input and character arrays and programmer
defined functions with pass by copy (input) parameters and pass reference (input/output) parameters.
#define _CRT_SECURE_NO_WARNINGS //for Visual studio compiler
#pragma warning(disable:6031) //ignore scanf warnings
#include<stdio.h> //for printf and scanf
#include<string.h> //for strlen and strcmp functions
#define SIZE 25 //size of the character arrays is 25
Instructions: For this assignment you will be implementing a program that plays a jumbled word (Wordwarp )
game
You will use 3 character arrays:
1. Jumbled word
2. Solution word
3. Guess word
The jumbled word and the solution word will be read from an input file
The user will be presented with the jumbled word
The user will have 3 chances to guess the word
If the user does not guess the word on the first guess, the first and last letters will be provided
See the sample output below
Be sure to greet the user and say goodbye to the user
Be sure to change all 3 character arrays to all uppercase letters – use the toupper function from
ctype.h, one character at a time
You will use %s to scanf the words and print the words
You will use the strlen and strcmp functions from string.h
You will use a do/while loop in the main function
Use the following programmer defined functions. DO NOT modify the Functions:
//function prototypes
void Instructions();
//Welcome the user and display the instructions on how to play the game.
void PlayoneGame (char jumbled[], char solution[]);
//input: solution word and scrambled word
//plays one round ot the game
void PlayAgain(char* againPtr);
//input: character (input/ouptput) parameter
//determines if the player would like to play again.
void Uppercaseword(char word[]);
//input: a character array with a null character (string)
//sets all of the characters in a word to uppercase letters
void Winorlose(int win);
//input a 1 or a 0
//tells the user they won if the input is 1 and they lost if the input is e](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F68aa8ca1-8980-4b11-8632-b1230c4ec876%2F0d5c5cc0-41de-415c-a826-44422bff0559%2Fbdnbp3d_processed.png&w=3840&q=75)
Transcribed Image Text:Intro to Programming in C –program 8 (larger program)
Assignment purpose: To compile, build, and execute an interactive program using functions from stdio.h (printf
and scanf), ctype.h, and string,h. A simple do/while loop, file input and character arrays and programmer
defined functions with pass by copy (input) parameters and pass reference (input/output) parameters.
#define _CRT_SECURE_NO_WARNINGS //for Visual studio compiler
#pragma warning(disable:6031) //ignore scanf warnings
#include<stdio.h> //for printf and scanf
#include<string.h> //for strlen and strcmp functions
#define SIZE 25 //size of the character arrays is 25
Instructions: For this assignment you will be implementing a program that plays a jumbled word (Wordwarp )
game
You will use 3 character arrays:
1. Jumbled word
2. Solution word
3. Guess word
The jumbled word and the solution word will be read from an input file
The user will be presented with the jumbled word
The user will have 3 chances to guess the word
If the user does not guess the word on the first guess, the first and last letters will be provided
See the sample output below
Be sure to greet the user and say goodbye to the user
Be sure to change all 3 character arrays to all uppercase letters – use the toupper function from
ctype.h, one character at a time
You will use %s to scanf the words and print the words
You will use the strlen and strcmp functions from string.h
You will use a do/while loop in the main function
Use the following programmer defined functions. DO NOT modify the Functions:
//function prototypes
void Instructions();
//Welcome the user and display the instructions on how to play the game.
void PlayoneGame (char jumbled[], char solution[]);
//input: solution word and scrambled word
//plays one round ot the game
void PlayAgain(char* againPtr);
//input: character (input/ouptput) parameter
//determines if the player would like to play again.
void Uppercaseword(char word[]);
//input: a character array with a null character (string)
//sets all of the characters in a word to uppercase letters
void Winorlose(int win);
//input a 1 or a 0
//tells the user they won if the input is 1 and they lost if the input is e

Transcribed Image Text:Sample Output:
Welcome to the JUMBLED game
You will see the word in scrambled form.
The jumbled word will be displayed.
Next you guess the word
If you do not guess the word on the first try
The first and last letters will be displayed
You will have three guesses to figure it out!
There are 9 letters in the word
Guess this word:
SPANHPSIE
pansies
--PANSIES is not the word
--that was guess number 1
--Here is the first letter: H
--Here is the last letter: S
There are 9 letters in the word
Guess this word:
SPANHPSIE
happens
--HAPPENS is not the word
--that was guess number 2
--Here is the first letter: H
--Here is the last letter: S
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 2 steps

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
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

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)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON

Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education