finds the average number of hours per day spent programming by each student over a three-day weekend. User should enter the number of hours worked each day and number of students. |
+0 forum
3 | ||

hi everybody this is my code below that i did so far for my assignment i made a smiley but ,it s everywhere in my code ,and it s not so perfect i think i need only 1 and big smiley in my pattern i think i am missing something in my for loop Anybody help, i will preciate Thank you .. #include "graphics.h" #include <math.h> int main() { int pattern[16][16] = { { 15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,}, { 15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,}, { 15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,}, { 15,15,15,0,0,0,15,15,15,15,0,0,0,15,15,15,}, { 15,15,15,0,0,0,15,15,15,15,0,0,0,15,15,15,}, { 15,15,15,0,0,0,15,15,15,15,0,0,0,15,15,15,}, { 15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,}, { 15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,}, { 15,15,15,15,0,15,15,15, 0,15,15,15,15,15,15,15,}, { 15,15,15,15,0,0,15,15,0,0,15,15,15,15,15,15,}, { 15,15,15,15,0,0,0,0,0,0,0,15,15,15,15,15,}, { 15,15,15,15,0,0,0,0,0,0,0,15,15,15,15,15,}, { 15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,}, … |
+0 forum
4 | ||

STAR WAYS BUSES is a new bus that wants to launch services in city A but to ease its work it needspre-paid tickets.it plans to use zonal pricingsystems as follows; i).ticket price per day between zone 2 and 1 is $2000 ii).ticket price per day betweenzone 3 and 1 is $2500, but there is no direct connection between zone 2 and 1 and if a passenger wants to travel between zone 2 and 3he must travel to zone 1 then the destination. write a program that will be installed on computers which prompts passanger to input their names,age ,original zone,destination … |
+0 forum
3 | ||

Hi.. d1 = a1*x1 + b1*x2 + c1*x3 d2 = a2*x1 + b2*x2 + c2*x3 d3 = a3*x1 + b3*x2 + c3*x3 Knowing all of a,b,c,d, I have to find x1, x2, x3. As you might noticed, this is high school math. But, how do I write the code to solve this? /* /a1 b1 c1| /x1| /d1| |a2 b2 c2|*|x2|=|d2| |a3 b3 c3/ |x3/ |d3| */ double A[3][3], X[3], D[3]; X[0] = ? X[1] = ? X[2] = ? Can anyone give me an idea please? |
+0 forum
2 | ||

Write a php program for Currency conversion. Input Currency name, Value of Input Currency, Output Currency Name Output Currency Value. 1 dollar=50 Rupee 1 Pound= 1.5 dollar 1 Pound= 80 Rupee |
+0 forum
6 | ||

