answersLogoWhite

0

Step 1. Learn the word "Fibonacci"...

User Avatar

Wiki User

15y ago

What else can I help you with?

Continue Learning about Engineering

Using while loop write a program which calculates the product of digits from 1 to 5 and also show these nos vertically?

Using while loop, write a program which calculates the product of digits from 1 to 5 and also show these no's vertically.


How do you write a program that asks the user to enter their favouite tv programme and display the result 15 times?

#include <iostream> #include <string> using std::cin; using std::cout; using std::endl; using std::string; int main() { cout << "Enter name of your favorite TV show: \n"; string tvShow = ""; cin >> tvShow; for (int i = 0; i < 15; i++) { cout << endl << tvShow; } cout << endl << endl; system("PAUSE"); return 0; }


How do you create Write a program that takes 10 integers as input The program will place these integers into an array and display the following 1. List in ascending order 2. mean 3. median 4.max val?

import java.util.Arrays; import java.util.Scanner; public class Answers { public static void main(String[] args) { //Creates a scanner object named console. Scanner console = new Scanner(System.in); //Variabels int [] numbers = new int [10]; double avg = 0.0; double median = 0.0; int max = numbers[0]; double count = 0.0; //User input. for (int i = 0; i < numbers.length; i++){ System.out.print("Number: "); numbers[i] = console.nextInt(); } //break System.out.println("==============="); //finds the average and max value. for (int i = 0; i < numbers.length; i++){ count += numbers[i]; avg = count / numbers.length; //average if (numbers[i] > max){ //finds the max value. max = numbers[i]; } } median = (numbers[4] + numbers[5])/2; //Median value //Display to user. System.out.println("Highest value found: " + max); //Show maximum value found in array System.out.printf("Median is: %.3f \n",median); //Show median System.out.printf("Average is: %.3f \n",avg); //Show average sortAsc(numbers); //Print out whole array ascending } //Method for sorting an Array ascending. public static void sortAsc(int [] array){ for (int i = 0; i < array.length; i++){ Arrays.sort(array); System.out.println(array[i]); } } } This should do everything you asked for, hope this helps!


How can you calculate the mechanical advantage of a toggle joint Show the derivations please?

Get a Machine Design or Kinematics book, but you must write the vector loop equations for all links in the mechanism.


How do you write not equal to sign in qbasic?

Well, in QBasic, to write the "not equal to" sign, you can use the "<>" symbol. It's like two friends standing side by side, but not quite holding hands - they're similar, but not exactly the same. Just remember, in the world of QBasic, this symbol will help you show when things are not equal.

Trending Questions
What are the positive effects using robots? What is a wide strip foundation? What are the basic characteristics of speech signal? What will be the resistance of carbon resistor having the green and golden colour bands? What kind of cement mixer is needed for laying a foundation? What are the 3 main contribution of primitive men? On a septic tank system why does washer water back up in a toilet near the washer and the other toilet cannot flush for up to 30 minutes after the washer water has drained? What is the newer kind of fastener than the zipper? Why Arrange compact disc,hard disk,digital versatile disc,pen drive,floppy disk in descending order of access speed and storage capacity.? What does mean DC CCSP? Is it true In a sequential search each element is compared to the searchValue and the search stops when the value is found or the end of the array is encountered? Why steel is used to reinforce concrete explain it? What is function point metric in software engineering? How do you get the specific gravity of aggregates in cold mix asphalt? Write a program that ask the user to enter a number n and display the first n even numbers? In digital circuits one MOSFET (Q1) is usually used as the? What are the various turning operations that can be performed and the shapes and types of tooling that can be used (such as solid speed tooling? Why are blast furnaces lined with fire bricks? What plays an important role in transforming data into useful information? How can bioengineering enhance the quality of life for people?