Write a program that asks the user to enter the numbers

Assignment Help Electrical Engineering
Reference no: EM13261954

Write a program that asks the user to enter the numbers from 1 to 16 (in any order) and then display the numbers in a 4 by 4 arrangement, followed by the sums of rows, columns and diagonals. Example:
Enter the numbers from 1-16 in any order: 16 3 2 13 5 10 11 8 9 6 7 12 4 15 14 1
16 3 2 13
5 10 11 8
9 6 7 12
4 15 14 1
Row sums: 34 34 34 34
Column sums: 34 34 34 34
Diagonal sums: 34 34

Reference no: EM13261954

Questions Cloud

Show the project plan - t-test : Target population: Heart Disease Patients in the United States and research variable:Heart Disease Smokers -
What is the mutual inductance of the two-coil system : Two coils of wire are placed close together. Initially, a current of 2.27 A exists in one of the coils, What is the mutual inductance of the two-coil system
What is the phase constant of the given wave : Two sinusoidal waves of the same period, with amplitudes of 7.3 and 7.60 mm, What is the phase constant of the 7.60 mm wave in rads
What are the expected payoffs : Determine what choice they should make using the Hurwicz (? = 0.55) and equal likelihood criteria. What are the expected payoffs?
Write a program that asks the user to enter the numbers : Write a program that asks the user to enter the numbers from 1 to 16 (in any order) and then display the numbers in a 4 by 4 arrangement, followed by the sums of rows, columns and diagonals.
Create the layout design for mos nand3 gate using depletion : Create the layout design for MOS NAND3 gate using a depletion-type transistor with VTL = -0.3V and enhancement-type transistors with VTO = 0.5V such that VOL is less than or equal to 0.1V. VDD = 2.5V , tox = 10nm and 2X = 0.6μm .
What will be the remaining balance on the mortgage : You recently obtained a 30-year, monthly payment. $250,000 mortgage with a 7 percent nominal interest rate.
When both wires oscillate simultaneously : Two identical piano wires have a fundamental frequency of 491 Hz when kept under the same tension.  when both wires oscillate simultaneously
Design a 3-bit synchronous counter using only d-flip flops : design a 3-bit synchronous counter (using only D-flip flops and NAND gates) that produces the sequence 000, 010, 011, 001, 101, 100, 000, etc. whenever the single input is 1. The counter retains its current value whenever the input bit is 0.

Reviews

Write a Review

Electrical Engineering Questions & Answers

  Find speed of an electron beam coming from an electron gun

The axis of the cylinder is along the z axis, and the electrons are moving with a velocity vector v in the positive z direction. The velocity of the electrons is 0.1c where c is the speed of light (2.99792458 ´ 108 [m/s]). The magnitude of the cur..

  How to convert numbers to 4-bit values

Convert both numbers to 4-bit values, take the 2's complement of 9 and add them. What happens to the carry out How does that compare with what happens when you subtract 8 from 9

  Design an adder that computes the sum of four 8-bit numbers

Design an adder that computes the sum of four 8-bit numbers, using 8-bit carryripple adders. Use a basic 8-bit carry-ripple adder as a building block for the design.

  Calculate the efficiency of transmission at the ip level

Calculate the efficiency of transmission at the IP level. Assume no options for the header and no errors. Calculate the efficiency of transmission at the data link layer. Assume no options for IP header and Ethernet-II format are used at the d..

  Write a testbench stimulus

Write a testbench stimulus for the below 8-bit Shift-Left Register with Positive-Edge Clock, Serial In and Serial Out. Start with all ones after the 8th=bit shifted to the left all zeros.

  Determine relative sizing of all the transistors to equalize

Sketch a transistor-level schematic of F=(A+BC+DE)' and determine the relative sizing of all the transistors to equalize the rise/fall time.

  Find the inverse laplace transforms of the functions

1- find the inverse Laplace transforms of the following functions: A- f1(s)= 50(s+10)/((s+5)(s+20)) b- f2(s)= (2s^2)((s+200)(s+500)) 2- find the inverse Laplace transforms of the following functions and sketch their waveforms for β >0 : a- f1(s)= (β(..

  What is the angle at each tip of the cottage

The cross section of a cottage 20 ft wide is an isosceles triangle. If the slope of a side is 1.75 and there is a second floor 9 feet above the ground floor,What is the angle at each tip of the cottage?

  Explain the parking lot of the spenditall megamall

The parking lot of the Spenditall Megamall has an area of 128 ac. It is partially landscaped to provide some areas of grass. Assume that an average of 63% of the water that falls on the parking lot will flow

  What is the output of the correlator for user1 for first bit

Sketch the baseband signals for the two users when user 1 sends the bits 011, and user 2 sends the bits 101. Add the signals for the first bit only, and show that the output of the correlator for user 1 is -4, corresponding to a 0

  Derive a state table for the fsm that produces z

During four consecutive clock pulses, a sequence of four values of the x signal is applied. Derive a state table for the FSM that produces z = 1 when it detects that either the sequence 1001 or 0111 has been applied; otherwise, z = 0. After the fo..

  What is the limit on leakage resistance for the capacitor

The dielectric materials used in real capacitors are not perfect insulators. A resistance called a leakage resistance in parallel with the capacitance can model this imperfection. A 150-F capacitor is initially charged to 100 V.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd