(I am simplifying the program to variables h & i)

I have previously defined functions F(x) and f(x).

Also, that the values of h & i are initially:

i: 0 h: some arbitrary value

This is what I have and what I want to add:

Code:

```
P(h,i);
block([],
if f(h)>=0
then i:i+1 **(*AND DO ANOTHER TASK* h:F(h))**
else **PRINT i AND PRINT h**
);
```

“If” Command—Iterations and More using wxMaxima]]>

Where y = 17, and M = 20192834? My H value is wrong from my previous tries.

I think my order of operations is wrong. Function for code would be helpful. Already familiar with mod_inverse. (Python 3)]]>

information, parses it, and writes formatted summary information. The textfile is called

MonthlyHistory.html

I cannot figure out how to write a loop that averages the third set of numbers in the string.

an example is the bold number ..ect

2015-10-1,

Code:

```
fid = fopen('MonthlyHistory.html');
str = fgets(fid);
for (i=1:1:31)
a...
```

I can't figure out why the counter is not working, I have tried moving it before the cout line and after. I should only get two outputs but as of now, I get four. Here is what I have so far:

Code:

```
#include <iostream>
#include <string>
using namespace std;
int main() {
int userInput1;
string userInput2;
int counter = 1;
cout << "Enter Input 1: ";
cin >> userInput1;
cout << userInput1 << endl;
cout << "Enter Input 2: ";
cin >> userInput2;
cout <<...
```

1) Create a "Item" class with the following members and functions:

HTML:

```
Item_name
Item_price
item_qty
get/set functions
```

vector to hold items

HTML:

```
insertToCart // also should update item prices by qty amount when inserting
deleteItem // searches for items and deletes it
averagePrice // adds all items prices...
```

My assignment is to ask the user for a number between 3 and 10 (inclusive). Using a loop, calculate the product of the numbers between 2 and that number. For example, if the user chooses 5, the result would be 2 x 3 x 4 x 5 = 120.

Sample run: When input is:

5

The output exactly matches

Please enter a number from 3 to 10: 5

2 x 3 x 4 x 5 = 120

So far I have come up with this, which works perfectly for input 3 through 5. However, the...

C++ Homework Help]]>

I have a non-math-related question, it is about a video.

I have recorded a video using oCam. After that, when I wanted to see it, I got an error message with code 0xc00d36c4.

Then I read in Google than one possible way to solve this, is to open the video with VLC-Player, but it didn't work.

Do you maybe have an idea what I could do? Or can we not fix this anymore? ]]>

Hello MHB! I need if you can help me with this problem. Thank you.]]>

I can’t understand what the error is

Karnaugh map]]>

I read a book on graph theory by West and is interested to learn algorithmic graph theory now.What algorithms are important in algorithmic graph theory in all fields such as planarity detection,1-factor ,hamiltonian cycle detection,finding eulerian tour,greedy coloring,graph realization]]>

I would really appreciate your folks help, thanks in advance

I wasn't sure wether to post this in the computer science or statistics category so I posted it in both, sorry about this.]]>

At a relocation we have $N$ objects with the same weight that we want to pack in boxes. We have at our disposal boxes of capacity 1,2,5,10 and 20 objects (so many that we want from each size). In order the objects not to move at the transfer, each box should be completely full. I want to write and analyze a greedy algorithm that computes the minimum number of boxes needed to pack the objects.

I have thought of the following algorithm:

Code:

```
boxes=0
remaining=N
while...
```

public class GravityCalculation {

public static void main (String [] args) {

double...

Acceleration of Gravity in Java]]>

Let a matrix with $n$ integers in the interval $[1,100]$. I want to write an algorithm that sorts the elements of the matrix in $O(n)$. [Hint: Count and use the number of times that each number appears]

I have thought the following:

We create a matrix with $100$ entries. If the matrix contains for example 1 $1$ we put 1 at the first cell. I have written this as follows:

Code:

```
int matrix[100]
int count[100]
int new_matrix[n]
for i=0 to 99
count[i]=0
end
for i=0 to...
```

0

1

2

3

Sample program:

Code:

`#include...`

I am looking at the following:

The Turing table of the following modified Turing machine is given:

Change this into an ordinary "Turing machine" (i.e., one that either writes or moves the head). Give the appropriate Turing table.

Give also the Turing table of an equivalent (unmodified) Turing machine with at most eight states and justify the equivalence.

Could you give me a hint how we could do that? I don't really have an idea...

(un)Modified Turing Machine]]>

We have the number \begin{align*}70&6737922567786324304462189150536772513339293263220644

\\ &=2^2\cdot 3\cdot 59^5\cdot 103\cdot 149^2\cdot 353\cdot 607\cdot 823^4\cdot 1409\cdot 1873^2\cdot 4201^3\end{align*}

I want to check if this is a Gödel number of a Turing machine.

From the prime factorization we have that $m=2$ and $k=1$.

The Gödel number is then of the form \begin{align*}G&=p_1^mp_2^k\prod_{i=1}^{(k+1)(m+1)}\prod_{j=3}^4p^{c_{ij}}_{\sigma_2(i,j)} \\ & =...

Is this a Gödel number of a Turing machine?]]>

I am looking at the following exercise:

Construct a composite Turing machine $M$ that has a word $w$ over the alphabet $A = \{a, b\}$ tests to see if it's made up of two equal parts, that is, if $w = uu$ with $u \in {a, b}^+$.

In this case, at the end of the method a $1$ has to be after the input $w$ otherwise a $0$.

Furthermore, $M$ should stop on the space after the $1$ or $0$. At the beginning of

the calculation the write/read head is on the first symbol of $w$.

The...

TM: Is the given string of the form uu?]]>

Sx = Sy -----> x = y

The converse, which characterizes S as a function:

x = y ------> Sx = Sy

Is never shown. Neither is it shown as an Axiom of FOL or formal Theory of Arithmetic. From the basic axioms and rules of FOL, how does one go about deriving the latter expression formally? Any help or references appreciated. am]]>

Are these Q-sentences added to the axioms of Q when applied in some formal proof? Otherwise, where or how do they appear?

Thanks for any help.

I learnt about Eisenstein's irreducibility criterion. But it's still hard for me to implement it when the integer coefficients may be as larger as 1e9.

What's more, how can I (or my computer?) know when to change x into x+a?

It really puzzles me()??]]>

That much is clear. But then it goes on to say:

G is true if and only if G is consistent with Q.

We know that Q is sound (and thus consistent), so can someone please explain what "consistent with Q" means.

Thanks for all help.

I am very new in Graph Theory, and am currently trying to figure out it's potential to solve my research problem. Here it goes:

I have a large physical network (10000 nodes, around 14,000 edges), it can be represented by an undirected weighted graph. Many portions of the network might have some similar structure. Is there any way to identify the similar portions?

I am curious about any index which may tell something about topological similarity or similarity in weights, etc.

Regards...

How to detect similar graph structure in a large network represented by undirected weighted graphhhh]]>

Are there reasons for studying them beyond the strictly abstract realm?

All contributions appreciated.

O2: For any n, Q ⊢ ∀x ({x=0 v x=1 v...v x=n} → x≤n)

03: For any n, Q ⊢ ∀x (x≤ n → {x=0 v x=1 v...v x=n})

O3 is proved by induction. O2 is not. It would appear as if induction would be required in both cases.

Any guidance on why?

Many thanks, am]]>

May I know how to modify my own Python programming so that I will get the

same picture as refer to the attached file - Adaline Stochastic gradient descent

(I am using the Anaconda Python 3.7)

Prayerfully

Tron]]>

Many thanks.

$\sum$={a,b};

c)

L={w:${n}_{a}$(w) mod3 < 1;]]>

Thanks for all help.

