Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C Programming Assignment | Do not use arrays or pointers in this assignment. You may use functions Specifications You are making a silly gaming support

image text in transcribed

image text in transcribed

C Programming Assignment | Do not use arrays or pointers in this assignment. You may use functions Specifications You are making a silly gaming support application. It will consist of a Dice Roll Showdown and a Simple Character generator. You should start by giving the user an option to either do a Dice Roll Showdown or generate a character Menu (5% Spec) Show this menu and make it function properly. If the user inputs something incorrect, correct them and loop the menu and prompt. Create a function to run each item in the menu. Welcome to the fantasy player fun tool! Menu: 1 - Dice Roll Showdown 2- Generate a Character 3- Macros vs Functions Throw-dowr Choose an option: Dice Roll Showdown (40% Spec) Create a function for a simple high number wins game Ask the user how many and what size dice they want to rol1. Then have the Player 2 roll the same number of dice. Total the first player's dice and the second player's dice. High value wins. Report each roll value and the total and announce who won Note: randO comes from the C library stdlib.h Character Generator (40% Spec) Create a function to run a fantasy character generator!! The goal of this section is to procedural1y generate random fictional characters. You will generate a random number between 10000 99999 From left to right: First Digit If it is even output Good if it's odd output Evil Digit 2 & 3 Isolate these and use them to select a name from the file given. Skip the first X-1 lines (where X = the first two digits) and read that name into a C-String 16 Skip 15 linesread and store name "Cesar" (the 16th name) chain or switch-case to output the character's class name Digit 4 Determines the character's fantasy race. Use an if-else if-else 0. Human 1. Elf 2. Halfling 3. Gnome 4. Dwarf 5. Half-Elf 6. Kobold 7. Half-Ord 8. Dragon-kin 9. Construct .Digit 5 Determines the class of the character. Use an if-else if-else chain or switch-case to output the character's class name. 0. Barbarian 1. Bard 2. Cleric 3. Druid 4. Fighter 5. Wizarod 6. Monk 7. Paladin 8. Ranger 9. Rogue Keep making characters as long as the user demands. Sample Output: Welcome to the Fantasy Character generator! Seed generated 20563: 2 Good 05Lenna 6-Kobold 3 Druid Would you like to generate another character? (1yes, 0no)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored 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

Recommended Textbook for

Database Administration The Complete Guide To Dba Practices And Procedures

Authors: Craig S. Mullins

2nd Edition

0321822943, 978-0321822949

More Books

Students also viewed these Databases questions

Question

7. Identify six intercultural communication dialectics.

Answered: 1 week ago