49,761 Topics

Member Avatar for
Member Avatar for TheofaniaLiv

So i have to create a programm that reads 7-49 numbers and makes all posible combinations (6 number each) from the given numbers. Do you know how can i do this? I dont ask for the code ready but i cant think of a way i can create the combinations.

Member Avatar for rproffitt
0
255
Member Avatar for peru60220

i have tried below as python but got error while calling result = kth_element_finder(arr1,arr2,arr1+10,arr2+5,k) i want the given cpp code in python, can you help me out on this please cppcode: int kth(int *arr1, int *arr2, int *end1, int *end2, int k){ if (arr1 == end1) return arr2[k]; if (arr2 …

Member Avatar for rproffitt
0
77
Member Avatar for Diala_1

Score calculation 1.1 Write a function in Matlab that accepts the degree of writing as input arguments bg and the degree of work be and return the final degree bt, which is calculated as o average grades of work and writing with the following exceptions: i. If the grade of …

Member Avatar for rproffitt
0
26
Member Avatar for kittycat07us

Hi, I'm having trouble with creating a program to split a number into there own separate digits and then multiplying the digits to create another number. The program will repeat itself until there is just one digit.. The main thing I'm having problem with is figuring out how I could …

Member Avatar for Hassan_39
0
11K
Member Avatar for lilindiekid

Write a program that checks the pressure of soda cans coming from a production line using a function. For each soda, the pressure value must be CLOSE to its ideal value. However, due to manufacturing problems the pressure value from can to can. First, the program will read the number …

Member Avatar for rproffitt
0
88
Member Avatar for anas_abuhajar

hello.. can anyone help me to converting this algorithm to High Level Language C++ ![Screenshot_(107).png](https://static.daniweb.com/attachments/4/801ae0f7416d69e6dd0f92d7ecce8cf6.png)

Member Avatar for rproffitt
0
100
Member Avatar for Ragnar14

Q: C++ You are required to design an application for the owner of ice-cream stand asks that you write a program to help her track sales results. She has ten ice-cream stands around the city, each selling a variety of ice-cream treats. He wants to enter the sales value from …

Member Avatar for Dani
0
83
Member Avatar for Mahnoor_1

Question is: Create a class Employee with following constraints in mind: 1. Declare three private data members named id,name,NIC of int,string,long respectively. 2. Overload stream insertion and stream extraction operators. Implement a global function named saveData, that'll allow the user to enter any number of employee's data and store it …

Member Avatar for Muhammad_251
0
4K
Member Avatar for Dontah

So, basically this code is for a Tic Tac Toe game, I'm trying to make a Singleplayer mode where Player 1 inserts a spot number to put his X, and Player 2 uses a random number generating function and assigns his O in a random spot. Everything works fine except, …

Member Avatar for grantyp2
0
154
Member Avatar for jkamugisha

// c program to add 10 elements entered by the user #include <stdio.h> int main () { int i; float elements[10]; //declaring the array float sum = 0; for (i = 0; i < 10; ++i) { printf ("Enter element %d: ", i + 1); //getting the elements from the …

Member Avatar for rproffitt
0
391
Member Avatar for Arslan_7
Member Avatar for rproffitt
0
50
Member Avatar for Nur Izzati

public static void main(String[] args) Scanner.sc=new Scanner(System.in); String name = new String(new char[30]); final String pizza1 = "Chicken Fazita"; final String pizza2 = "Chicken Bar BQ"; final String pizza3 = "Peri Peri"; final String pizza4 = "Creamy Max"; final String roll1 = "Chicken Chatni Roll"; final String roll2 = "Chicken …

Member Avatar for rproffitt
0
220
Member Avatar for Bassel_1

Hi guys. I want your help to convert this program from c++ to c language The question is :-A manufacturer wishes to determine the cost of producing an open-top cylindrical container. The surface area (of the container is the sum of the area of the circular base plus the area …

Member Avatar for rproffitt
0
280
Member Avatar for vegaseat

What "Hello World" is to the console, the "Bouncing Ball" is to the Graphical User Interface. Nothing fancy, the ball is created via a call to the API function ellipse() and then bounced within the confines of the windows form. For the DEV C++ crowd: Let me know if you …

Member Avatar for laheg
2
25K
Member Avatar for pragya.gupta15

How can I write the code such that - 1. I am reading the file which may contain numbers such as 23 34 45 56. 2. After reading the contents of the file, the contents of the file get stored to struct array such as struct abc in the above …

0
59
Member Avatar for Saniya_1
Member Avatar for revolutionary

Draw a palm shape fireworks in c++ using the concepts of arrays,functions,pointers only.

0
39
Member Avatar for nelvinsavio2

while isSearching do ?2????????? ← ????????????????(?2) ∇???? ← ?2????????? − ?1????????? ?1 ← ?2 if ∇???? > 0 then ??? ← 0 ?2 ← Run(?1) ???? ← ?2 else ?2 ← ??????(?1) ??? ← ??? + 1 ?2 ← ?????????(?2, ????) if ????????????(?2) then ??v???(?2) else ?2 ← ??????(?1) if …

Member Avatar for Dani
0
49
Member Avatar for 21savage
Member Avatar for Big papi

QUESTION:You are required to write a program that performs syntax checking for a given computer program Hey Everyone i need your help badly can anyone please modify my code below against the following rules: • The code always starts with begin keyword and ends with the end keyword • The …

0
293
Member Avatar for BirdaoGwra

Hi, Sorry, If this question is not appropriate to this section. Admin, kindly move this qeustion. I recently changed my tdm-gcc-5.1.0-3 to tdm-gcc-9.2.0, 32 bit. Before changing the gcc my software was working fine, compiled without any problem. But today I installed gcc 9.2.0 and I can't compile my sofware …

0
41
Member Avatar for MD Nawab
Member Avatar for VIJAYA_5
Member Avatar for P4Programs
1
70
Member Avatar for syamim_1

#include <iostream> using namespace std; int main () int charge, aftercharge, parking_hours; cout << "please put your parking hours: " ; cin >> parking_hours; if (parking_hours>=1) { charge = 1 ; } else if (parking_hours>=11) { charge = 2.50 ; } else if (parking_hours>=12) { charge = 6.00 ; } …

Member Avatar for Dani
0
154
Member Avatar for Saurabh_8

Write a C++ data structure program to implement following operations on Single Dimension Array. (Note: Use Class Use Switch case While printing, Print all the elements in single line with space) 1. Bubble Sort 2. Insertion Sort

Member Avatar for Dani
0
53
Member Avatar for kanugula

Petya loves lucky numbers. Everybody knows that lucky numbers are positive integers whose decimal representation contains only the lucky digits 4 and 7. For example, numbers 47, 744, 4 are lucky and 5, 17, 467 are not. Petya has a number consisting of n digits without leading zeroes. He represented …

Member Avatar for kasraneni2003
0
321
Member Avatar for Xoxo_2

Count number of occurrences of a digit with while/do while without using array in c++

Member Avatar for rproffitt
0
79
Member Avatar for kanugula

#include<stdio.h> #define SIZE 10 struct stack{ int a[SIZE]; int top; }; struct stack s; s .top=-1; void push(int value); void pop(); void display(); void peakelement(); int main() { int choice,value; while(1) { printf("\n1.push 2. pop 3.display 4. peakelement 5. exit"); printf("enter your choice"); scanf("%d",&choice); if(choice==1) { printf("enter value to be …

Member Avatar for rproffitt
0
79
Member Avatar for newtocplus432

Hello and thanks for reading my post. I need help converting the fallowing Algorithm into working C++ code, and below is what i have come up with so far, what do i need to do to make this compile? Algorithm: PayCalc 1. CaseOf PayCode = "H" Pay = Rate * …

Member Avatar for mohannad_1
0
1K
Member Avatar for Debasis_1

I am an intermediate in VC++ and trying to accomplish the following:- 1. Dock a timer created using Windows forms to the extreme right of the taskbar (and to the left of the notification area or system tray). 2. Make it responsive (match its height with that of the taskbar, …

Member Avatar for rproffitt
0
54

The End.