Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a Program From Pseudocode (TCO 1) This exercise will be to use pseudocode (in the form of comments) to write a program that creates

Create a Program From Pseudocode (TCO 1)

This exercise will be to use pseudocode (in the form of comments) to write a program that creates and initializes the variables for a computer role-playing game character generator. This will only set up the variables. It is slightly different from our iLab assignment. You can make up your own variable names.

Here is the pseudocode.

// Week 1 Assignment-3

// Description: Setup Variables for CRPG Character Generator

//----------------------------------

//**begin #include files************

#include // provides access to cin and cout

//--end of #include files-----------

//----------------------------------

//**begin global constants**********

//--end of global constants---------

//----------------------------------

using namespace std;

//----------------------------------

//**begin main program**************

int main()

{

//**Enter code staring here

// Create Variables

// character ID [integer] initialized to 0

// strength [integer] initialized to 80

// armor [integer] initialized to 70

// health [float] initialized to 1.0f

// flag to indicate if the character is dead or alive [Boolean] initialized to true

// Print out each of the variables.

//**End of your code

// Wait for user input to close program when debugging.

cin.get();

return 0;

}

//--end of main program-------------

//----------------------------------

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_2

Step: 3

blur-text-image_3

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

More Books

Students also viewed these Databases questions

Question

8. Providing support during instruction.

Answered: 1 week ago