49,761 Topics

Member Avatar for
Member Avatar for stampaprints
Member Avatar for pritaeas
0
31
Member Avatar for Jawad_12

Hey, I want to make a program in which I will find the **index** of word and **count** how many words there in a txt file using c++.

Member Avatar for rproffitt
0
42
Member Avatar for DUNCAN_4

Define a class Pairs with two integer data members, f and s, where f represents the first value in the ordered pair and s represents the second value in an ordered pair. Objects of type Pairs can be used in any situation where ordered pairs are needed. This class has: …

Member Avatar for Schol-R-LEA
0
104
Member Avatar for حسين_8
Member Avatar for rproffitt
0
21
Member Avatar for Sheeza Arshad

Write a C++ program to ask user to input last two day’s temperature for two different cities. Then your program must be capable of displaying user data. This program functionality can be performed in many different ways but you are directed to do it using multidimensional arrays.

Member Avatar for Dani
0
60
Member Avatar for Amin_15

create a C++ program,. The information that you are dealing with is serial number, name of stationary item, company of stationary item, price and flag to know whether stationary item is . First you need to create a menu which has the following options 1. Add new stationary item in …

Member Avatar for rproffitt
0
19
Member Avatar for joseph_59
Member Avatar for Cristical
Member Avatar for drewd66
Member Avatar for sravan_3

#include<bits/stdc++.h> using namespace std; struct date int day; int month; int year; int main() struct date input[5]; for(int i=0; i<5; i++) cin>>input[i].day; cin>>input[i].month; cin>>input[i].year; for (int i=0; i<4; i++) for (int j=i+1; j<5; j++) if (input[i].year > input[j].year) struct date temp = input[i]; input[i] = input[j]; input[j] = temp; else …

Member Avatar for rproffitt
0
69
Member Avatar for Cutie@04

Fred sales bunches of flower at the local shopping centre. One day Fred's boss, Joe tells fred that at any time during the day he will need to know: How many bunches of flower has been sold. a) What was the value of the most expensive bunches sold? b) What …

Member Avatar for Maryam_16
0
148
Member Avatar for S11199968
Member Avatar for Sahib_3
Member Avatar for mohammedmurad

Write a C++ program that calculates and prints the sum of the odd integers, and the sum of even integers from 1 to 20. Use for statement.

Member Avatar for rproffitt
0
70
Member Avatar for Juliana_2

this is my sample code to create a student record using singly linked list queue. my problem is that I want to insert a student number in the struct but it doesn't repeat when I input the same student number. #include <stdio.h> #include <stdlib.h> struct node { char No[12],Name[24],crsysr[10]; float …

Member Avatar for Schol-R-LEA
0
121
Member Avatar for juniorjames

So we can't just do the top half of the shape, then do another bunch of loops as the opposite to output the second half of the shape. This is what i did, but i'm told it can be done in no more than 3 loops. I can't quite figure …

Member Avatar for dbfud1988
0
59
Member Avatar for Mustafa_36

Generate a graph by forming an adjacency matrix with random numbers. The graph will have 10 nodes. The connections will be generated randomly with the following rules. • Each pair may have a connection with 60% probability. It means that the connection weight for a node pair will be 0 …

Member Avatar for rproffitt
0
52
Member Avatar for k_19

my teacher gave an assignment to work on in a break time and i have been strugling with it for about 2 months. And i was thinking if you can actually help me get this program done or at least give me a highlight on how i can work throug …

Member Avatar for Reverend Jim
0
35
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
246
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
858
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
30
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
81
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
892
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
28
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

The End.