Preview

Cse Cycle Sheet Programs

Satisfactory Essays
Open Document
Open Document
384 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Cse Cycle Sheet Programs
cse CSE101 ‐ COMPUTER PROGRAMMING AND PROBLEM SOLVING ‐ LAB CYCLE SHEET 1 FALL SEMESTER ( July,13 ‐ December,13 )

S.No

PROBLEM STATEMENT All the Programs Must be Implemented in C Programming Language Only Write a Program to Display your details in the following format. ******************************* | Name : XXXXXXXX | | Age : XX | | Register Num : XXXXXXXX | | School : XXXXXXXX | ******************************** Write a Program to get Phone number (Integer), Age (Integer), Height (Decimal), Sex (Single character ‐ ‘M’ or ‘F’) from the user and then display the details. Write a Program to Exchange values in two integer variables i) Using a Temporary Variable ii) Without using a Temporary Variable Write a Program to perform basic Arithmetic operations which are Addition, Subtraction, Multiplication, Division and Modulo of Two numbers. Numbers are assumed to be Integers and has to be inputted from the user.

CONCEPTS TO USE

1

i) Formatted output(printf)

2

3

i)Various Data types ii)Input, Output(scanf,printf) i)Assignment Operator ii)Arithmetic Operator i)Arithmetic Operators ii)Decimal Display i)Expression Solving ii)Electronics Concepts

4

5

For the Circuit mentioned above, Get Ra, Rb, Rc, Rd, Re, Rf and Voltage ‘V’ from the user. Then Find and Display Effective Resistance ‘R’(Hint: Ra, Rb are in one series & Rc, Rd, Re, Rf are in another series) and then Display Current which is computed by, I = V/R, then as per Ohms law find and display the Power P which is equal to (I^2) *R Hint :

Write a Program to find Area and Circumference of

