51,592 Topics

Member Avatar for
Member Avatar for Hussein Halem
Member Avatar for Eisya

helo! im an comp engineering student and i need ur help. i have to do a Reminder system using assembly language |-ask user key in input |-clock system |-timer system |-output. thats the basic idea that i have for now. we are using the emulator x86, here the link https://carlosrafaelgn.com.br/Asm86/ …

Member Avatar for Russ_4
0
258
Member Avatar for JoBe

Hello ladies and gents, Chapter 3 exercise 3-1: [quote]Suppose we wish to find the median of a collection of values. Assume that the we have read some values so far, and that we have no idea how many values remain to be read. Prove that we cannot afford to discard …

Member Avatar for Alfonso_4
0
878
Member Avatar for منتظر_1

With the help of the term "class and object", develop a C++ program that finds the average of each row in a 2D (3*4) array of integers. Each average value should be assigned as an initial value for a private variable. Thereafter, you need to find the factorial of each …

Member Avatar for rproffitt
0
31
Member Avatar for Alamir Rangel
Member Avatar for Abdaullah
Member Avatar for r2012344j

Write a program in C++ which prompt the user to enter the value of hours worked and the program will compute and display the gross pay and netpay.The gross pay is calculated as hours worked times the rate for the first 40 hours, plus hours worked times 1.5 times the …

Member Avatar for rproffitt
-1
82
Member Avatar for Ahmed_191

#include <iostream> using namespace std; void func1(); void func2(); int count; int main() { int i; for(i=0; i<10; i++) { count = i * 2; func1(); } return 0; } void func1() { cout << "count: " << count; cout << '\n'; func2(); } void func2() { int count; for(count=0; …

Member Avatar for Schol-R-LEA
0
35
Member Avatar for ______-----

Microscopic Multiply We want to simulate a small square surface of an area with micro-organisms (like bacteria) and how they spread every cycle of life (iteration) on this surface. This surface is 2-D, its size is nxn and each 1x1 space forms a block. Each can be empty or hold …

Member Avatar for Belal_3
1
897
Member Avatar for Arthur090

Hello, I created a C ++ program, which I linked to a game. I gave an address on which I can give actions, for example mouse event, it works. My goal is to insist that when this value is correct the mouse will stay on this object even if I …

Member Avatar for rproffitt
0
29
Member Avatar for Syazwanakmal

a)Prepare and call a function that can display all seat setting in main theatre that has 48 seat organize in 6 rows and 8 column as shown below. b)Use array and looping command ‘for’ to display all seat setting and ‘1’ represent a seat is booked and ‘0’ represent a …

Member Avatar for rproffitt
0
63
Member Avatar for Mishii
Member Avatar for Arsh_2
Member Avatar for fugnut

I would like to have the user enter ctrl-z to end the program...can someone tell me how to insert this into the following program? [CODE]//Program to calculate greatest common denominator of two integers #include <iostream> using namespace std; int calcGCD(int, int); int main() { int a, b, res; cout <<"This …

Member Avatar for mohammad reza_1
0
7K
Member Avatar for soso_2

write a program that asks the users to input three numbers (x,y,z) and calculate the sum, subtraction, multiplication, and division of the numbers (x/y)/z using functions. There is also a function to print the results.

Member Avatar for rproffitt
0
25
Member Avatar for MIRZA SAJID_1

Develop a C++ function that accepts int array & char array and the array’s size as arguments. Read file, which contains the mix of name and number. Make sure to regrow your array.

Member Avatar for rproffitt
0
65
Member Avatar for Afrah

Write the main such that it reads two integers: Start and End and calls the void function of part ‘a’ in order to print the average of integers divisible by 3 in the range: [Start..End].

Member Avatar for rproffitt
0
49
Member Avatar for aq9875942

Write a C++ program to get ages of ten (10) students from user and then display on console using array. Also, there should be restriction like age should only be in the form of integers and name should be in proper format. E.g., Name should not be 123 or abc.

Member Avatar for rproffitt
0
33
Member Avatar for Puvaan

#include <cstdio> #include <iostream> #include <string> using namespace std; using std::string; // function to get maximum string of characters size_t getMaximum(string dum[], int n){ size_t max = dum[0].size(); for (int i = 1; i < n; i++){ if (dum[i].size()>max) max = dum[i].size(); } return max; } void countSort(string a[], int …

Member Avatar for Schol-R-LEA
0
80
Member Avatar for yahon23837

im trying to create and algorithm in python but i created it in C++ instead as i don't know python well enough i know it's easy and i can learn it in one day or two it's just the syntax but i don't have the time to learn python right …

Member Avatar for Jawass
0
291
Member Avatar for banmohammed

Write the C++ code to reverse the sequence of characters in the second half of it. Ex: S1="abcdef" Output="abcfed"

Member Avatar for Schol-R-LEA
0
37
Member Avatar for Anshumaan