The axioms of "Baby Arithmetic" do not include them, so does this mean they are somewhat hidden in the undefined "standard propositional logic" used? He mentions, for instance, that the theory trivially proves '0 = 0'...

Question about identity axioms]]>

We will know its a compete tree if (heightOfShortestSubTree -heightOfTallestSubTree<=1).

Normal transformations of BSTs which I know of, wont be fully right because those try to keep the order of numbers correct i.e smaller numbers on the left, bigger on the right. But in this question, order of numbers...

Balancing a Syntax Tree]]>

The question first asks to generate a UML class diagram for a bus company, which I did in the attached image. The methods arent filled in. Then the Q asks to" generate several XML DTDS, with atleast 1 attribute in each DTD, and take care to represent associations between classes"

Im familiar with creating a DTD given an XML document but in this case, what would be the layout of the dtd in this case?

Does that mean one DTD for each class?

Thanks for...

Creating XML DTDs from UML Class Diagram]]>

implement a bounded buffer queue (BBQ) , where lock variable is used to synchronize the access of queues. 20 threads are created with 10 producers and 10 consumers. The size of the queue MAX should be a constant and can be changed (at of time of testing). Your program should display the following events on screen...

C++ BBQ Threading]]>

In case you are unfamiliar with it, there is a pseudocode version here.

I can't copy/paste it because it has...

What Type of Math is Used in Fortune's Algorithm?]]>

I have been working on this for HOURS for the last few days and cannot figure out where or what I'm doing wrong. Please give me hints on getting my next and previous buttons to work with the delete. :-(

Thank you...

Updating an index variable in Java]]>

To implement multiproprocessing, time is divided into small intervals and the execution of each job is restricted to only one time _____________ at a time.

]]>

I've tried looking through stackOverflow for similar problems and have tried stepping through with the debugger.

Inside my flashCard Model

Code:

` public int...`

I don't know how to access a user to figure out if it's a learner or an admin. I have been trying to gain access to the method hasSpecialAccess to determine this but can't figure out how to reach it.

Would it be easier if I override this method in my children classes...

Java- How to allow access to a different GUI menu for Learner and Admin]]>

Im glad to be here....

I have written a paper on a new type of network for NLP but i have lingering questions on how efficient and effective it is....this is a link to it on my blog...

ABSTRACT submited

So the following is a more formal framing of efficiency and effectiveness in this network that i would appreciate input on.

i have a type of network...it has one output node connected to all 4 hidden...

Convexivity issues in a new type of network - NLP]]>

Code:

```
import java.util.Scanner;
public class ShippingCalculator {
public static void main (String [] args) {
int shipWeightPounds = 10;
int shipCostCents = 0;
final int FLAT_FEE_CENTS = 75;
shipWeightPound = shipCostCost / shipWeightPound;
final int CENTS_PER_POUND;
System.out.print("Weight(lb): " + shipWeightPounds);
System.out.print(", Flat fee(cents): " + FLAT_FEE_CENTS);
System.out.print(", Cents per pound: " + CENTS_PER_POUND)...
```

Code:

```
import java.util.Scanner;
public class ComputingTotalCost {
public static void main (String [] args) {
int numDrinks = 0;
int numTacos = 0;
int totalCost = 0;
numDrinks = 4;
numTacos = 6;
<____*MY section to fill out*
System.out.print("Total cost: ")...
```

The problem comes from my containsRecursive() method. I need to use a String name to find if the name is already in my Binary Search Tree.

Here's what I've tried:

Creating my own compareTo() method in my inner Node class

Code:

```
public int compareTo(Dog t) {
int comparisonVal = this.data.getName().compareTo(t.getName());
if...
```

I'm not clear about how an instruction such as "Go To" can be considered an algorithm, or if it...

Algorithmic Numerical Domain]]>

All help appreciated. am]]>

Cars counted: 12

Code:

```
#include <iostream>
using namespace std;
class CarCounter {
public:
CarCounter();
CarCounter& operator=(const CarCounter& objToCopy);
void SetCarCount(const int setVal) {
carCount = setVal;
}
int GetCarCount() const {
return...
```

My

I haven't figured out how to implement it within my switchCriteria() method, so I've been trying to use my addDogObject() method to sort them as they are added to the tree.

When I run my program and enter to sort by weight first, all of my numbers are sorted correctly.

However, if I...

Binary Search Tree - Sort the same BSTree by name or by weight]]>

Question: Write a Mealy finite state machine that produces the 2’s complement result of subtracting 1101 from a binary input stream (assuming at least 4 bits of input).

So our input here is e.g. 10010101 or 001011 or something similar, and we want to first subtract 1101 from the input and then convert it to a 2's complement number using a Mealy model? So if we get 10010101, we'd first subtract 1101 and get 10011000, and...

Writing a Mealy model for the 2's complement of subtracting 1101?]]>

I want to write a progarmm in python that reads two lists A, B and checks if the one of the lists is a circular shift of the other list. The result is either True or False.

I thought to do something like that:

Code:

```
if sorted(A) == sorted(B):
C = True
else:
C = False
```

Could you...

Is the list a circular shift of the other?]]>

]]>

I have a question, would like to have your opinion on the matter.

In the Logo programming language, I draw a red blue circle and put a turtle in it. I have specified that the turtle will move forward constantly, but, when approaching a white background (the page's background), it will turn right by 135 degrees. As a result, every time the turtle comes to exit the circle, it turns around and moved forward another way, staying in the circle. In this way the turtle never escapes...

Logo - Help the turtle escape the room]]>

HTML:

```
//code example
cout << "Generate 500 random numbers:" << endl;
const int nnn = 500;
int numberOfArray3[nnn];
for (i = 0; i < nnn; ++i) {
numberOfArray3[i] = rand() % 100;
cout << numberOfArray3[i] << " ";
}
```

I dont know if this is correct or not. Here is the code my professor gave us.

Code:

```
.........................Java............................
public static void quicksort(char[], int left, int right)
{
int i, j;
i - left; j - right;
x = items[(left+right) / 2];
do
{
while([items[i] < x) && (i <right)] i++;
while[(x < items[j]) && (i >...
```

Shopping cart object problems using methods, and arrays no arrayLists. java]]>

Code:

```
public class GravityCalculation {
public static void main (String [] args) {
double G = 6.673e-11;
double M = 5.98e24;
double accelGravity = 0.0;
double distCenter = 0.0;
distCenter = 6.38e6;
/* Your solution goes here */
System.out.println("accelGravity: " + accelGravity);
return;
}
}
```

Code:

```
public class SphereVolumeCalculator {
public static void main (String [] args) {
double piVal = 3.14159;
double sphereVolume = 0.0;
double sphereRadius = 0.0;
sphereRadius = 1.0;
System.out.println("Sphere volume: " + sphereVolume);
return;
}...
```

I am stuck on this java problem. I was wondering if anyone can figure out what I am doing wrong. Thank you!

1. Given an array of ints, return true if there is a 1 in the array with a 2 somewhere later in the array.

ex: has12([1, 3, 2]) → true

has12([3, 1, 2]) → true

has12([3, 1, 4, 5, 2]) → true

2. Given two arrays of ints sorted in increasing order, outer and inner, return true if all of the numbers in inner appear in outer. The best solution makes...

Java array and methods problem]]>

Create a program using conditional logic and string operations that does the following using your NetBeans IDE and upload it here:

(1) Use scnr.nextLine(); to get a line of user input into a string. Output that line. (1 pt)

Ex:

Enter text: IDK how that happened. TTYL.

You entered: IDK how that happened. TTYL.

(2) Expand common text message abbreviations. Output a message for each abbreviation that is expanded...

3.15 Program: Text message expander (Java)]]>

My current problem: I need my switch statement to show only the given information for each selected shape.

