Question about Computers & Internet

1 Answer

TO USE SWITCH CASE

IN THIS I HAVE TO ACCEPT A OPERATOR LIKE + FOR ADDITION -FOR SUBTRACTION AND TO PERFORM RELATED OPERATIO BY ACCEPTING INPUT FROM USER

Posted by on

1 Answer

  • Level 2:

    An expert who has achieved level 2 by getting 100 points

    MVP:

    An expert that gotĀ 5 achievements.

    Governor:

    An expert whose answer gotĀ voted for 20 times.

    Hot-Shot:

    An expert who has answered 20 questions.

  • Expert
  • 55 Answers

I'm assuming you mean this is a programming problem, not the power supply problem you posted under. Here's an example in C, java and such are similar.

Assuming that InputKey is the operator you want to check.
char InputKey;

switch (InputKey) {
case '+':
// do addition here
break;
case '-':
// do subtraction here
break;
default:
// If it's none of the above, do this
};

Posted on Feb 15, 2008

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

Add Your Answer

Uploading: 0%

my-video-file.mp4

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

×

Loading...
Loading...

Related Questions:

1 Answer

What does product mean in maths


When you perform an arithmetic operation such as addition, subtraction, multiplication, or division the result has a specific name. The result of addition is called the sum; the result of a subtraction is called the difference; the result of multiplication is the PRODUCT. Finally the result of a division is the quotient.

Apr 21, 2013 | ASUS Eee Computers & Internet

1 Answer

What does poduct mean in maths


When you perform an arithmetic operation such as addition, subtraction, multiplication, or division the result has a specific name. The result of addition is called the sum; the result of a subtraction is called the difference; the result of multiplication is the PRODUCT. Finally the result of a division is the quotient.

Apr 21, 2013 | Office Equipment & Supplies

1 Answer

Which codes (OBDI or II) do I use for my 1994 Jeep Grand cherokee laredo 4.0 2wd


before 1996 they use onboard diagnosis system for jeep.

when you turn on key you need to count check engine light blinks.

here are codes taken from internet.

11* No crank reference signal detected during engine cranking.
12* Direct battery input to PCM was disconnected within the last 50 key-on cycles.
13** No difference recognized between the engine MAP reading and the barometric (atmosphereic) pressure reading at start-up
14** MAP sensor input below minimum acceptable voltage.
or
MAP sensor input above maximum acceptable voltage.
15** No vehicle distance (speed) sensor signal detected during road load conditions.
17* Engine coolant temperature remains below normal operating temperatures during vehicle travel (thermostat).
21** Neither rich nor lean condition detected from the oxygen sensor input.
or
Oxygen sensor input voltage maintained above the normal operating range.
22** Engine coolant temperature sensor input above maximum acceptable voltage.
or
Engine coolant temperature sensor input below minimum acceptable voltage.
23** Intake manifold air temperature sensor input above maximum acceptable voltage.
or
Intake manifold air temperature sensor input below minimum acceptable voltage.
24** Throttle position sensor input above maximum acceptable voltage.
or
Throttle position sensor input below minimum acceptable voltage.
25** A shorted condition detected in one or more of the idle air control motor circuits.
27* Injector #1 output driver does not respond properly to the control signal.
or
Injector #2 output driver does not respond properly to the control signal.
or
Injector #3 output driver does not respond properly to the control signal.
or
Injector #4 output driver does not respond properly to the control signal.
or
Injector #5 output driver does not respond properly to the control signal.
or
Injector #6 output driver does not respond properly to the control signal.
33* An open or shorted condition detected in the A/C clutch relay circuit.
34* An open or shorted condition detected in the speed control vacuum or vent solenoid circuits.
or
Speed control switch input below the minimum acceptable voltage.
or
Speed control switch input above the maximum acceptable voltage.
35* An open or shorted condition detected in the radiator fan relay circuit.
41* An open or shorted condition detected in the generator field control circuit.
42* An open or shorted condition detected in the auto shutdown relay circuit.
44* An open or shorted condition exists in the engine coolant temperature sensor circuit or a problem exists in the PCM's battery temperature voltage circuit.
46** Battery voltage sense input above target charging voltage during engine operation.
47** Battery voltage sense input below target charging voltage during engine operation. Also, no significant change detected in battery voltage during active test of generator output.
51** Oxygen sensor signal input indicates lean air/fuel ratio condition during engine operation.
52** Oxygen sensor signal input indicates rich air/fuel ratio condition during engine operation.
53* PCM internal fault condition detected.
54* No fuel sync (camshaft signal) detected during engine cranking.
55* Completion of diagnostic trouble code display on the malfunction indicator lamp (check engine lamp).
62* Unsuccessful attempt to update SRI (service reminder indicator) miles in the PCM EEPROM.
63* Unsuccessful attempt to write to an EEPROM location by the PCM.

* - Check engine lamp will not illuminate at all times if this code was recorded. Cycle ignition key as described and observe code flashed by check engine lamp.

** - Check engine lamp will illuminate during engine operation if this code was recorded.

