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 the impulse response in n domain

The transfer function (TF) of a system is given below. Find its impulse response inn domain. Hint: First multiply the TF by the z-transform of input-or x(z)-or the z-transform of unit impulse. Factor the denominator and then expand.

  What is the per unit value if we change the base

A generator is rated at 500 MVA (three phase) and 22 kV (line-to-line). Its Y-connected windings have a reactance of 1.1 per unit. Find the ohmic value of the reactance of the windings. What is the per unit value if we change the base to 200 MVA a..

  What is the minimum bandwidth necessary on transmission line

A transmitter is using a 2B1Q and operating at 3 Mbps. What is the minimum bandwidth necessary on the transmission line for successful communication

  Calculate ni and the concentration of electrons

an unknown semiconductor has Eg=1.1ev and Nv=Nc.it is doped with 10^15 donors,where the donor level is 0.2ev below Ec. given that Ef is 0.25ev below Ec, calculate ni and the concentration of electrons and holes in the semiconductor at 300k.

  What is bit rate of the transmission on the twisted pair

What is bit rate of the transmission on the twisted pair? If the digital outputs of three identical video cameras are combined onto a single cable using time division multiplexing, what is the bit rate on the cable?

  Calculate the dc resistance in ohms per km at 75oc

An AAC is composed of 37 strands, each having a diameter of 0.333cm. Calculate the DC resistance in ohms per km at 75oC. Assume that the increase in resistance due to spiralling is 2%.

  Explain what will the new mean and variance

Maximum Likelihood to get the above parameters i.e. u0 and var. Now from these 999 points, I take one point out (lets call it i) and add a new point (lets call it j). What will the new mean and variance be?

  How to find which feedback dominates in a circuit

In Astable multivibrator (using OP-AMP) and Butterworth 2nd order filter(using OP-AMP)(both high pass & low pass filter), both positive and negative feedback are given. But in Astable mutivibrator positive feedback dominates

  Find the power supplied by element has a positive value

find the complete functions, p(t) and w(t) supplied by the element, not just a number, and graph p(t) and w(t). Choose appropriate intervals of time for your graphs. Assume that both v(t) and i(t) are zero for t

  Calculate voltage regulation and efficiency of the line

A 3-phase transmission line series load of 2000MVA, .8 p.f. lag at 735 kv. The ABCD parameters of the line are : A = .8746 =D, B = j128.33Ω, C = j.0018315 (s). Calculate Vs, Is, voltage regulation and efficiency of the line.

  Draw a circuit for function using only and-or and not gate

F = B'D' + A'B'C + ABC + CD' Draw a circuit for this function using only AND , OR, and NOT gates. The function calls for two 3-input AND gates and one 4-input OR gate. All you have available, however, are 2-input AND and OR gates

  Write the vhdl architecture file for the y-output

Write the VHDL architecture file for the Y(5) output only for a 8-to-1 demultiplexer. The inputs are D, the selects S0-S2, and the ouputs Y(0)-Y(7). the select lines are bit_vector types, the data is bit type and the outputs are bit_vector types.

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