For example when I click "circle" on the drop down menu, I want my switch to ask for the radius only while showing my compute button and answer.

When I click "triangle" on the drop down menu, I want my switch statement to ask for the base and height ect. ect.

I eventually want to be able to click the compute button to display that selected shape. The numbers...

JavaScript Beginner Simply making JLabels and JtextFields to show on a switch statement..]]>

Code:

```
import java.util.Scanner;
public class TextMsgAbbreviation {
public static void main(String[] args)
{
String BFF ="best friends forever";
String IMHO ="in my humble opinion";
String TMI = "too much information";
String LOL = "laughing out loud";
String IDK="I don't know";
Scanner=new...
```

Code:

```
Here is my problem a*b/c+d/e/f:
*there is no code because professor ask me do hand write it out*
My answer: abc*/def//+
is this correct?
```

Another thing I'm having trouble with is calling the return value from a function when the parameter is a single vector. The c++ forum explains how to call the return when the parameters are variables and I get that but there's no example with vectors...

[C++] How to return and call vectors from functions?]]>

I am new to the forum. Programing was never an interest of mine but it’s an unfortunate requirement for classes I am taking I could really some help. I have tried fixing the code the best I can, but when I run this through Netbeans, no matter what numbers I put in for Wall height and Wall width, I still get an answer of 0. I have no idea what I am missing and I’ve read the (unhelpful) textbook over again. Is there anyone who sees what I am doing wrong and could explain to me...

Help with Java programming]]>

Question:

For any element in keysList with a value greater than 100, print the corresponding value in itemsList, followed by a space. Ex: If keysList = {42, 105, 101, 100} and itemsList = {10, 20, 30, 40}, print:

20 30

Since keysList[1]...

Multiple arrays: Key and value.]]>

HTML:

`7+3*4/2-5-3+4`

HTML:

```
class Node {
private:
int Nodedata;
Node *next;
Node() {next = NULL; Nodedata = 0;}
Node(int data = 0, Node *nextNode) { //overloaded constructor
Nodedata = data;
next = nextNode;
}
};
public:
void insertToFront();
void insertBack();
void...
```

HTML:

```
#include<iostream>
using namespace std;
class Node {
public:
int Nodedata;
Node *next;
Node() {next = NULL; Nodedata = 0;}
Node(int data, Node *nextNode) { //overloaded constructor
Nodedata = data;
next = nextNode;
}...
```

These are my values in the nodes: 9->1->2->4->10->6->8

HTML:

```
//part F will tranverse in the middle and delete the middle
void insertMiddle(Node *nn) {
while(nn->next->next->next != NULL) {
nn = nn->next;
}
delete nn->next;
nn->next = NULL;
}
int main() {
// part A
Node *a;
a = new Node(1,NULL);
Node *b;
b = new Node(2,NULL);
Node *c;
c...
```

I have a question. I have to create a calculator for grades. I need to make a menu and the student picks either the lab or the lecture which I didn't have a problem with. I also didn't have a problem with the set up of the questions or the average calculations. What I am stuck on is: I was given percentages for the lecture: 50% of exams, 35% of quizzes and homework, and 15% class participation, and lab has 90% lab assignments and 10% lab participation. I have to ask the person to...

iGrade java]]>

The problem is:

"Simon Says" is a memory game where "Simon" outputs a sequence of 10 characters (R, G, B, Y) and the user must repeat the sequence. Create a for loop that compares the two strings starting from index 0. For each match, add one point to userScore. Upon a mismatch, exit the loop using a break statement. Ex: The following patterns...

Simon Game Java]]>

I am stuck on a Java problem in my textbook. Can anyone help me? I have tried many variations to no avail thank you.

Question:Write code that prints: userNum ... 2 1 Blastoff! Your code should contain a for loop. Print a newline after each number and after Blastoff!. Ex: userNum = 3 outputs:

3

2

1

Blastoff!

