15,552 Topics

Member Avatar for
Member Avatar for GamerTruce

In need Help with to write a C funciton that positions 10 random letters from the alphabet on a 8x8 grid.

Member Avatar for rproffitt
0
30
Member Avatar for Luka_1

I have never learn python and i need to write one small program in it. I have C++ code so can someone convert that code to python code ? code: #include <stdio.h> int N; struct { int y, x1, x2; } platforme[100]; int spusti(double x, int y) { int rez …

Member Avatar for Adina_2
0
72K
Member Avatar for guidely

Hi, I try to convert the c code into python it actually complie but no result came out Code in C #include <stdio.h> # include <math.h> double const pi=3.1415926535897932384626433; double const twopi=2.0*pi; double const halfpi=pi/2.0; float cos_32(float x) { int quad; x=fmod(x,twopi); if (x<0) { x=-x; } quad=int(x/halfpi); switch (quad) …

Member Avatar for Sukant_1
0
18K
Member Avatar for reidenreyes78

Design a program to compute the gross pay of worker named michael bryan given that michael bryan worked 80hours to php67.97 per hour

Member Avatar for rproffitt
0
37
Member Avatar for Tima_2

Hey, Im working on the UNO game in python and am almost done with the rest of the code but I am not able to print the UNO logo as of yet. Please help. I need to submit my work tomorrow.

Member Avatar for rproffitt
0
36
Member Avatar for clife

I am trying to convert the GMT time into unix epoch (starting from 1970), looks like there is a small bug in code , i could not get and exhausted. I see following difference Non leap years Expected output: Jan 20 19:00:01 2019 GMT = 1548010801 Actual output: 1548097201 (which …

Member Avatar for rproffitt
0
207
Member Avatar for Royvip

I need a software that can automatically log into a series of accounts to a website, available data acount list, we need software to automatically log in continuously to check whether the account is alive or dead and check. check nickname in the game, and amount in the account

Member Avatar for Dai_6
0
154
Member Avatar for Jeon_2

Write a program that prompts the user to input (word/statement), Accepts only letters. The program then: 1.Remove all the vowels from the (word /statement) then output the (word /statement) without vowels. 2. Outputs the number of vowels. 3. Convert the lowercase vowels letters to uppercase and vice versa. Conditions: 1. …

Member Avatar for knight84
0
148
Member Avatar for Abdo_

QUESTION Design a C program to calculate the total payment for the parking summons issued by Majlis Perbandaran Kuantan (MPK). The user needs to pay the summon within 5 days. There will be a 10% discount if user pay the summon within 5 days. After 5 days, a penalty will …

Member Avatar for rproffitt
0
86
Member Avatar for mahmoud_37

Write a C# console program that allows the user to edit an address book by displaying the following menu to the user: 1- Add New Address 2- Delete Address 3- Modify Address 4- View Address 5- Quit when the user enters 1 the program just displays "You wish to add …

Member Avatar for rproffitt
0
51
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 Vincenzo_1

does anyone please have the connect four game program in c language? I need it for an exam

Member Avatar for rproffitt
0
43
Member Avatar for Dontah

So, basically what I'm trying to do is a Tic Tac Toe game for a project. I started with making 3 1-D Char Arrays to represent the game's bord. the code below compares the Arrays data to try and figure out if any of the winning possibilites were achieved by …

Member Avatar for SpOOKy.Is.GoD
0
201
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 Diogo_3
Member Avatar for Rayhana

Hello, i have some problems with my c code, could you help me? it's returns randomly numbers for averages. #include<stdio.h> #include<stdlib.h> struct Student MStudent(struct Student std); void CalcAvrg(struct Student std); struct Student{ int mark[5][5]; }; struct Student MStudent(struct Student std){ int i,j; for(i=0;i<5;i++){ for(j=0;j<5;j++){ printf("%d. Student's mark for %d. exam …

Member Avatar for mcriscolo
0
155
Member Avatar for Jin_3

int my number [10]; void fun(int input, int* addr){ if (input %2 == 0){ *addr = 1; } } int main (){ int i; for (i = 0; i < 10; i+=1){ fun(number[i], &number[i]); } return 0; }

Member Avatar for rproffitt
0
54
Member Avatar for Yasin_Shaikh
Member Avatar for Dani
0
54
Member Avatar for 613.sari.m.art

התוכנה כותבת לי שגיאה על המילה strndup אולי מישהו יודע אם זה משתנה בגרסאות של וויזואל סטודיו ואיך אפשר לסדר זאת? char tav = str[strlen(str)/2+1]; int a,b,anser; char* as = strndup(str, strlen(str) / 2 - *str); char* bs = strndup(str+ strlen(str) / 2 - *str+2, strlen(str) / 2 - *str); …

Member Avatar for Dani
0
76
Member Avatar for MD Nawab
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 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 Tafadzwa_2

JQ is taking a car trip with his family. On the trip, he will stop for fuel, food or lodging. When stopping for gas, JQ will record the amount of fuel he is willing to pay for. When the family stops for lodging, they will also have a meal. JQ …

Member Avatar for rproffitt
0
78
Member Avatar for comwizz

I would like to know what is the difference betn getchar(),getch(), and getche() functions and which should be used in which conditions. Thanks, comwizz. :confused:

Member Avatar for Smartfitness33
1
5K
Member Avatar for LowTds

Hello, I have been trying to get this robot to work out and be able to move around. I am just so confused as to how to get my arrow to get even displayed and moved when pressed by one of the directions to go. One area that I struggle …

0
82
Member Avatar for Sarmad_2

write down a program which generates numbers from 1 to 10 but in following format in C++ 1 2 3 4 5 6 7 8 9 10

Member Avatar for rproffitt
0
60

The End.