# Lab Question# We must create a program that do the following: Allow the user to type in a student name the coorosponds with the student's exam score. The program will be able to accpet exam scores till the user types in the phrase "allDone". The code will determine which student has the highest score and give the name and the score to the user. Here is an example of what will be shown in the console.... *Sample Input* Bob 82 Mary 90 James 87 alldone *Sample Output* Mary has the highest score. Her score is: 90. ## Question ## …

Member Avatar
Member Avatar
+0 forum 6

# Lab Assignment # We must create a program that will print a sorted list of all the students and the corresponding scores listing the highest score first and the lowest score last. In this case I would need a Bubble Sort. ## Question ## This is my "Bubble Sort" method shown in the code block below. public static void bubbleSort(String [] name, double [] score) { double temp; int counter; int index = 0; for(counter = 0; counter < score.length - 1 - counter; index++) { if(score[index] > score[index + 1]) { temp = score[index]; score[index] = score[index + …

Member Avatar
Member Avatar
+0 forum 5

I am in a Computer Science Class and need help with the following Lab Assingment (WARNIG: this entry may be unintentionally long): # Lab Question # We must create a program that will do these three things: (1) Allow the user to type in a student name the coorosponds with the student's exam score. The program will be able to accpet exam scores till the user types in the phrase "allDone". (2) The code will determine which student has the highest score and give the name and the score to the user. (3) Lastly, the code must print a sorted …

Member Avatar
Member Avatar
+0 forum 2

I have a text file with the following contents: Andrew Law 32 6'1 123 Pounds Tom Harris 19 5'5 180 Pounds Randy Poffo 45 5'3 141 Pounds Now on my form i have a listbox and four labels. What i would like to do is have the listbox show only the names of the people in the text file (Andrew Law, Tom Harris, Randy Poffo) and when the user clicks the persons name in the listbox i would like each of the labels to show the corresponding details for that person (one label showing age, one showing their height and …

Member Avatar
Member Avatar
+0 forum 2

HEEY EVERYONE ,hope you're doing well my teacher assigned us a homework wich is to create a program with C; this program takes as input a text file with some data in it .every line of the text file contains the ID of an employee and it's name and salary e.g 1 katy oath 100.34 22 bob jazy 3343.00 4 jonathan sayf 2000.00 and so on then sort them according to salary o the employee with the highest salary shold be at the firt ,so it should be like this : 22 bob jazy 3343.00 4 jonathan sayf 2000.00 1 …

Member Avatar
Member Avatar
+0 forum 1

Hi i am new to java and just learning as i go , I the basic of calling mothod arguments and so forth but i am having difficulties calling my array method so it would come up to the terminal to the user when the code is running . i have declared the array list paramter to ( int [] name ) , then called the array MyObject.MyMethod ( 01234 ) . I tried to return the array list then call the method that way but is not worrking please can some one show me the correct way to implement …

Member Avatar
Member Avatar
+0 forum 11

#include <iostream> #include <cstdlib> #include <fstream> #include <ctime> using namespace std; void array(int arr[], int arrSize); void add(int arr[], int arrSize, int newElem); bool edit(int arr[], int arrSize, int index, int newVal); bool delEm(int arr[], int arrSize, int elem); bool search(int arr[], int arrSize, int elem); bool PunoNa(int arr[], int arrSize); void display(int arr[], int arrSize); void dispPo(int arr[], int arrSize, int index); void shuffle(int arr[], int arrSize); void loc(int arr[], int arrSize,int elem); int main(){ int choice = 0; int arrSize; cout<<"Enter size of array: "; cin>>arrSize; int arr[arrSize]; if(arrSize<=20){ for(int x=0; x<arrSize; x++){ cout<<"Enter elem"<<x+1<<": "; cin>>arr[x]; } …

Member Avatar
Member Avatar
+0 forum 2