My code:import java.util.Scanner;

public class CountdownRocket {

public static void main (String [] args) {

int userNum = 0;

int i = 0;

userNum = 3...

Java help]]>

I am reading about the Method of Four Russians from here.

We divide the dynamic programming table $D$ into $t$-blocks such that the last row of a $t$ − block is shared with the first row of the $t$ − block below it (if any), and the last column of a $t$ − block is shared with the first column of the $t$ − block to its right (if any).

Instead of filling all the cells of the...

Method of Four Russians]]>

How do I make the output display this instead?

Information regarding AirCraft: 2000 parsecs 4 Passenger1[The Twilight Zone, First Class Bunker] Passenger2 [ Bermuda Triangle, Near the Bathroom]...

Java Help with displaying an array list while using other classes]]>

Code:

```
for i := 1 to n { //i=1 and n=4
for j := i to n { //j=1
B[i][j] := 0
for k := i to j {
B[i][j] := B[i][j] + A[k]
}
}
}
```

I want to know what the values of B

Finding values in a 2 dimensional array]]>

computation of a string expression (exp). For example:

calculate(“54321+222”) will return 54543

calculate(“120*20”) will return 2400

calculate(“235/3”) will return 78

calculate(“356-32”) will return 324

My code:

HTML:

```
// function should return int, not void: int calculate(..)
int calculate(string exp)
{
int answer = 0; // store answer in here
string left = "right";
char op; //operator
int i = 0...
```

these are the following functions:

Code:

```
my_string my_string::operator+=(const my_string& q)
my_string my_string::operator+=(char c)
```

Code:

```
int capacity;
int size;
char *ptr;
```

Here is the attachment for my lab and just need some clarification and guide if I am going in the right direction?

HTML:

```
// Januaray 24 2017
// Lab 0
#include <iostream>
#include <string>
#include <cmath>
using namespace std;
const int COLUMS = 5;
int a;
void findMin(int a[], int size)
{
int min = a[0]; // temp variable........array dont use dot
for (int i = 0; i < size; ++i)
{
if (min > a[i])
{
min = a[i];
}
}
return min;
}...
```

The attached 5 page PDF is one such effort inspired by a book on the history of PI. The software has been coded and shows methods of computation of PI. I hit a bit of...

Integer Arithmetic for Precise Calculation of Irrational Numbers]]>

We have that MIMA (Neumann MInimal MAchine) has the following commands:

Code:

```
LCD const : Load constant
LDV adr : Load value from address
LDIV adr : Load value indirect from address
STV adr : Set value at address
STIV adr : Set value indirect at address
```

Code:

```
NOT : Inverse of the constant-bits
RAR : Rotate accumulator right
```

Implement the function]]>

Let G=(N,T,S,P) be a grammar with the non-terminal symbols N={S,E,T,Z,Q,C,D}, the terminal symbols T={0,1} and the production rules

Code:

```
P={ S -> E | Z | Q,
E -> 1E | 0T | ε,
T -> 1T | 0E,
Z -> 1Z | 0E | ε,
Q -> CD,
C -> 0C | 0,
D -> 1D | 1}
```

From the above rules we get for example the words [m]11010111010[/m], [m]11000110110[/m], [m]0000001111111[/m]...

Which is the language L(G)?]]>

My professor told us that there is a built in c++ library to make this easy, I've been searching everywhere but I have no idea what library this is.

thanks.]]>

I am an amateur coder, I love learning coding. I have about 4 months of experience with C++. I used a lot of MatLab last year for my math classes, I also learned some...

Code language for editing PDF files]]>

The file

30-seconds worth of Johann Sebastian Bach's Fugue #2 for the Well-Tempered Clavier. You are

to write MATLAB code that loads this file, synthesizes the notes with correct timing, and then

plays the notes.

You will also prepare a document discussing possibilities for the...

Creating music with MatLab]]>

Code:

```
Based off of the following code what is the output of the main function?
void Swap(int& x, int y){
int temp = x;
x = y;
y = temp;
return;
}
int main(){
int a =12;
int b = 3;
Swap( b, a);
cout << a << “ “ << b << endl;
return 0;
}
output : 12 12
```

This is my own personal project that i'm trying to get right but i ran into a bit of a problem.

Here's the idea:

I want to make a text based game where the player inputs data such as choices or numbers reflected whats asked of them from the program. The below program is "suppose to" be were a player trips a bomb and it counts down from 60 to 0 and the player has that many seconds to input a 3 digit code before the timer reaches zero.

My question is how can i get it to...

Bomb game project]]>

HTML:

```
#include <iostream>
#include <cstdlib>
using namespace std;
class Node {
public:
Node();
Node* prev;
string key;
Node* next;
};
Node::Node(){
prev = 0;
next = 0;
}
class LinkedList {
public:
LinkedList();
void Insert(string key);
void Print();
Node* Find(string key);
void Delete(Node* x);
Node* head;
}...
```

Code:

```
#include <iostream>
using namespace std;
class CarCounter {
public:
CarCounter();
CarCounter& operator=(const CarCounter& objToCopy);
void SetCarCount(const int setVal) {
carCount = setVal;
}
int GetCarCount() const {
return carCount;
}
private:
int carCount;
}...
```

Code:

```
#include <iostream>
using namespace std;
class InventoryTag {
public:
InventoryTag();
int getQuantityRemaining() const;
void addInventory(int numItems);
private:
int quantityRemaining;
};
InventoryTag::InventoryTag() {
quantityRemaining = 0;
}
int InventoryTag::getQuantityRemaining() const {
return quantityRemaining;
}
void InventoryTag::addInventory(int numItems) {
if (numItems > 10) {
quantityRemaining = quantityRemaining +...
```

white, or blue.

Define the relation R between bracelets as: (B1, B2),

where B1 and B2 are bracelets, belongs to R if and only

if B2 can be obtained from B1 by rotating it or rotating it

and then reflecting it.

What are the equivalence classes of R?

I'm a little lost on how to make these classes, is it just something like

(red, blue, white), (red, white, blue), (blue, red, white), (blue, white, red) etc?

Thank you for your help.]]>

Code:

```
#include <iostream>
#include <cstdlib>
#include<string>
using namespace std;
class Node {
public:
Node();
Node* prev;
string key;
Node* next;
};
Node::Node() {
prev = 0;
next = 0;
return;
}
class LinkedList {
public:
LinkedList();
void Insert(string key);
void Print();
Node* Find(string key);
void Delete(Node* x);
Node* head;
};
LinkedList::LinkedList() {
head =...
```

So for an assignment, we have to write a program for the pig dice game.

You are to finish the program below that implements the dice game PIG played by 2 human players.

Pig is a dice game where each player during their turn rolls a 6-sided die. If the player rolls a 2 through 6, they decide whether they want to keep their turn score or roll again. If they roll a 1, the player loses all the points for that turn, thus receiving a turn score of 0 and that turn is over.

The first player...

C++ Pig Dice Game]]>

My code:

Code:

```
public class Inequality
{
public static void main(String[] args)
{
// list of incomes in thousands
int[] income = {2,10, 532, 4, 53, 28, 291, 38, 6, 17, 73, 21};
int sum = 0;
int average;
int aboveAverage = 0...
```

https://blackboard.learn.fresnostat.../ECE72-01-74696-2167/Project 2 Directions.pdf

Code:

```
// This is my for loop that i have to use to access my picture but unsure if it correct
// THIS IS NOT FOR...
```

If an invalid character is entered, continue to prompt for a valid choice. Hint: Implement Quit before implementing other options. Call PrintMenu() in the main() function. Continue to call PrintMenu() until the user enters q to Quit

what I'm i doing wrong on this...

Need help with C++ program (Implement a PrintMenu() function)]]>