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

$count1 = array(); $count1[0] = " 1"; $count1[1] = " 2 1"; $count1[2] = " 3 2 1"; $count1[3] = " 4 3 2 1"; $count1[4] = " 5 4 3 2 1"; $count1[5] = " 6 5 4 3 2 1"; for ($b = 1;$b <= 6;$b++) { echo $count[$b]; echo "<br>"; } why does this not work? it just goes on forever. How do i use the $b to up the count of $count[]?

Member Avatar
Member Avatar
+0 forum 1

Hey guys, I am at the very beginning of learning Java and my task right now is to code a maze (2D Array) and let a bot automatically solve that maze using only the right hand rule. If I let the programm run it prints out an infinite number of the maze I choose. The programm must also print out the way the bot is "walking" step by step. A little help would be very welcome! import java.util.Scanner; public class BB8Labyrinth { public static void outputMaze (char [][] maze) { System.out.print(""); for (int i = 0; i < maze.length; i++) …

Member Avatar
Member Avatar
+0 forum 2

Hello, I would like to change the background color for each rows in Timeline chart based on specific value I,ve retrieve from database. For example, if the $status = '1', the backgrouncolor should be #000000, or else #ffffff var container = document.getElementById('myChart'); var chart = new google.visualization.Timeline(container); var dataTable = new google.visualization.DataTable(); dataTable.addColumn({ type: 'string', id: 'Position' }); dataTable.addColumn({ type: 'string', id: 'Name' }); dataTable.addColumn({ type: 'date', id: 'Start' }); dataTable.addColumn({ type: 'date', id: 'End' }); dataTable.addRows([ <?php for($i=0; $i<count($arr_code); $i++) { echo $data="['TEST', 'BAR NAME', new Date($start_date[$i]), new Date($end_date[$i])],"; } ?> ]); var options = { timeline: { rowLabelStyle: …

Member Avatar
+0 forum 0

Write a python script for mass renaming music files according to labels. The script takes an existing format of files in current directory and an expected output format and prints a list of old -> new file name tuples. Format can be any string that contains any number of the labels: <artist>, <album>, <track>, <year> Assume file names match input format. Sample list of input files: Bob Dylan - 01 You're No Good (1962).mp3 Bob Dylan - 02 Talkin' New York (1962).mp3 Bob Dylan - 03 In My Time of Dyin' (1962).mp3 Bob Dylan - 04 Man of Constant Sorrow …

Member Avatar
Member Avatar
+0 forum 2

SimpleDateFormat sdf = new SimpleDateFormat("MM/dd/yyyy"); Date date = sdf.parse(d); Calendar cal = GregorianCalendar.getInstance(); cal.setTime(date); for (i=0;x>i;i++){ cal.add(GregorianCalendar.DATE, 7); String t = sdf.format(cal.getTime()); DefaultTableModel model = (DefaultTableModel) jTable1.getModel(); model.addRow(new Object[]{t,c}); }

Member Avatar
Member Avatar
+0 forum 3

Hi, I'm trying to create and save breadcrumbs from recursive function. I manage to display hierarchical tree using recursive function. but I'm I am having hard time creating breadcrumb and save them one by one to my database. here is my table cat_id parent_id title 10 0 shoes 11 0 clothes 12 10 socks 13 11 long-sleve 14 11 T-shirts ... My desire output is like this: Home > Category1 > item Home > Category1 > item Home > Category1 > item Home > Category2 > item Home > Category2 > item Any idea thanks..

Member Avatar
+0 forum 0

define an array with 12 month/rows and 31 days/columns for a year's temperature data in a main function. One subtask is to write a function and call it from main reading a text file with mean temperature data of one year and store read data into this array. For example, when you read the temperature 15.4 degrees at date 23.11.2017 you can store double value 15.4 in array row 11 and column 23 as index. how i can make the program know thiss the temperature value even in the file seems like this 23.11.2017,15.4

Member Avatar
Member Avatar
+0 forum 2

write a program of two dimensional array in which roll number of the student are stored in first dimension and their marks in three different subjects are stored in second dimensional array creat a form in which a combo box is loaded with first dimension of array and when the user select any name of the student from combo box then marks of selected student should be changed in the below text box.

Member Avatar
Member Avatar
-2 forum 1

The End.