[[Depths (Made with Processing)](https://www.ktbyte.com/projects/project/94051/depths?ref=20181210daniweb)](null)

Member Avatar
+1 forum 0

im just new on c program can you help me on this ? problem : make a C program that will ask 10 numbers and store into an array. the numbers to be entered must be between 70 to 95 only output the average,number of grades below average, above average. if more grades are below average , will display " review your lesson" else " proceed to next chapter "

Member Avatar
Member Avatar
+0 forum 3

I got an Assignment to sort a Randomized Dynamic 2D Matrix of Integers , Snake style : for Example : biggest number in row 0 , after it follows (beneath it , vividly) the next number : 1 2 3 4 5 10 9 8 7 6 11 12 13 1415 20 19 18 17 16 21 22 23 24 25

Member Avatar
Member Avatar
+0 forum 2

Hi there I am new at this website thanks for every one that help me I have this output appear on the link below: [Click Here](https://ibb.co/fe8Cvf) I want to while I choosing a **Time** **value** this value must be send for these useres that **absence** row the checkbox is **checked** this is my code:

Member Avatar
Member Avatar
+0 forum 3

I need help that how to make these assignment by html,javascript?? i have made admin and user login ..need codes for further more.. **description of assignment:** Salemanagementsystem have two panels.Admin login with specific id and Admin have rights to update product lists add, delete and update. Employees can create new account and login with register email. Employees can search and sale over products via sale button sales products can store in an array which display sales pages. Sales page can see admin and employees but only admin have a rights to restore or delete sales products. Use local storage to …

Member Avatar
+0 forum 0

i am creating an app with android studio and i'm using mySQL.and i want to implement friends feature in my app to enable users send and recieve friend requests, i have created tables and writen the server side php code for that, i have also created an add as friend button that should do that in my app but i'm still unable to write the appropriate code for that in android.your help with this will be highly appreciated.

Member Avatar
Member Avatar
-2 forum 3

Hi all, I need to read a text file (I've attached it, you can take a look), and then store all the numbers in it into a 2D array. After which, I need to parse it. I need urgent help here! ):

Member Avatar
Member Avatar
-2 forum 49

Hello everyone, I used in my htlm/php page the code of site where the data is showed in this part.: <div class="row" id="records"><div class="col-sm-4" id="emp_id"></div> The value what that script gets from my database is put in id="emp_id". Now my question is as next. Is it possible to put id="emp_id" into a php variable? So i also can read that into the rest of my vars ike here? foreach ($_POST as $key => $val) $_SESSION[$key] = $val;

Member Avatar
Member Avatar
+0 forum 5

algo?

Member Avatar
Member Avatar
-2 forum 1

How can I calculate the average weight in python for two columns (x,y) data file, between 8<r< 9. in python I have tried this put it dose not work with my np.average(X,Y, weights=[8,9]) I have calculated the average weight which is 12.14, now I am trying to use this weight to calculate the average fro the X, Y values?? How can I do so ?

Member Avatar
Member Avatar
+0 forum 2

Hello everyone, I am having trouble with my program its solving expressions and when I compile it I get a "Illegal start of expresson" line in my output. I am using Jgrasp as my softwear. May I ask to reveiw my code and see on what I did wrong? I am asking for learning purposes. Thank You. import java.util.ArrayList; import java.util.Scanner; import static java.lang.Integer.*; import static java.lang.System.*; public class ExpressionSolver { int answer; String expString; ArrayList<String> exp; public ExpressionSolver(String s) { setExpression(s); } public void setExpression(String s) { expString = s; exp = new ArrayList<String>(); for(String temp: s.split(" ")) { …

Member Avatar
Member Avatar
+1 forum 25

hello there. i needed a little help in writing coding for reading multiple lines of data from a .txt file that are seperated by commas. Student Name, Student ID, Mark Ada Lovelace , S001 , 99 Barbara Liskov , S0123 , 44 Carol Shaw, S0023 , 55 Donna Dubinsky , S8333 , 33 Shafi Goldwasser , S934 , 77 Sophie Wilson , S11813 , 22 Frances Elizabeth Allen , S8254 , 66 After reading the data, the data has to be graded and sorted by name, id and grade. i would very much appreciate your guys help in this

Member Avatar
Member Avatar
+0 forum 7

Urgently need help ASAP!!! If anyone could help me with these questions, i would be so grateful. 1) write a program tht allows the user to enter a part no. tht consists of 4 or 5 characters. D 2nd and 3rd characters represent the delivery method as follows: "MS" represents "Mail-Standard", "MP" represents "Mail-Priority", "FS" represents "FedEx-Standard", "FO" represents "FedEx-Overnight" and "UP" represents "UPS". Display an appropriate message when the part no. does not contain either 4 or 5 characters. Also display an aprropriate message when the 2nd and 3rd characters are not one of the delivery methods. If the …

Member Avatar
Member Avatar
+0 forum 1

I am very new at programming in Java. Could somebody help me out with programming a Tic Tac Toe game? I would love to have to have the code for a game that can be played against the CPU. The assignment is to write the tic tac toe game using arrays. Thanks in advance.

Member Avatar
Member Avatar
+0 forum 26

Hello, I am trying to prevent my form, from submitting if the file is not an image type file but i keep failing, the array that i am using keeps displaying regardless of the files type. Any help would be grateful. <?php $Manufacturer = $_POST['Manufacturer']; $Brand = $_POST['Brand']; $Model = $_POST['Model']; $Type = $_POST['Type']; $Wheel = $_POST['Wheels']; $Colour = $_POST['Colour']; $Number = $_POST['Gears']; $Brake = $_POST['Brakes']; $Suspension = $_POST['Suspension']; $Gender = $_POST['Gender']; $Age = $_POST['Ageof']; $image = $_FILES["images"]["name"]; $Additional = $_POST['Additional']; include "../include/config.php"; $upload_folder = "./uploads/"; $result=mysqli_query($connection,"SELECT * FROM `Bike` WHERE manufacturer='$Manufacturer'"); //$file="./uploads/".$_FILES["images"]["name"]; //$image = addslashes(file_get_contents($_FILES . '../BikeRegistrationDAO.php')); if($row=mysqli_num_rows($result) > …

Member Avatar
Member Avatar
+0 forum 5

write a c program that calculates the Max , Min , Average and Variance of 10 numbers enterd by user and stored in array

Member Avatar
Member Avatar
+0 forum 2

test for check more 5 items

Member Avatar
Member Avatar
+0 forum 4

Create three classes the Calculation class, Conversion class and Menu Class. The Conversion class should have the following methods. double KMToMiles(double distance) double MilesToKM(double distance) double FeetToMetres(double distance) double MetresToFeet(double distance) double KgToPounds(double weight) double PoundsToKg(double weight) double CelciusToFahrenheit(double temperature) double FahrenheightToCelcius(double temperature) The Calculation class should have the following methods int SumOfSeries(int start, int end, int incr) int SumOfArray(int data[], int size) int ProductOfSeries(int start, int end, int incr) int ProductOfArray(int data[], int size) e.g. SumOfSeries(10,20,2) should produce the answer 90 Hint : 10+12+14+16+18+20 Similary ProductOfSeries(100,200,50) should produce 3,000,000 Hint : 100x150x200 = 3,000,000 The Menu class should have …

Member Avatar
-1 forum 0

Hey everyone, I have a JSON array that pulls data, its an immense amount of data that i use. It is a multilevel array eg: dateTime: 2018-12-04T10:30:45:222z comments:"" +Driver[0] [0] fname: John lname: Doe driverCode: DOEJ [1] fname: Mary lname: Smith driverCode: SMIMA more info etc I am trying to access dateTime, as well as driver.fname, driver.driverCode etc... here is what i have tried so far... var json = results; var li; for(var i; i=0; i < json.length; i++){ for (var j; j=0; j < json[i].driver.length; j++){ var stTime = new Date(json[i].dateTime); var status = json[i].status; var id = json[i].id; …

Member Avatar
Member Avatar
+0 forum 5

hello i want to create two arrays i have the index for them and the size and have the dot product of a and b and create a third array that is c[i]=a[i]*b[i] however i tried to do it but the output doesn't come the correct :( import java.util.Scanner; public class JavaApplication09 { static Scanner input = new Scanner (System.in); public static void main(String[] args) { int a [] = {1,2,3,4,5}; int b [] = {6,7,8,9,3}; int c [] = null; for (int i=0;i<a.length;i++){ c[i]+= (a[i]*b[i]); } } } can someone help what i did wrong ??

Member Avatar
Member Avatar
+0 forum 3

Actually i want to add both the values of ids 2 and the ids 3 <form method="post" name="fo" action="#"> <input type="text" name="ids[]" value="2"/> <input type="text" name="amount[]" value="100"/> <input type="text" name="ids[]" value="3"/> <input type="text" name="amount[]" value="200"/> <input type="text" name="ids[]" value="2"/> <input type="text" name="amount[]" value="300"/> <input type="text" name="ids[]" value="3"/> <input type="text" name="amount[]" value="50"/> <input type="submit" name="submit"/> </form> <?php $id=$_POST['ids']; $am=$_POST['amount']; $arr=array( array('id'=> $id,'am'=>$am) ); $heads = array(); $amounts = array(); $i = 0; foreach($arr as $sub) { $key = array_search($sub['id'], $heads); if($key) { $amounts[$key] += $sub['am']; } else { $heads["'" . $i . "'"] = $sub['id']; $amounts["'" . $i . "'"] = …

Member Avatar
Member Avatar
+0 forum 2

i want to show my graph values but its show null output. i show you in image output also // JavaScript Document $(document).ready(function(){ $.ajax({ url: "data.php", method: "GET", success: function(data) { console.log(data); var playerid = []; var score = []; for(var i in data) { playerid.push("Player " + data[i].playerid); score.push(data[i].score); } var chartdata = { labels: playerid, datasets : [ { label: 'Player Score', backgroundColor: 'rgba(200, 200, 200, 0.75)', borderColor: 'rgba(200, 200, 200, 0.75)', hoverBackgroundColor: 'rgba(200, 200, 200, 1)', hoverBorderColor: 'rgba(200, 200, 200, 1)', data: score } ] }; var ctx = $("#mycanvas"); var barGraph = new Chart(ctx, { type: …

Member Avatar
Member Avatar
+0 forum 1

I work in VB.net only. I cal read an entire file in one statement, sort it with another statement and write it bacl in another. Three statements to sort a csv file! This is aswome, but I wan to know how to sort the file on different columns. Here is my code, Dim codes(), Saveline As String ' 'Read/Write file data ' codes = File.ReadAllLines(FileName) ' 'Save sorted copy ' Saveline = codes(0) codes(0) = "" Array.Sort(codes) codes(0) = Saveline ' File.WriteAllLines(FileName, codes) What I want to do is use array.sort(codes,2) where the 2 is column 2 or any other …

Member Avatar
Member Avatar
+0 forum 3

The End.