In this examle in writer.c I am trying to generate symbols from a to z and then print them in uppercase in reader.c. **writer.c:** // C Program for Message Queue (Writer Process) #include <stdio.h> #include <sys/ipc.h> #include <sys/msg.h> #include <string.h> // structure for message queue struct mesg_buffer { long mesg_type; char mesg_text[100]; } message; int main() { key_t key; int msgid; // ftok to generate unique key key = ftok("progfile", 65); // msgget creates a message queue // and returns identifier msgid = msgget(key, 0666 | IPC_CREAT); message.mesg_type = 1; char c; for(c = 'a'; c <= 'z'; ++c) strcpy(message.mesg_text,c); …

Member Avatar
Member Avatar
+0 forum 1

I Need Help, I Cant Find Anything Online On How To Make A Application That Can Have The Option To Sign Up And Login And When Accounts Are Signed Up, Anyone With The Application Can Login With Acocunts From Other Computers, How Would I Do This Without Being On The Same WiFi As Someone Else??? Please Help

Member Avatar
+0 forum 0

Write a program to read 50 students’ marks, calculate and print the number of students who succeed and the number of students who failed (any marks below 40 should be considered failed).

Member Avatar
Member Avatar
+0 forum 4

I am creating a program in python for a artificial intelligence for chinese checkers, but i cant even get the board to be portrayed! I am using this code: `Code` from tkinter import * root = Tk() board = PhotoImage(file="board.ppm") root.mainloop() I get the error as follows: Traceback (most recent call last): File "/Users/GAMEKNIGHT7/Documents/chineseCheckersAI(genius hour).py", line 3, in <module> board = PhotoImage(file="board.ppm") File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/tkinter/__init__.py", line 3539, in __init__ Image.__init__(self, 'photo', name, cnf, master, **kw) File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/tkinter/__init__.py", line 3495, in __init__ self.tk.call(('image', 'create', imgtype, name,) + options) _tkinter.TclError: couldn't open "board.ppm": no such file or directory What happened??`

Member Avatar
Member Avatar
+0 forum 1

I am trying to implement a MIPS code that preforms unsigned integer divide but i couldn't figure out how. if D == 0, report an error and terminate. Q = 0 # Q is the quotient, initialized to zero R = 0 # R is the remainder, also initialized to zero n = the number of bits in the numerator N # That is, the number 3710 is 1001012 has 6 bits. # Shift through the bits of N to find the # position of its most significant 1 bit. # Write a separate function to determine “n”. for i …

Member Avatar
Member Avatar
+0 forum 1

Hi Guys, I am looking for career advice. I am currently pursuing my associate's degree in computer science here in Texas. And I wanted to know if you guys know how people with associate's degrees get a job. As an international student, I would like one year of work before I transfer to a 4 year university to finish my bachelor's degree in software engineering or computer science. Currently I am taking my basics but I have done some programming in SQL, PHP, Java, Python, C, HTML and CSS. But I took breaks in between my learning so I am …

Member Avatar
Member Avatar
+0 forum 6

Hello all. So, I'm in my final year of my B.Tech. in computer science programme and I have to do a project for my final year. The thing is I want the project to be unique/innovative. I brainstormed a few things: 1. An online music player that can store your local computer files on cloud. Sorts them according to album, artists, stars, favorites, etc. You can listen to your songs anywhere on any anydevice once the are synched. But this is already implemented by amazon as cloudplayer.com. Is there any extra feature or more innovative faeture that I can implement. …

Member Avatar
Member Avatar
+0 forum 15

Write a function (seat_type) that reads an input from the user that represents a seat class. The user should enter F: for a first class seat, C: for a business class seat, or Y: for an economy seat. The function should validate the user input to accept only F, C, or Y.

Member Avatar
Member Avatar
+0 forum 14

I am thinking of something that would require extreme use of algorithms, maybe a search engine or a distributed computing systems. Any other idea for heavily algorithim based project that would of course increase my marketability ? and by the way i have 2 instead of 1 year to complete the project if i start now.

Member Avatar
Member Avatar
+0 forum 3

Hello everyone, I am 23 years old and currently in my 2nd semester of my 4th year of college. Regular college students are typically done after this semester, but unfortunately I still have 43 credits to go due to starting out at a local community college and dealing with pre-requisites. I should be able to graduate by Summer 2013 even if I switch from CS to IT. Here is my dilemma. I am considering switching from Computer Science to Information Technology. I have started becoming less and less interested in programming. I am pretty sure I do not want a …

Member Avatar
Member Avatar
+0 forum 13

Hi all, I am at a lost and do not know where to start from. Here is what I have to do "Given the data below, you are to design an IA-32 assembly language program to sort array X by the number of binary 0's in each member and save the sorted array in Y. You can use any sorting method and sort the array in ascending or descending order. .data X SWORD -2000, 1000, 3000, -4000 Y SWORD 4 DUP (?)" If anybody could give me some sort of direction to help me get started then that would help …