Please help me with following problem (I am struggling in a class that I really shouldn't have taken, and I have absolutely no idea where to start, or how to continue with it): Write a program that can be used to assign seats for a commercial airplane. The airplane has 13 rows, with six seats in each row. Rows 1 and 2 are first class, rows 3 through 7 are business class, and rows 8 through 13 are economy class. The program must prompt the user to enter the following information: a. Ticket type (first class,business class,economy class) b. Desired … |
+0 forum
1 | ||

How we can write a program to get out put given below in c?? 1 1 2 1 1 2 3 2 1 1 2 3 4 3 2 1 1 2 3 4 5 4 3 2 1 |
+0 forum
2 | ||

I WANT THIS BUT I CAN NOT UNDER STAND PLZ HELP WHAT CHANGES I SHOUL DO HERE I WANT TO MAKE quick estimation by taking the temperature in Celsius, double it and add 32 AND WANT TO Write a program that takes temperature in Celsius; convert it to Fahrenheit both in estimation method and actual method. Run the program at least for 10 values and print the temperature in the form of a table showing temperature in Celsius,estimated temperature in Fahrenheit and actualtemperature in Fahrenheit. #define F_LOW 0 #define F_MAX 250 #define STEP 25 main() { typedef float REAL ; … |
+0 forum
2 | ||

Hi guys just wondering if anyone could give me some tips on starting a moveable char function for my maze game. I wish to create a function that allows me to move the player through the maze shown below. I have a few ideas on how to do this however the methods I am coming up with are slightly long winded. Just wondering if anyone had any examples or ideas. Below is the code I have so far [CODE]#include <stdio.h> #include <stdlib.h> #include <time.h> #include <iostream> #include <conio.h> #include <Windows.h> using namespace std; int col = 1; int row = … |
+0 forum
2 | ||

hi, I am trying to make a variable equation solver using DEV-C++. I just need to know how to get C++ to solve an equation inputed by the user. So you input something like 1+1 and i need it to solve the problem and output the answer. heres an example: [CODE]#include<iostream> using namespace std; int main (char argc) { string n1; cin >> n1; // i input 1+1 int n2; solve n1 = n2; cout << n2 << endl; // it outputs 2 }[/CODE] thanks |
+0 forum
75 | ||

I am trying to solve a system of 5 equations in 5 unknowns. I am new to the Matlab language. I consulted the documentation and decided that the best way of doing this was to use the solve() function. However, this function does not appear to work properly for 5 unknowns. It is an electrical problem, and I am trying to solve for 5 currents, i1, i2, i3, i4, and i5. However, the function does not recognize v2 as a constant attempts to solve for it, neglecting i5. The code is as follows: [CODE]v2 = 1; syms i1 i2 i3 … |
+0 forum
0 | ||

Hello everyone! I've made the mistake of not asking my teacher for help when I had the time. Now I'm stuck and lost. I didn't do this because I felt I should be able to figure this out myself since this is my major. So, I'm giving up and needing advice. I would love any help. [QUOTE]Write a program that uses a class named Rectangle. The class has floating point attributes length and width. It has member functions that calculate the perimeter and the area of the rectangle. It also has set and get functions for both length and width, … |
+1 forum
16 | ||

I am trying to make a program in which the user is prompted to input a number(max length of 4 digits), and then the program shall produce the number of outcomes of a two dice roll meaning that 1 roll includes two die. The outcomes could be 2-12 and I also have to show how many times the number occurs and the percent the numbers occurs. It should be a bell curve meaning that if a user types 1000 rolls, 7 should have the most out comes and then 6 and 8 and so on. I got part of the … |
+0 forum
4 | ||

Hi forum, Could you give me some simple 2D array problems to solve? Thanks! |
+0 forum
1 | ||

this is the problem Write a complete C program that can be used as a simple line-oriented t-xt editor. This program must have the following capabilities: (a) Enter several lines of text and store in a data file. (b) List the data file. (c) Retrieve and display a particular line. determined by line number. (d) Insert n lines. (e) Delete n lines. (f) Save the newly edited text and end the computation. Carry out each of these tasks in response to a one-letter command, preceded by a dollar sign ($1. The find (retrieve) command should be followed by an unsigned … |
+0 forum
1 | ||

Code Snippet
Eleagant and fast Sudoku with generator expressions See the link ([URL="http://norvig.com/sudoku.html"]Solve Every Sudoku Puzzle[/URL] for fine description of logic of the code) I attach the top95.txt file of tough problems and the sudoku claimed toughest of all time by Finnish mathematician Arto Inkala ([URL="http://www.kristanix.com/sudokuepic/worlds-hardest-sudoku.php"]The Worlds Hardest Sudoku Puzzle[/URL]) Solving this was piece of cake for the code, even it does not consider special rules, but strives for simplicity and fast enough: [CODE] 1 2568 2468 | 458 345 7 | 246 9 346 457 3 46 | 1459 2 159 | 1467 467 8 2478 278 9 | 6 134 138 | 5 2347 134 ---------------------+---------------------+--------------------- 2478 … |
+0 forum
1 |

The End.