Biology versus Chemistry Each subject has their own terms and each term has a weightage representing its importance. Terms and their weightage are given in two files namely biology.txt and chemistry.txt. A passage will have mixed terms from both the subjects. Given a passage in an input file, determine whether …

Member Avatar for Schol-R-LEA
-1
123
Member Avatar for MD_546
Member Avatar for Shikigami

1. Use two-dimensional array with size 7 columns and 5 rows. 2. Seat numbers are populated during run-time. 3. User is asked to input a seat number. 4. Seat number chosen is replaced by 0. 5. Program displays a remark “Seat successfully reserved” when reservation is done. 6. User is …

Member Avatar for Schol-R-LEA
1
141
Member Avatar for Desamaladeepak
Member Avatar for ama_ni

hello, i need someone to tell me how do i read string in assembly 8086 (nasm) and it would be better to write down the code ~~ thank you

Member Avatar for Leslie_2
0
430
Member Avatar for Athar_3

Create a Client/Server using DatagramSocket and DatagramPacket Programming and using DiffieHellman (1024) as encryption algorithm.

Member Avatar for rproffitt
0
46
Member Avatar for Haswanth

Simulate an ATM machine. Program should able to do the following operations: A. Create accounts for the users. A user account is created using User ID and Password. Every user has unique User ID and Password. B. A user should able to login using his User ID and Password. C. …

Member Avatar for rproffitt
0
108
Member Avatar for mike_102

Please don't tell me to use an `std::string` I'm intentionally not using them. I have my own string struct, and operate on `char*` for some parts of it. I'll probably eventually push a lot of this into my string struct, which eventually will store everything in my memory manager. i …

Member Avatar for rproffitt
0
26
Member Avatar for Haswanth

Write a template function that returns the maximum value of three elements passed to the function. Parameters passed to the function can be of int, double, char but all parameters passed are of the same type at point of time. Parameters to be passed to the function as are read …

Member Avatar for rproffitt
0
36
Member Avatar for saadbangashh

I am beginner and still learning c++. So this was a question in my assignment to make a horizontal bar chart something like this, Example: Input: N1=>8 , N2=>6 , N3=>2 , N4=>10 , N5=>9 10 * 09 * * 08 * * * 07 * * * 06 * …

Member Avatar for dbfud1988
0
1K
Member Avatar for Noor_26

#include<conio.h> #include<cstdlib> #include<windows.h> using namespace std; oustrup"<<endl; cout<<"b) Dennis Ritchie"<<endl; cout<<"c) Ken Thompson"<<endl; cout<<"d) Brian Kernighan"<<endl; choice=getch(); if(choice=='A'||choice=='a'){ cout<<choice<<" is correct Answer"<<endl<<endl; st.marks++; } else{ cout<<choice<<" is incorrect Answer"<<endl; cout<<"The corrent answer is a"<<endl<<endl; } break; case 4: cout<<i+1<<") A language which has the capability to generate new data types …

Member Avatar for rproffitt
0
104
Member Avatar for Artiuh

#include <iostream> #include <fstream> #include <string> #include <conio.h> #include <iomanip> #include <stdio.h> #include <stdlib.h> #include <unistd.h> using namespace std; // Subprogram pentru Admin void Login(string& admin ,string& password) { string Users[200]; string Pass[200]; bool valid = false; void AdminOptions(); int x = 0; ifstream UsFile; UsFile.open("admin.txt"); UsFile >> Users [x] …

Member Avatar for rproffitt
0
71
Member Avatar for Suraj_43
Member Avatar for Alialnosiari
Member Avatar for mike_101
Member Avatar for Mark_118

Hi, I have a coding project due in 12 hours and I'm having a really hard time with programming. I came across this website because of my desperation for help. These are the requirements to pass the project: Create a basic Restaurant Point of Sale software using C-Language. Your restaurant …

Member Avatar for rproffitt
0
284
Member Avatar for lilindiekid

Hi, I've been suffering with my magic the gathering c++ code. Here's the problem; I make combat between two cards and after the fight, opponent's HP will be reduce. So far, the HP reduces in side the classes but when we call the player's HP, it doesn't change as in …

Member Avatar for rproffitt
0
48
Member Avatar for Arosha_1
Member Avatar for MANYO
Member Avatar for ssharp77

In need of some help with a programming project which reads text from one file and places it in a 2nd file, which will be identical to the first file with the exception of any string of two or more consecutive blanks being replaced by a single space/blank, eliminating extra …

Member Avatar for Dhushanthan
0
945
Member Avatar for Hope_9

(a) Create a class named LivestockProject with fields that hold a membership number, the name of the member, surname, date of birth, gender, location and initial number of livestock (cattle) turned in. Include a constructor that initializes each field to appropriate default values. Also include methods to set and get …

Member Avatar for rproffitt
0
149
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
63
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
119
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
872
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
61
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
19
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
144
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

The End.