Member Avatar
Member Avatar
+0 forum 5

Hi!!! i'm final year student in computer science and have chosen virtual classroom systems to be done as a project for my final year.. i would like to know the enhancements and the new features that could be added to the project so that i could try to add them into my final year project… also, please let me know how to add web conferencing to the project.. please give ur comment about this project too..!! thank u…

Member Avatar
Member Avatar
+1 forum 4

Every day on his way home, little Billy passes by his great aunt Clara Mitchum's house. Generally he stops in for a chat with his aunt and sometimes he asks for some lollies. When he does, she generally gives him some, but then adds now don't be asking for any more for another N days where N is some positive integer. If N = 1 that means he can ask for some on the next day, but for example if it is April 6 and N = 4 then he must wait until April 10 or later before asking for …

Member Avatar
Member Avatar
+0 forum 1

After compiling this code, I am getting a "cannot find symbol constructor Timer(int,Morning)" on line 17. [CODE]import java.awt.*; import java.awt.event.*; import javax.swing.*; public class Morning extends JFrame { private EasySound rooster; private int time; /** * Constructor */ public Morning (int time) { time = 0; Timer clock = new Timer(30, this); clock.start(); } public Morning() { super("Morning"); rooster = new EasySound("roost.wav"); rooster.play(); Container c = getContentPane(); c.setBackground(Color.WHITE); } public static void main(String[] args) { Morning morning = new Morning(); morning.setSize(300, 150); morning.setDefaultCloseOperation(EXIT_ON_CLOSE); morning.setVisible(true); } } [/CODE]

Member Avatar
Member Avatar
+0 forum 5

I'm a computer science student at the University of Tennessee Knoxville and for my "Technical and Professional writing" course I have to interview someone in my field. Seeing as I know no computer scientist and my professors are too busy, would anybody in the wonderful Daniweb community be willing to lend me a short interview? Instant message, irc, chat room, doesn't really matter to me. Should take about 30 minutes ( I think) and we can do it at your convenience. I'd like to do it either today or tomorrow, but just let me know if this is at all …

Member Avatar
+0 forum 0

so I recently wrote a function that sorted using the last value in a tuple. Obviously this couldn't be done simply say sorted(tuples, key=tuples[-1]) because that is not a "legal" call. However I did run across, while trying to figure out how to make things like this work, the utilization of lambda so the code became. [CODE]def sort_last(tuples): x=sorted(tuples, key=lambda tuples: tuples[-1]) return(x)[/CODE] The code runs correctly and, that's all well and good, but I don't understand why lambda tuples"or any given var for that matter":. makes this possible. Can someone explain this to me in a way I'll understand …

Member Avatar
Member Avatar
+0 forum 6

Ok guys i am suppose to simulate an atm machine declare a variable to store the acct balance there shud be three options 1. if the user choses option 1, print balance 2. If the user choses option 2, ask the user to enter amt they want to withdraw. accept the amt, subtract from balance 3. if the user choses option 3, ask the user to enter amt they want to deposit. accept the amt, add to balance at the end of the program output balance and thank you msg here's what i did START DECLARE balance, amt, deposit, result …

Member Avatar
Member Avatar
+0 forum 2

How do you override a superclass's methods with a subclass? These are my two programs, the first being the super class, and the second being the subclass of which I am attempting to override the superclass's methods. [CODE]// This class represents a walker with two feet. import java.awt.Image; import java.awt.Graphics; import javax.swing.JPanel; public class Walker extends JPanel { public static final int PIXELS_PER_INCH = 6; private Foot leftFoot, rightFoot; private int stepLength; public int stepsCount; // Constructor public Walker(int x, int y, Image leftPic, Image rightPic) { leftFoot = new Foot(x, y - PIXELS_PER_INCH * 4, leftPic); rightFoot = new …

Member Avatar
Member Avatar
+0 forum 1

My friend and I are in a computer science class, and we were wondering how to edit the contents of a jar file? What software would we use, lines of code we might need, or any other input would be greatly appreciated. -From our computer to yours'- zach&kody

Member Avatar
Member Avatar
+0 forum 7

Computer Organization, Computer Design, and Computer Architecture; can you tell me the difference between them with examples? I'll quote my book for it's explanation of the three terms, which I don't understand. [QUOTE][I]Computer organization[/I] is concerned with the way the [COLOR="Green"]hardware components[/COLOR] operate and the way they are connected together to form the computer system. The various components are assumed to be in place and the task is to investigate the organizational structure to verify that the computer parts operate as intended.[/QUOTE] What are these hardware components? What are some different computer organizations? [QUOTE][I]Computer design [/I]is concerned with the hardware …

Member Avatar
Member Avatar
+0 forum 2

Hello would anyone be able to help me to understand how the following answer is derived? Given R < A= {V,W,X,Y,Z}, [CODE]Gamma = {V -> Y, YW -> Z Y -> W}> [/CODE] RTP VWY -> Z and VXY ->Z Answer: augment 3 by Y Y -> W Thank you

