Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
0% Quality Score
Upvotes Received
0
Posts with Upvotes
0
Upvoting Members
0
Downvotes Received
5
Posts with Downvotes
5
Downvoting Members
3
0 Endorsements
~14.3K People Reached
Favorite Forums
Favorite Tags
Member Avatar for qqwushi12345

Write the C program that solve the quadratic equation problem The output should appear as follows: Enter A: 3 Enter B: 5 Enter C: 2 There are two solutions: -0.666667 and -1. Press any key to continue_ thank you,

Member Avatar for mohanned_2
0
4K
Member Avatar for qqwushi12345

A pair of (positive) integer numbers are called twin primes if they are both prime numbers and the difference between them is 2, i.e. they are consecutive odd numbers and they are prime numbers. (3, 5), (5, 7) and (11, 13) are three examples of such pair of twin prime …

Member Avatar for BhaskaR RaO
-1
162
Member Avatar for qqwushi12345

A pair of (positive) integer numbers are called twin primes if they are both prime numbers and the difference between them is 2, i.e. they are consecutive odd numbers and they are prime numbers. (3, 5), (5, 7) and (11, 13) are three examples of such pair of twin prime …

Member Avatar for cgcgames
0
3K
Member Avatar for qqwushi12345

Write a program that reads in a positive integer N and calculates and displays the sum of the first N even integers. For example if N is 6, the program should display the value 42, which is: 2+4+6+8+10+12=42. Caution: You need to write a program to do the addition. If …

Member Avatar for Allophyl
-1
989
Member Avatar for qqwushi12345

Can any body tell me what the below code does? The code is written in C++ language. ------------------------------------------------------------------------------------- [CODE]#include <stdio.h> #include "genlib.h" #include "simpio.h" main(){ int num1, num2, temp; printf (“Enter a positive integer: \n”); num1=GetInteger(); printf (“Enter a positive integer: \n”); num2=GetInteger(); while (TRUE){ temp=num1%num2; if (temp==0) break; num1=num2; …

Member Avatar for Allophyl
-1
97
Member Avatar for qqwushi12345
Member Avatar for qqwushi12345

Below is my code: [CODE]#include "stdafx.h" #include "strlib.h" #include "simpio.h" #include "genlib.h" int _tmain(int argc, _TCHAR* argv[]) { int num1,nom1,num2,nom2,num3,nom3,num4,nom4; double nem1,nem2,nem3,nem4; string a,b,c,d; printf("Enter first name: "); a=GetLine(); printf("Enter games played for %s: ",a); num1=GetInteger(); printf("Games won for %s: ",a); nom1=GetInteger(); nem1=(nom1/num1)*100; printf("\n"); printf("Enter second name: "); b=GetLine(); printf("Enter …

Member Avatar for qqwushi12345
0
103
Member Avatar for qqwushi12345

Write a program that displays all the prime numbers between 50 and 100. Below is my code: [CODE]Write a program that displays all the prime numbers between 50 and 100. please correct my mistake, thank you. #include <stdafx.h> #include "genlib.h" #include "simpio.h" #include "math.h" int _tmain(int argc, _TCHAR* argv[]) { …

Member Avatar for VernonDozier
0
2K
Member Avatar for qqwushi12345

Write a program that displays the table of Fahrenheit - Celsius temperatures. Below is my code, the problem with it is that the celsius column is all zeros,please correct my mistake, thank you: [CODE]#include "stdafx.h" #include "genlib.h" #include "simpio.h" #include "math.h" int _tmain(int argc, _TCHAR* argv[]) { int i; double …

Member Avatar for qqwushi12345
0
3K
Member Avatar for qqwushi12345

Solving the greatest common divisor using C++ and the Euclid method Below is my code: #include "stdafx.h" #include "genlib.h" #include "simpio.h" #include "math.h" int _tmain(int argc, _TCHAR* argv[]) { int num1,num2,rem; printf("Enter 1st number: "); num1=GetInteger(); printf("Enter 2nd number: "); num2=GetInteger(); rem=num1%num2; ;if(rem==0) { printf("The GCD of %d and %d …

Member Avatar for daviddoria
0
162
Member Avatar for qqwushi12345

Write a C program to solve the Greatest Common Divisor, according to the brute-force The output should appear as the following example: 1st number = 37 2nd number = 11 The GCD of 37 and 11 is 1. Press any key to continue_ thank you,

Member Avatar for Nick Evan
-1
160