49,758 Topics

Member Avatar for
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
68
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
145
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
118
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
51
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
238
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
857
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
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
24
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
63
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
46

The End.