You May Also Find These Documents Helpful

  • Satisfactory Essays

    ECT122 W3 ILab 2

    • 279 Words
    • 2 Pages

    3. Use the breadboard to construct the circuit above. Measure and record the value of each resistor with the handheld DMM. Remember that you should remove the resistor from the circuit to obtain an accurate reading. Connect the input of the circuit to the variable positive supply connections on the power supply. Set the DC power supply to +10 volts. Use the handheld DMM to verify the input voltage is +10 V. Measure and record each voltage listed below with the handheld DMM. Measure the current last. Have the professor verify the connections before applying power.…

    • 279 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    cout << "Select the operator you want to work (+ for addition, - for subtraction , * for multiplication , / for division):- ";…

    • 426 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Nt1310 Unit 4

    • 910 Words
    • 4 Pages

    If you are given the following circuit, how can we determine (1) the voltage across each resistor, (2) current through each resistor. (3) power generated by each current source, etc.…

    • 910 Words
    • 4 Pages
    Satisfactory Essays
  • Good Essays

    Brandico Barr Module 3

    • 608 Words
    • 3 Pages

    Design a circuit and draw a circuit diagram using the proper symbols. Your circuit must contain a battery, a light bulb (if you would like to substitute another item that uses electrical power you may), a switch, an ammeter, and a resistor. After you draw your circuit, complete the questions which ask you to describe the circuit that you have created. You may hand draw the circuit and scan or fax the worksheet to submit for grading. Or you may use a…

    • 608 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    1) Numbers can be represented in binary (using 2 symbols 0 and 1) and hexadecimal ( 16 symbols…

    • 480 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Pt1420 Unit 7 Study Guide

    • 582 Words
    • 3 Pages

    21. Write a program that prompts the user to enter two unsigned numbers 0 to FFFFh and their sum in hex on the next line.…

    • 582 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Nt1310 Unit 3 Assignment

    • 256 Words
    • 2 Pages

    Write a program to read the name of 5 students through keyboard and store them in a file “name.txt”.…

    • 256 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    Nt1210 Chapter 1

    • 4800 Words
    • 20 Pages

    * Voltage is measured in volts (V). A computer power supply usually produces several different voltages. * Current is a measure of the amount of electrons going through a circuit. * Current is measured in amperes, or amps (A). Computer power supplies deliver different amperages for each output voltage. * Power is a measure of the pressure required to push electrons through a circuit, called voltage, multiplied by the number of electrons going through that circuit, called current. The measurement is called watts (W). Computer power supplies are rated in watts. * Resistance is the opposition to the flow of current in a circuit. Resistance is measured in ohms. Lower resistance allows more current, and therefore more power, to flow through a circuit. A good fuse will have low resistance or a measurement of almost 0 ohms.There is a basic equation that expresses how three of the terms relate to each other. It states that voltage is equal to the current multiplied by the resistance. This is known as Ohm's Law.V = IRIn an electrical system, power (P) is equal to the voltage multiplied by the current.P = VIIn an electrical circuit, increasing the current or the voltage will result in higher power.As an example of how this works, imagine a simple circuit that has a 9V light bulb hooked up to a 9V battery. The power output of the light bulb is 100W. Using the equation above, we can calculate how much current in amps would be required to get 100W out of this 9V bulb.To solve this equation, we know the following information: * P = 100W * V = 9V * I = 100W / 9V = 11.11AWhat happens if a 12V battery and a 12V light bulb are used to get 100W of power?100W / 12V = 8.33AThis…

    • 4800 Words
    • 20 Pages
    Powerful Essays
  • Better Essays

    Int Task 3

    • 2010 Words
    • 9 Pages

    The purpose of this project is to determine the fastest computer operating system for solving mathematical equations. Which operating system, Windows 7 or Ubuntu Linux, performs the best when it comes to pure number crunching? In order to test this question, the researcher ran a Java based application that benchmarks the ability of each operating system to perform a mathematical operation across three different data types and a second, more complex, mathematical operation. The Java based application, Java Micro Benchmark, performs each mathematical operation eight times per test and the researcher ran the test five times for each operating system. The mathematical operations testsed by Java Micro Benchmark are integer arithmetic, long integer arithmetic, double-precision floating point arithmetic and trigonometric arithmetic. This method gave the researcher data for forty tests per mathematical operation for each operating system. The resulting data is then compared to determine which operating system is able to process mathematical operations the fastest.…

    • 2010 Words
    • 9 Pages
    Better Essays
  • Satisfactory Essays

    ECT122 W2 ILab 3

    • 954 Words
    • 5 Pages

    1. Given the circuit below, use Ohm’s law to determine the total current in the circuit and the voltage across the resistor.…

    • 954 Words
    • 5 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Whole Numbers Assignment

    • 570 Words
    • 3 Pages

    It is the building blocks of mathematics. Working with whole numbers help you when are adding and subtracting hundreds and thousands of dollars. Then you might have to round up numbers when you are counting money. Multiplying whole numbers are very important, it is a repeating of addition. You have to budget Money. Dividing whole number comes when you are multiplying whole numbers.…

    • 570 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    An easy solution or a sweet escape, the trend continues to increase and has reached its peak point . It is proven 50 out of 100 people will retrieve this or go through this procedure ,divorce . This the legal ending to a marriage and has become more popular than marriage it self since 1969 . There are a variety of reasons people continue to get divorced , The most popular of these are the change in the law , secularisation ,declining stigma / change in attitudes ,rising expectations of marriage and changes in the position of women .…

    • 1300 Words
    • 6 Pages
    Good Essays
  • Powerful Essays

    |1.2 Demonstrate an understanding of the |Code listings show a variety of objects | |…

    • 2281 Words
    • 10 Pages
    Powerful Essays
  • Powerful Essays

    Nt1110 Unit 3 Assignment

    • 479 Words
    • 2 Pages

    Modern electronic calculators contain a keyboard with buttons for digits and arithmetical operations. Some even contain 00 and 000 buttons to make large numbers easier to enter. Most basic calculators assign only one digit or operation on each button. However, in more specific calculators, a button can perform multi-function working with key combination or current reckoning…

    • 479 Words
    • 2 Pages
    Powerful Essays
  • Good Essays

    Oopp Lab Work

    • 1489 Words
    • 6 Pages

    CSE219 OBJECT – ORIENTED PROGRAMMING LAB Cycle Sheet – I 1. Create a class that registers your details by taking reg.no, name, age and mail id. Create a function that prevents duplicate entries of objects based on reg.no. (b) 2. Create a class account that maintains acc_no, name, and balance. Perform deposit, withdrawal and statement print operations. (statement print must print all the transactions that has taken place so for – use structures inside the class to maintain the details about transactions)(b) -----------------------------------------------------------------------------------------------------3. Create a class that holds the details of the mobile phone like brand, imei, no of sim cards, phone numbers etc.,. Allow user to login with their mobile no. Use a function that sends a message from that mobile. Maintain the details of the message as a static member inside the send message function and display each time all the messages sent from that mobile. (b) 4. Create a class ID_card that maintains the details in an ID card. Perform insert, update, delete and display operation through functions that takes input through reference parameter. (c) ----------------------------------------------------------------------------------------------------5. Create a C++ program that takes employee details like ID, first name, last name, age and address. Create a class for student {name, course, regular/parttime, address}. Use friend function to check that a student with same name and address can’t be a regular student as well as an employee. (c) 6. Synthesize a C++ program that has two classes (one for employee and one for student), have a separate class for address (with door no, street name, city, state) and reuse address both for employee and student. Perform insert, delete and display operations by taking choice of person (employee or student) from the user. Allow user to have more than one address also. (c)…

    • 1489 Words
    • 6 Pages
    Good Essays