49,761 Topics

Member Avatar for
Member Avatar for lilindiekid

Can anyone help me to write combat class? 1. Combat between two creature cards: Reduce the defending creature’s HP by the attack power of the attacking creature card AND reduce the attacking creature’s HP by the attack power of the defending creature card. If either the attacker or the defender …

Member Avatar for rproffitt
0
62
Member Avatar for lilindiekid

1. Combat between two creature cards: Reduce the defending creature’s HP by the attack power of the attacking creature card AND reduce the attacking creature’s HP by the attack power of the defending creature card. If either the attacker or the defender or both of them is/are reduced to 0 …

Member Avatar for rproffitt
0
108
Member Avatar for pdk123

Hello, I want to call the function from a python file. By googling, it looks like I need to use the following function. I added a "Sample.py" in the same place where the exe is stored for the c++ . int main() { Py_Initialize(); // Create some Python objects that …

Member Avatar for pdk123
1
862
Member Avatar for Denis_12

Write a program that stores information about the products in a single linked list that is being sold in a store: product code, product name and price. In the second single linked list stores data on products purchased by individual customers. Each of the element of the second list represents …

Member Avatar for rproffitt
0
58
Member Avatar for Bruno_14

Write an algorithm and draw a flowchart that will calculate the roots of quadratic equation . Consider decision structures when b2 - 4ac > 0 b2 - 4ac = 0 and b2 - 4ac < 0

Member Avatar for rproffitt
0
17
Member Avatar for Sachin_27
Member Avatar for rproffitt
0
20
Member Avatar for lilindiekid

Hi guys! I am currently using c++ and I wanted to start doing basics of a game with oop. And I thought MGT would be good. So, the problem is idk where to start with. I'm planning to use only Land, Creature, Enchantment and, Sorcery cards. so is there any …

Member Avatar for JamesCherrill
0
141
Member Avatar for eman_12

[You may use arrays] Credit Card Number Validation Payment card usage in Egypt is on a steady rise. According to the CBE report there are over 22 million active debit and credit cards in Egypt. This means that vendors accepting payments through these cards need to have a way of …

Member Avatar for rproffitt
0
144
Member Avatar for KareemRj

Hello, looking for help in implementing a game. I don't know if anyone is familiar with it. No Third Libraries allowed. I've been on it for 3 weeks and I've been getting a lot of errors. Researching everything and looking for all the help I can get. Keep in mind …

Member Avatar for rproffitt
0
99
Member Avatar for Tevita
Member Avatar for Uzair_9

In this function you have to display the current time and date of your system. You can use built-in functions and/or pre-processor directives for this purpose. Your output should be in the following order 1) Day 2) Date 3) Month 4) Year 5) Hour 6) Minute 7) Seconds Note:  …

Member Avatar for rproffitt
0
34
Member Avatar for ABHIJEET_7
Member Avatar for Sardar_6

Q.No2 Write a C++ program which ❼ take two 4 × 4 matrices and add them ❼ aske user whether to add or subtract or exit ❼ do as directed Note: The program must keep on running unless the user chose exit option.

Member Avatar for Dani
0
19
Member Avatar for sabir khan
Member Avatar for zak99

Consider the following implementation of the node and doubly linked-list: Extend the class doubly_linked_list by adding the following methods: *Largest method .This method should return the largest element in a doubly linked-list. *Delete method. This method should delete the first occurrence of an element (value) from a doubly linked-list. template …

Member Avatar for Dani
1
91
Member Avatar for Siti_4

Construct a program in C++ to calculate a net selling price of a car from variety of models. The requirement of the program are: a. The program should be developed according to object oriented programming language which contain: i. A class with a proper naming convention. ii. A constructor with …

Member Avatar for JamesCherrill
0
88
Member Avatar for Johny_5
Member Avatar for Alina99900000

Write C++ Function named “ReverseIt” in which use enter a number, program reverse it and display reversed number on the console

Member Avatar for rproffitt
0
24
Member Avatar for TB_651
Member Avatar for Ayna_1

Hi! When I am running this code, the output looks how I expected it to be, but the problem is that I cannot go back to home page whenever I want to. I dont know why but when I tried to go back to home page after visiting the tips …

Member Avatar for rproffitt
0
68
Member Avatar for Battlecode10

I am currently creating a Hangman program using Object oriented programming in C++. I tested my words class and it runs perfectly with a sample main that I was using. The classes that I need help with are Hangman and HangmanConsole. I am not sure what to do to get …

Member Avatar for Dani
0
79
Member Avatar for Mnashmanne

: Mining Temperature Data The highs and lows of the 3 first weeks of 2020 temperature data are available on a piece paper and we have decided to store them in a three-dimensional array in which the first index represents the 3 first weeks of the year, and take the …

Member Avatar for rproffitt
0
97
Member Avatar for motseilekgoa

using recursion, write a c++ function findlargestNode() which returns the largest node in a bst

Member Avatar for rproffitt
0
24
Member Avatar for mehmoodfahad199

Implement a class for vehicleType with data members "int YearModel, int speed and make (of type string or charll)". With following member functions; - Constructor with parameter, receiving "YearModel and make" and initialize other data members with ZERO. - int GetYearModel() const; - int GetSpeed( const; - string GetMake() const; …

Member Avatar for rproffitt
0
23
Member Avatar for Jonah_4

What are the byte values of basic data types : char , int , long , long long, float, double.?(using sizeof() )?

Member Avatar for Husoski
0
139
Member Avatar for Aldrich_2

I have a variable called **arrayForStudents**. it has 5 columns you can see how should it be applied from line 51 to line 63 code block but I am getting trouble how should I add the value as simple as interting values in the database. I need help using System; …

Member Avatar for rproffitt
0
90
Member Avatar for ytgaamer

I am making a tic tac toe game, and have completed it. Now I am trying to implement a library to my code and I chose ncurses, because it seems easier to add and will allow me to change the color of the input for the game. However, I can't …

Member Avatar for rproffitt
0
147
Member Avatar for Claire_6

Hi! I need help with my assignment. I need to convert this one to C language. I've already changed the cout to prinf, but somehow it doesn't run. Help please. #include <stdio.h> int main(){ int order,no_deals; cout<<"Grocery"<<endl; cout<<endl; cout<<"(1) Eggs 6 pesos only."<<endl; cout<<"(2) 1 kl Rice 60 pesos only."<<endl; …

Member Avatar for rproffitt
0
97
Member Avatar for MD_546

QI: Write a C ++ program, using function, to counts uppercase letter in a 20 letters entered by the user in the main program.

Member Avatar for rproffitt
0
17
Member Avatar for Brylyn Crish

A sari-sari store needs a program that can help it add the corresponding profit and VAT values to its inventory. The program should add 5% to the base price for the profit amount. The 12% VAT should be added to the price after the solving for the price with profit. …

Member Avatar for jwenting
0
47

The End.