Member Avatar
+0 forum 0

When i finish my U.G at the rate i am going I don't think i will know anything.I want to know exactly what i should be knowing so that i can proceed with my graduate degree.Which languages are a must know,which data structure concepts i should know,should i be able to make a simple operating system by then?I am in 2nd year and before i know it will be graduating... I know: C(well) C++(well) learning java(going well) learning advanced java(but i don't think ill ever be done) html(little) CSS(very little) is it necessary to .Net and what is it? Is …

Member Avatar
Member Avatar
+0 forum 2

Once again, my friend Kody and I have come to a dilema. We made a Hopper class which makes 2 feet hop forward by our int stepLength. We placed a stop method to stop the feet at the end of the screen, but our instructor wants the feet directly in place whenever we press the "stop" button. Which right now, starts the feet at the beginning again. Here is the source we have been working the most with, and a parallel source used to gain predetermined methods. [CODE]// This class represents a walker with two feet. import java.awt.Image; import java.awt.Graphics; …

Member Avatar
Member Avatar
+0 forum 7

Hello, I am 16 years old and I wanted to know which science program to take for my last year of high school. (I'm already in high math). Either: -Social science (geography and history) -Pure science (chemistry and physics) That's not all, though. If it were that simple, I would have gone to pure science. My school offers an option course, and this year, they added physics into the mix. My question is: Do I take pure science or social science with physics as an option? If it helps, I'm in Montreal, Quebec, Canada. Thanks a bunch

Member Avatar
Member Avatar
+0 forum 2

I define a Decider PDA, a PDA (nondeterministic or deterministic) that does not loop for any input(I mean that it halt for every input,accept or reject). I want to know more about these PDAs and the class of functions they compute. Actually I didn't find about it in texts... I think that maybe non-loop is another word for it... Thanks.

Member Avatar
Member Avatar
+0 forum 4

Hi. If I define Poly-time functions, the functions that are computable by a turing machine in maximum polynomial(n) time, which n is size of input. Is the class of these functions recursively enumerable? I think that this Poly-time is the famous P-class in complexity,but as I searched I didn't find anything discussing wether this class is RE....My question comes from here:I read that the class of recursive functions is not RE,so I thought that maybe it's subclasses would be,the most natural subclass that came to my mind was this Poly-time functions class... Thanks very much.

Member Avatar
Member Avatar
+0 forum 2

My friend and I are in a Computer Science I class, and we are momentarily working on a project which asks you to import a method from a previously edited source, into another java source file. Here is our code. [CODE]import java.awt.Graphics; import java.awt.Color; import java.awt.Image; import java.awt.Container; import javax.swing.JFrame; import javax.swing.JPanel; import javax.swing.ImageIcon; import java.awt.*; public class PacerTest extends JPanel { private Image leftFoot; private Image rightFoot; private Image leftshoe; private Image rightshoe; // Constructor public PacerTest() { leftshoe = (new ImageIcon("leftshoe.gif")).getImage(); rightshoe = (new ImageIcon("rightshoe.gif")).getImage(); } // Called automatically when the panel needs repainting public void paintComponent(Graphics g) …

Member Avatar
Member Avatar
+0 forum 5

I learned Python and understand the mechanics to write scripts with functions and classes, etc. Most of my scripts run via the interactive prompt but I've done a little GUI programming to create some menus and buttons. I don't understand how larger programs are put together on a high level. While I understand that everything consists for loops, while, if-then, etc. what is the larger structure to an application? For example, what is the structure to a full-blown program like Excel, Photoshop, Firefox, etc. Sorry if this is bit confusing.

Member Avatar
Member Avatar
+0 forum 1

I am currently in the process of building a computer from scratch for two reasons. First, I intend to further my music endeavors, and secondly I intend to get back into photoshop and other visual programs. My concern is finding the proper components and or getting the right components specifically for these two things which i have discussed. Here are the components which I have my eyes on 1.ATX case: thermaltake vh6000bws ($199.00) 2.video card: a177-7600 ati 100-505508 firegl v7600 ($189.99) 3.power supply:kingwin mach 1 modular power supply 1200w ($199.00) 4.HDD:western digital wd20ears caviar green 2TB ($109.99) 5.CPU:intel core i7 …

Member Avatar
+0 forum 0

hi all, Let us all share the Interactive learning methods through the Internet. I mean the interactive learning methods that can be seriously useful and successful in self studying computer science.I'm a 3rd year student of here [url]http://www.bit.lk/[/url] and I decided to do self studying due to the higher fees among the Educational Institutes.And my university doesn't supply lectures,they just only provide some help through the LMS (through the internet) and I don't feel sufficient with that. Here let me mention what I'm using to feel more comfortable. * Free Video lectures. * E-books. * LMS (Learning Management Systems). * …

Member Avatar
Member Avatar
+0 forum 1

The End.