hello there, i need a code that takes the values of the array from the user, and see if it is in increasing or decreasing order or non of them. thanks

Member Avatar
+0 forum 0

Write a MIPS Assembly program that inputs names and marks for three student assignments and computes the total score for each student and the average class score per assignment. Assume Assignment#1 is scored out of 5; Assignment#2 is scored out of 10; Assignment#3 is scored out of 5; Hence the maximum score for each student is out of 20. Use arrays for names, assignments and total. Run the program with inputs for 10 students.

Member Avatar
-1 forum 0

I wanna create a new 3d array levelxyz from the two bellow 2d arrays. var levelxy = [ ["-", "-", "*", "-", "-", "*", "-", "-", "*", "-"], ["-", "-", "-", "-", "-", "-", "-", "-", "-", "-"], ["-", "*", "-", "-", "*", "-", "-", "*", "-", "-"], ["-", "-", "-", "*", "-", "-", "-", "-", "-", "-"], ["-", "-", "-", "-", "-", "*", "-", "-", "-", "-"], ["-", "-", "-", "-", "-", "-", "-", "-", "-", "-"], ["-", "-", "-", "*", "-", "-", "-", "*", "-", "-"], ["*", "-", "-", "-", "-", "-", "-", "-", "-", "*"], ["-", "-", …

Member Avatar
+0 forum 0

need a program to perform polynomial division with linked lists or arrays. i already tried multiplication,subtraction and addition but stucked in division can anyone help me out on this.

Member Avatar
+0 forum 0

Hi, I am creating a project which is a remake of a game so I want to be able to read a map from a Notepad file and store the location and character in the file so I can place a selected image in the location on the grid that I have already ceated. My text file looks like this: 8,8 00111000 00131000 00101111 11120231 1302c111 11112100 00013100 00011100 The "8,8" is the size of the map. In my game, the player gets to choose the character that they will use (the character is represented in teh text file with …

Member Avatar
+0 forum 0

I am working on a drag and drop tic tac toe game. I had everything working, including the function to check for a winner. Then I added a function to deal with which player's turn it is with the idea being that whichever player's turn it isn't, their images are not draggable. I used a similar idea and code to make all images not draggable when somebody wins the game. However, this function (whoseTurn) does not work and I'm not sure why. I keep getting an error (in Chrome under Sources in Inspect Element) which says Uncaught TypeError Object ...(the …

Member Avatar
+0 forum 0

Hey everyone, i need help with this program im doing for a class, now i havent used c++ in a while so thats why im considerably fresh in all this. any at all help would be greatly apprecietated. ALso i can NOT spell to save my life. the problem states this much  Write a program to solve the 8-Tiles Puzzle using the best first search algorithm. You need to compare between using the following heuristics to estimate the distance to the goal:  h1= 0 (this will be the breadth first search)  h2= number of misplaced tiles  …

Member Avatar
+0 forum 0

I am having trouble with this assignment, especially the input file and how to get the data into an array: You will design a set of classes for storing student information, along with a main program that will read student information from a file, store the data, compute final grades, and then print a summary report to an output file. Program Details and Requirements: Design a set of classes that store student grade information. There should be one base class to store common data, and three derived classes that divide the set of students into three categories: English students, History …

Member Avatar
+0 forum 0

I am running into and problem where I am trying to pass an element in an array to a method to calculate the tax that is owed but all I get as a result is 0, which is not right. Here is the writeline: Console.WriteLine("Taxpayer # {0} SSN: {1}, Income is {2:c}, Tax is {3:c}", i + 1, taxArray[i].SSN, taxArray[i].grossIncome, taxRates.CalculateTax(taxArray[i].grossIncome)); and the zero is coming from the last one {3:c} Also, the sort is not sorting by the income level for some reason Here is the entire namespace and output: using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace …

Member Avatar
+0 forum 0

help! I'm trying to figure out how to verify looped form fields by name. This seems like it should work, but it's just skipping right past this verification step. Here's the code: <?php session_start(); ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <script type='text/javascript'> function myForm(){ // Make quick references to our fields { // Make quick references to our field *ARRAYS*: var fname = form["kfname[]"]; var lname = form["klname[]"]; var birth_month = form["bdate2[]"]; var birthday = form["bdate[]"]; var birthyear = form["bdate3[]"]; for ( var f = 0; f < fname.length; ++f ) { var n = …

Member Avatar
+0 forum 0

// absolute.cpp : Defines the entry point for the console application. // [CODE] #include "stdafx.h" #include<iostream> #include<string> using namespace std; int _tmain(int argc, _TCHAR* argv[]) { int i=0, j=0,k=0,l=0; string yes1;bool outcome;int u=0,v=0,w=0; string arr[4 ][4]={{"Name","Plot #", "Cost", "Address"}, {"john", "1121", "Rs.1000", "62 johar TOWN LAHORE"}, {"jonty", "1123", "Rs.100000", "56 model LAHORE"},{"bruce", "65", "Rs.20000", "55 model TOWN LAHORE"}}; outcome=true; while(outcome==true) { string plotnumber="1"; string NameLandlord="1"; char plotnumberr[15]="1",NameLandlordd[15]="1";u=0,v=0,w=0; outcome=true; cout<<"To access info by name type 1 and press enter"<<endl<<endl; cout<<"To access info by #plot type 2 and press enter"<<endl; cout<<endl; cin>>k; if(k==1) { cout<<endl; cout<<"enter the name of the landlord"; cin>>NameLandlord; …

Member Avatar
+0 forum 0

I have 3 arrays with 3 items in each. I want to divided them into groups of 3 radio buttons and i want to select one radio button, hit a submit button and have it post on the same page and then move to the next set and have it keep my previous selections. Ex: Group 1 Group 2 Group 3 1 A 2 A 3 A 1 B 2 B 3 B 1 C 2 C 3 C Submit Submit Submit You chose A for G1 You Chose A for G1 You Chose A for G1 You Chose B …

Member Avatar
+0 forum 0

Hello, I need help with something. I need to write a program that goes into a text file and searches the characters one by one until it finds a group of them that I need, to store into another character array. The group of characters is "7 people who...will fail! LOL!" Here is what I have so far. [CODE] #include <iostream> #include <fstream> using namespace std; //void input(string& ); //Precondition: User is ready to enter values correctly. //Postcondition: Return the name in correct format (first letter captilaized //everything else lower case.) void file_search(char [30], char [30], ifstream& input); //Precondition: Input …

Member Avatar
+0 forum 0

[CODE=java]import java.util.Scanner; class Sum { private int value; public int get() { return value; } public void set(int sum) { this.value = sum; } } class Summation extends Thread { private int upper; private int lower; private Sum sumValue; public Summation(int upper, Sum sumValue) { if (upper < 0) throw new IllegalArgumentException(); this.upper = upper; this.sumValue = sumValue; } public void run() { int sum = 0; for (int i = 1; i >= lower && i <= upper; i++) sum += i; System.out.println(this.getName() + " is done"); sumValue.set(sum); System.out.println(this.getName() + " " + sum); } } public class MultithreadSum …

Member Avatar
+0 forum 0

I tried to take a class on VB.net about a year about but do to issues I could not complete it. So I am trying to teach myself what I missed. I am trying to create a program for a deli. It will take delivery and carryout orders. On one form (Deli form) it will take the customer’s name and phone number. You can check if it is carryout or delivery then the menu is also displayed. I got the carryout and delivery and the customer names to work like I want and I can get it to register and …

Member Avatar
+0 forum 0

Hello all, I am fairly new to c++ and I am completely lost right now. I am suppose to create two dynamic arrays that prompt the user to enter how big the arrays should be and it also asks the user to enter the numbers they want to store in the array. Once this is done I must combine the two dynamic arrays into one dynamic array that holds all the elements from the combined arrays. Can anyone help? I don't know if to pass the objects into a function and then combine? If so, how is the syntax for …

Member Avatar
+0 forum 0

working on a 32bit architecture and i'm adding two arrays together slot by slot into a third array so if I have 3,4,4 and 4,4,4 in the arrays the third array should contain 7,8,8 at the end of the function I was able to pass in the arrays correctly and the amount of items into the function arleady, i know this because I ran test code now i'm working on the addition part of it, here is what I have, the logic makes sense to me but it's still seg faulting...ideas? [CODE];*************************************ADD ARRAY********************************************** segment .bss ; segment .data summessage db …

Member Avatar
+0 forum 0

Frame complete game, only the outer edges of a square drawn on the table is a game played with 2 players. Sequence of a square drawn from the player wants to draw a non-edge. Underline that this edge of the square is not the last edge of the square is completed and the last edge of the square belongs to the player draws. As long as the player completes a square edge may continue to draw. The aim is to have the maximum number of frames in the game. Accordingly, at least 7x7 in size up to 3x3 on a …

Member Avatar
+0 forum 0

I am not understanding how to convert a 2d array from c to Mips assembly. Like if you had int array[5][2]={{1,1},{2,2},{3,3},{4,4},{5,5}} how would you convert that to Mips assembly and access it like x=array[i][0] & y=array[i][0]?

Member Avatar
+0 forum 0

EDIT: Nevermind, I already found what was wrong; But I can't draw a card properly when I run it still. [CODE]import java.util.Scanner; import java.util.InputMismatchException; public class CardDealer //Main Class { public static void main(String[] args) { Scanner keybd = new Scanner(System.in); Deck deck1 = new Deck(true); int count = 0; int card = 1; int deckcount = 0; while (card != 0) { System.out.println("This is your digital deck of playing cards!"); System.out.println("A new deck has already been opened and shuffled for you."); System.out.print("\n[" + deck1.getSize() + " cards left in deck] How many cards to draw (0 to quit)?"); try …

Member Avatar
+0 forum 0

Hello- I am trying to create a program that will allow a user to enter in checking or savings data; date, type of transaction (deposit or withdrawl), display the previous balance and the new balance based on the new transaction entered. I cannot figure out how to locate the element of the prior transaction to make the appropriate calculation. My code is quite long, and I should mention that I am brand new to this forum, so I hope I have placed my code in here properly. Thanks ahead of time. [CODE] Imports System.IO Public Class frmAccounts Dim calc As …

Member Avatar
+0 forum 0

The End.