49,761 Topics
| |
How to find the first non repeated character of a given String? | |
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++. | |
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: … | |
write a program using functions to find the sum of each column in a 2-D array. | |
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. | |
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 … | |
how to create 2 array matrix in dart programming | |
#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 … | |
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 … | |
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. | |
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 … | |
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 … | |
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 … | |
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 … | |
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/ … | |
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 … | |
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 … | |
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 … | |
#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; … | |
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 … | |
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 … | |
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 … | |
Program to find out the roots of a quadratic equation |
The End.