PCM = Powertrain Control Module (the engine computer)
MAP = Manifold Absolute Pressure (the sensor that measures how hard the engine is sucking air through the intake manifold
EEPROM = Electrically Erasable Programmable Read Only Memory (a type of computer chip used inside the PCM)

Nov 19, 2011 | 1994 Jeep Grand Cherokee

1 Answer

Sample of how to create a python program that will input two numbers and will ask the user of operation to perform as to addition,subtraction,multiplication or division the program should perform the...


Assuming that the input numbers are given by the user:print "Menu"print "1. Addition"print "2. Subtraction"print "3. Multiplication"print "4. Division"print "0. Quit"
a = input("Please make a selection:")if a == 1: x = input("Please enter a number:") y = input("Please enter another number:") answer = x + yprint "%r plus %r = %r" % (x,y,answer)elif a == 2: x = input("Please enter a number:") y = input("Please enter another number:") answer = x - yprint "%r minus %r = %r" % (x,y,answer)
The same goes for everything else just with different signs. Don't forget that "*" is multiplication and "/" is division. Also, for 0. Just use:
elif a == 0: quit

Sep 28, 2011 | Computers & Internet

1 Answer

My radio will not accept any input from the handlebar mounted switches......not on the volume treble or bass or the other side with band. In addition i cannot turn off the unit, it will not accept any...


If there is no audio, the radio is locked on an fm station with preset 1 highlighted, and no control from the handlebar or face, the TMS 320 processor is locked. The radio cannot be repaired. try to get your HD dealer to exchange it.

Oct 30, 2010 | Harley Davidson 426290 AM/FM Radio

1 Answer

How do you subtract fraction on a caluclator. problem: 6/7-2/5


A fraction is just a number like (almost) any other. On most calculators, as you enter 6/5 the calculator displays its decimal value. When you press - the calculator waits for a number 2 then / then 5. Once you press the equal sign it will calculate 2/5 then subtracts it from the preceding result. The priority rules favor multiplication and division over addition and subtraction.

On some calculators you can keep a fraction in fraction format and operate on it with other fractions, and the result may be obtained as a fraction.
The gist of the story is that ON A CALCULATOR operations on fractions as performed like operations on any number.

Dec 20, 2009 | Sharp Office Equipment & Supplies

1 Answer

LINUX SQUID SERVER IN TRANSPARENT MODE


Dear Friend....
The examples below are based on the discussion of Linux iptables in Chapter 14, "Linux Firewalls Using iptables". Additional commands may be necessary for you particular network topology.
In both cases below, the firewall is connected to the Internet on interface eth0 and to the home network on interface eth1. The firewall is also the default gateway for the home network and handles network address translation on all the network's traffic to the Internet.
Only the Squid server has access to the Internet on port 80 (HTTP), because all HTTP traffic, except that coming from the Squid server, is redirected.
If the Squid server and firewall are the same server, all HTTP traffic from the home network is redirected to the firewall itself on the Squid port of 3128 and then only the firewall itself is allowed to access the Internet on port 80.
iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 80 \
-j REDIRECT --to-port 3128
iptables -A INPUT -j ACCEPT -m state \
--state NEW,ESTABLISHED,RELATED -i eth1 -p tcp \
--dport 3128
iptables -A OUTPUT -j ACCEPT -m state \
--state NEW,ESTABLISHED,RELATED -o eth0 -p tcp \
--dport 80
iptables -A INPUT -j ACCEPT -m state \
--state ESTABLISHED,RELATED -i eth0 -p tcp \
--sport 80
iptables -A OUTPUT -j ACCEPT -m state \
--state ESTABLISHED,RELATED -o eth1 -p tcp \
--sport 80
Note: This example is specific to HTTP traffic. You won't be able to adapt this example to support HTTPS web browsing on TCP port 443, as that protocol specifically doesn't allow the insertion of a "man in the middle" server for security purposes. One solution is to add IP masquerading statements for port 443, or any other important traffic, immediately after the code snippet. This will allow non HTTP traffic to access the Internet without being cached by Squid.
If the Squid server and firewall are different servers, the statements are different. You need to set up iptables so that all connections to the Web, not originating from the Squid server, are actually converted into three connections; one from the Web browser client to the firewall and another from the firewall to the Squid server, which triggers the Squid server to make its own connection to the Web to service the request. The Squid server then gets the data and replies to the firewall which then relays this information to the Web browser client. The iptables program does all this using these NAT statements:
iptables -t nat -A PREROUTING -i eth1 -s ! 192.168.1.100 \
-p tcp --dport 80 -j DNAT --to 192.168.1.100:3128
iptables -t nat -A POSTROUTING -o eth1 -s 192.168.1.0/24 \
-d 192.168.1.100 -j SNAT --to 192.168.1.1
iptables -A FORWARD -s 192.168.1.0/24 -d 192.168.1.100 \
-i eth1 -o eth1 -m state
--state NEW,ESTABLISHED,RELATED \
-p tcp --dport 3128 -j ACCEPT
iptables -A FORWARD -d 192.168.1.0/24 -s 192.168.1.100 \
-i eth1 -o eth1 -m state --state ESTABLISHED,RELATED \
-p tcp --sport 3128 -j ACCEPT
In the first statement all HTTP traffic from the home network except from the Squid server at IP address 192.168.1.100 is redirected to the Squid server on port 3128 using destination NAT. The second statement makes this redirected traffic also undergo source NAT to make it appear as if it is coming from the firewall itself. The FORWARD statements are used to ensure the traffic is allowed to flow to the Squid server after the NAT process is complete. The unusual feature is that the NAT all takes place on one interface; that of the home network (eth1).
You will additionally have to make sure your firewall has rules to allow your Squid server to access the Internet on HTTP TCP port 80 as covered in Chapter 14, "Linux Firewalls Using iptables".

Good Luck!

Jun 22, 2009 | Computers & Internet

1 Answer

HVAC performs normally until the car begins to move forward


Not roadmaster but should be quite similar, if not same. (schematics) just in case this helps.

http://www.autozone.com/shopping/repairGuide.htm?pageId=0900c1528004aa2b

Feb 13, 2009 | 1993 Buick Roadmaster

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

Related Topics:

44 people viewed this question

Ask a Question

Usually answered in minutes!

Top Computers & Internet Experts

Les Dickinson
Les Dickinson

Level 3 Expert

18385 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...