473,586 Members | 2,702 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Urgent Please Respond In 24 Hours

3 New Member
hi,

i got to submit this program for my assignment in around 24 hours.The program goes like this first i give a user a clue to an answer,if he fails to answer then another clue and if he fails that another clue will be provided which will be the final clue.The points for answering in the first,second and third clues are 15,10 and 5 respectively.Th ere are supposed to be 10 such questions.I am having a headache with the scoring so could anyone help me with that?
Nov 13 '06 #1
3 1264
jithinjp
3 New Member
will any one please help me???????
Nov 14 '06 #2
Ganon11
3,652 Recognized Expert Specialist
Maybe if you gave us a little more detail as to the problem specification, or showed us that you have actually tried to solve this yourself and haven't just decided to skip out on an assignment. Post some of the code you have and we can help you through it.
Nov 14 '06 #3
jithinjp
3 New Member
thats a part of the code and its all wrong!!
#include<iostre am.h>
#include<conio. h>
#include<string .h>
#include<dos.h. >
#include<proces s.h>
main()
{
clrscr();
int s1=15;
char ans;
char ch;
cout<<"Welcome" ;
cout<<"Clue 1";
cout<<"Do you Want to answer this question";
cin>>ch;
if (ch=='y')
{
cout<<"Enter Answer";
cin>>ans;
if (ans=='jithin')
{
cout<<"CORrect" <<s1;
}
}
else
{
cout<<"Clue 2";
cout<<"Enter answer";
cin>>ans;
if (ans=='jithin')
{
s1=s1-5;
cout<<"CORrect" <<s1;
}

else
{
cout<<"Clue 3";
cout<<"Enter Answer";
cin>>ans;
if (ans=='jithin')
{
s1=s1-10;
cout<<"CORrect" <<s1;
}
}

getch();
return 0;
}
Nov 14 '06 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

0
1594
by: felix_william | last post by:
Attention=3A Dear friend=2C REQUEST FOR BUSINESS RELATIONSHIP OF GREAT PROFITS I am HON=2E =28DR=2E=29 Felix William=2C the Director of Procurement and Contract Award at the Nigerian National Petroleum Corporation =28NNPC=29 of the Federal Republic of Nigeria=2E I apologized using this medium to reach you for a transaction=2F business of...
5
1472
by: coinjo | last post by:
Problem Statement One of the local banks is gearing up for a big advertising campaign and would like to see how long its customers are waiting for service by teller/service provider at drive-up window. Several employees have been asked to keep accurate records for the 24-hour drive-up service. The collected information, which is read from a...
1
1621
by: SpiderSwamy | last post by:
Hi, I know little bit about asp, I am facing a problem in Validating the ASP Form.. Example: Stud ID: 501242016 FirstName: Ajit LastName: Kar
13
2537
by: Niyazi | last post by:
Hi I have a report that I have to run it monthly in my machine. My code in VB.NET and I access AS400 to get data, anaysie it and send into pre formated Excel sheet. The data consist of 9000 rows. I use data table and with for loop I send the data row by row in pre-formated Excel sheet. My machine is:
0
1081
by: alok sengar | last post by:
hi, I have already tried this URL's code "http://www.java2s.com/Code/CSharp/Network/SimpleSNMP.htm" but I am getting error when i am creating a UDP type Socket and recieving packet from this socket. some time error is---"An existing connection was forcibly closed by the remote host" and some time error is--- "A connection attempt failed...
3
1539
by: settyv | last post by:
Hi, I need to generate PDF stream when i click on Linkbutton in datagrid ..At present i hardcoded the DMS Id and now it is working.But i need to pass DMS ID when click linkbutton.How can i do that? Here is the ASPX code: <asp:datagrid id="grdTentativeResults" Width="800" Runat="server"
1
1598
by: deena22 | last post by:
Hi i'm using 'Access database' and VB 6.0. My database is named ' timesheet' and it contains a table named 'tabletimesheet'. The table contain the following fields: 'staffname, stafftype, date, projectname, projectcode and hoursworked' . On my VB 6.0 form, i have got a ' list Box' containing the 'type of staff', for example 'engineer, manager...
3
7831
by: victorporton | last post by:
D.K. is traveling from City A to City B. He can stop at some designated spots only. I am trying to use Dijkstra’s algorithm to determine the “spot-to-spot” path that will get D.K. from City A to the City B in the minimum amount of time. The input in my program is an integer n and the 2D coordinates of n spots. Some assumptions have been...
1
4365
by: sachinv1821 | last post by:
hi all , i am getting this Problem i am Unable to Load the DLL/ACM, the Problem with this (DLL /ACM ) is its a C code but this DLL using the C++ library i written a wrapper for C++ library and Used this now, its Linking Correctly....and Created the (DLL/ACM), but when i try to load this (DLL/ACM) i am getting a LoadLibrary() is failing and...
0
7911
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
8200
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8338
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7954
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
8215
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5710
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3836
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
2345
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1448
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.