Hi guys as a homework i have to write a program that read from a file that contain the folowing:
toto, M, 50
fifi, F, 60
soso, F, 70
lolo, M, 60
fifi, F, 60
and then find the following:
Which mark is most repeated and how many times is it repeated
avgerage all students
avgerage all male
avgerage all female
how many are below ...
I need to be able to write a function that shows repeated words from a string and return a list of strings in order of its occurrence and ignore non-letters
e.g at hugs prompt
repetitions :: String -> [String]
repetitions > "My bag is is action packed packed."
output> ["is","packed"]
repetitions > "My name name name is Sean ."
output...
hi i prepare myself for the exams and i am styding on previous past papers.
could anybody give me a model answer to the following question,it would be very helpful to me to work through the answer!
a) Show how to read a line using getLine and use putStrLn to write out the
capitalized version of the line. (15%)
b) Consider the followin...
hi,
does anyone know how to write a program in pytohn that will calculate the addition of the harmonic series. i.e.1/2 +1/3 +1/4...
thanks.
lincoln
...
Hi,
I need to write a small program that can detect that it has been changed. Please give me a suggestion!
Thank you.
...
Hi,
I wrote this code
I have these errors
Cannot implicitly convert type x.Program.TreeNode' to 'int' // on findmin
Cannot implicitly convert type x.Program.TreeNode' to 'int' // on findmax
and is my main correct or missing somethin?
and how i can count the nodes,leaves and get the hight (need only hints)
class Program
{
...
I'm having a problem with the following code snippet:
using System;
using System.Collections.Generic;
using System.Text;
namespace trees_by_firas
{
class Program
{
static void Main(string[] args)
{
BinarySearchTree t = new BinarySearchTree();
t.insert(ref t.root, 10);
t.inser...
Hi,
I am including Javascript code that is used to pop up a calendar. The problem with the code is that I want a '0' to be inserted in front of the month or day if the month lies between 1--9 and days between 1--9 in the calendar.
The following is the script. Can anybody guide me to the modifications?
<!DOCTYPE HTML PUBLIC "-//W3C//...
Hi,
I have this string: " Mimi loves Toto and Tata hate Mimi so Toto killed Tata"
I want to write a code that print only the words that begin with capital letters, avoiding repetition
the Output should be like
Mimi
Toto
Tata
I tried to do so but I'm sure its wrong even though no errors are showing.
The code i wrote :
static void...
class Program
{
static void Main(string[] args)
{
string s = "the U.S.A love UK";
Console.WriteLine(replace(s));
}
public static string replace(string s)
{
s = Regex.Replace(s, @"^U.S.A", " United state Of America");
s = Regex.Replace(s, @"^Uk", ...
I did the following to upper case the first letter in each word but its working only on the first word
check it out Why ?
and please explain
static void Main(string[] args)
{
string s = "how u doin the dnt know about medri sho min shan ma baref shu";
string a = tocap(s);
Console.WriteLine(a)...
I have a database assignment which i have to create some relational algebra for two problems. I feel fairly all right with the majority of it, but I just get confused when trying to project attributes out of a table which is joined to another table.
for example is this correct?
Q1) List the details of incidences with no calls made, so ...
I'm learning how to write programs in C using the k&r book (The C Programming Language) and I have a problem with one of the exercises. It's asking me to detect and remove a character in string s1, which matches any characters in the string s2.
So, say s1 = "A";
And s2 = "AABAACAADAAE"
I want it to return "BCDE"
I know I'm on the rig...
An idea I had to solve this, is to make up an buffer of size 8x8, fill it up with pointers to my checkers (all 20 of them), and the rest leave 0 (null), then run a shuffling algorithm on the buffer, and thats it (just read it as a 8x8 array)
I was wondering if there's a better way to do this.
I need to write it in C#, and my proposal w...
Hi Everyone,
I have a MySQL Left Join problem.
I have three tables which I'm trying to join.
A person table:
CREATE TABLE person (
id INT NOT NULL AUTO_INCREMENT,
type ENUM('student', 'staff', 'guardian') NOT NULL,
first_name CHAR(30) NOT NULL,
last_name CHAR(30) NOT NULL,
gender ENUM('m', 'f') NOT NULL,
dob V...
I have taken an AI course, and the teacher asked us to implement a game that makes use of one of the AI algorithms. Here is where I need a bit of help:
I don't know to what kind of games each algorithm is applied
if you could just give an example of a game or game type and the algorithm it uses, I would appreciate it
I don't need an...
Hey folks,
In my "Professional Communication for Software Engineers" class we're going to be tasked with getting involved in either a face-to-face or online forum where you can give a short, technical, and informational presentation on an engineering topic and then get some feedback by an audience as to their take on how you're presenta...
A number of students want to get into sections for a class, some are already signed up for one section but want to change section, so they all get on the wait lists. A student can get into a new section only if someone drops from that section. No students are willing to drop a section they are already in unless that can be sure to get...
Disclaimer: This is for a homework assignment, but the question is not regarding the assignment, just about general syntax weirdness.
I'm trying to use libpcap in the context of a much larger program, but when I try to get the packet header and data for each packet gcc complains that the third parameter to pcap_next_ex is of an incompat...
I am searching for a proof that all AVL trees can be colored like a red-black tree?
Can anyone give the proof?
...