Better Than a Thousand Days of Diligent Study Is One Day with a Great Teacher"

Total Page:16

File Type:pdf, Size:1020Kb

Better Than a Thousand Days of Diligent Study Is One Day with a Great Teacher "Better than a thousand days of diligent study is one day with a Great Teacher" Java Question Bank (Version 10.0) www.techsparx.net www.techsparx.webs.com Saravanan.G Contents Most Simplest ............................................................................................................................................... 2 Decision Making Statements ........................................................................................................................ 4 Switch Statement .......................................................................................................................................... 7 Menu Driven Program................................................................................................................................... 7 Bill Programs ................................................................................................................................................. 8 Looping constructs (for, while, do while) ..................................................................................................... 9 Numbers – for loop ..................................................................................................................................... 10 Numbers – while loop ................................................................................................................................. 11 Series – nth term .......................................................................................................................................... 15 Series – n terms........................................................................................................................................... 16 Patterns ....................................................................................................................................................... 17 One Dimensional Array ............................................................................................................................... 19 Searching and Sorting ................................................................................................................................. 20 Strings – Part 1 ............................................................................................................................................ 21 Strings – Part 2 ............................................................................................................................................ 22 Strings – Part 3 ............................................................................................................................................ 23 Functions ..................................................................................................................................................... 27 Classes, Objects, Functions and Constructors ............................................................................................ 28 1 TechSparx Computer Training Center - 9880 205065 Most Simplest 1. Write a program (WAP) to print “Hello World”. 2. Write a program to print your name. 3. Write a program to add two numbers and display the given numbers and the sum. 4. Write a program to find the difference of two numbers and display the given numbers and the difference. 5. Write a program to find the product of two numbers and display the given numbers and the product. 6. Write a program to find the quotient of two numbers and display the given numbers and the quotient. 7. Write a program to find the remainder of two numbers and display the given numbers and the remainder. 8. Write a program to find the sum, difference, product, quotient and remainder of two numbers. 9. Write a program to find area of a square. 10. Write a program to find area of a rectangle. 11. Write a program to find the area of a circle. 12. Write a program to find the area of a triangle whose base and height are given. 13. Write a program to find area of a triangle whose 3 sides are given. 14. Write a program to find the volume and surface area of a sphere. 15. Write a program to convert Fahrenheit to Celsius 16. Write a program to convert Celsius to Fahrenheit. 17. Write a program to calculate the simple interest. 18. Write a program to calculate the compound interest. 19. Write a program to calculate the nth repunit. 20. Write a program to calculate the nth mersenne number. 21. Write a program swap two variables. 22. Write a program to find the roots of a quadratic equation. 2 TechSparx Computer Training Center - 9880 205065 Important formulas: Name Mathematical Formula Java Expression 1. Area of a Square double area = side * side; 2. Area of a Rectangle double area = length * breadth; 3. Area of a circle double area = Math.PI * radius * radius; 4. Area of a triangle double area = (1.0/2.0) * breadth * height; √ ( )( )( ) double s = (a * b * c) / 2.0; 5. Area of a triangle where double area = Math.sqrt( s * (s-a) * (s-b) * (s-c) ); double volume = (4.0 / 3.0) * 3.14 * r * r * r; or 6. Volume of a sphere double volume = (4.0 / 3.0) * Math.PI * r * r * r; or double volume = (4.0 / 3.0) * Math.PI * Math.pow(r, 3); Surface area of a 7. double surfaceArea = 4.0 * Math.PI * r * r; sphere double x = (-b + Math.sqrt( (b * b) – (4 * a * c) ) / ( 2 * a) ; Roots of quadratic √ 8. equation double x = (-b - Math.sqrt( (b * b) – (4 * a * c) ) / ( 2 * a) ; 9. Simple Interest double si = (p * t * r) / 100.0; 10. Compound Interest {( ) } ci = p * ( Math.pow( (1 + (r/100.0)), t ) - 1 ) 11. Repunit int repunit = ((int)Math.pow(10, n) – 1) / 9 12. Mersenne Number int mersenne = (int)Math.pow(2, n) – 1 Celsius to 13. ( ) double f = ( c * (9.0/5.0) ) + 32.0; Fahrenheit Fahrenheit to 14. ( ) ( ) double c = ( f – 32.0 ) * (5.0/9.0); Celsius 3 TechSparx Computer Training Center - 9880 205065 Decision Making Statements Using if 1. Write a program to find the larger of two given numbers. 2. Write a program to find the smaller of two given numbers. 3. Write a program to find if the given number is an even or odd number. 4. Write a program to check if the given number is Divisible by 7 (seven). 5. Write a program to check if the given number is positive or negative. Using if … else 6. Write a program to find the larger of two given numbers. 7. Write a program to find the smaller of two given numbers. 8. Write a program to find if the given number is an even or odd number. 9. Write a program to check if the given number is Divisible by 7 (seven). 10. Write a program to check if the given number is positive or negative. Using if … else if 11. Write a program to find the largest of three given numbers. 12. Write a program to find the smallest of three given numbers. 13. Write a program to find the real roots of a quadratic equation. (ax2 + bx + c = 0) 14. Write a program to print the grade based on the marks obtained according to the following table Marks Grade >=80 A 60 to 80 B 50 to 60 C 40 to 50 D <40 E 4 TechSparx Computer Training Center - 9880 205065 15. Write a program to print the day of week. (using if … else if ladder) Example: day = 1 dayOfWeek = “Monday” day = 2 dayOfWeek = “Tuesday” 16. Write a program to print the month of the year. (using if … else if ladder) Example: month = 1 --> monthOfYear = "January" month = 2 --> monthOfYear = "February" 17. Write a program to check if the given character is a digit or upper case letter or a lower case letter or a special character. 18. Write a program to check if the given character is a digit or upper case letter or a lower case letter or a special character. (using Character class functions) 19. Write a program to check if the given character is a vowel. 20. Write a program to check if the given number is a buzz number. Buzz number: A number which is either divisible by 7 or ends with 7. For Example: 67, 49, 37, 21 etc 21. Write a program to check if the given number is a Perfect square. For Example: 25, 36, 49 etc 5 TechSparx Computer Training Center - 9880 205065 6 TechSparx Computer Training Center - 9880 205065 Switch Statement 1. Write a program to input number of week’s day (1-7) and translate to its equivalent name of the day of the week. Example: 1 to Monday, 2 to Tuesday… 7 to Sunday 2. Write a program to input number of month of the year (1 - 12) and translate to its equivalent name of the month. Example: 1 to January, 2 to February … 12 to December 3. Write a program to check if the given character is a vowel. Menu Driven Program 1. Using a switch statement, write a MENU driven program to find the sum, difference, product quotient and remainder. OR Write a program to simulate a SIMPLE CALCULATOR. 2. Using a switch statement, write a MENU driven program to convert a given temperature from Fahrenheit to Celsius and vice versa. For an incorrect choice, an appropriate error message should be displayed. 3. Using a switch statement, write a MENU driven program to calculate the AREA of square, rectangle, triangle and circle. 7 TechSparx Computer Training Center - 9880 205065 Bill Programs 1. Design a class to enter the monthly salary of a person, calculate and print the annual tax payable by that person. Annual Salary (Rs.) Tax Payable Below 50,000 5% of annual salary 50,001 to 1,25,000 10% of annual salary Above 1,25,001 20% of annual salary 2. Define a class Electricity a. Accept Name, Consumer Number and Units consumed. b. Compute the electricity charges accordingly upto 100 units : 80 paise per unit for next 100 units : Rs. 1 per unit for more than 200 units : Rs. 1.25 per unit c. Display the name, consumer
Recommended publications
  • Techsparx Java Tuitions
    TechSparxJavaTuitionsTechSparxJavaJava Question Bank TuitionsTechSparxJavaTuitionsTechSp arxJavaTuitionsTechSparxJavaTuitions TechSparxJavaTuitionsTechSparxJavaTechSparx Java Tuitions “Better than a thousand days of diligent study is one day with a Great Teacher” TuitionsTechSparxJavaTuitionsTechSp Java Question Bank (version 5.3) arxJavaTuitionsTechSparxJavaTuitionshttp://techsparx.webs.com/ Saravanan.G TechSparxJavaTuitionsTechSparxJava TuitionsTech SparxJavaTuitionsTechSp arxJavaTuitionsTechSparxJavaTuitions TechSparxJavaTuitionsTechSparxJava TuitionsTechSparxJavaTuitionsTechSp arxJavaTuitionsTechSparxJavaTuitions TechSparxJavaTuitionsTechSparxJava TuitionsTechSparxJavaTuitionsTechSp arxJavaTuitionsTechSparxJavaTuitions TechSparxJavaTuitionsTechSparxJava TuitionsTechSparxJavaTuitionsTechSp Contents Modularization ........................................................................................................................................ 3 Most Simplest ......................................................................................................................................... 4 Decision Making Statements ................................................................................................................... 5 Switch Statement .................................................................................................................................... 6 Looping Constructs .................................................................................................................................
    [Show full text]
  • Copyrighted Material
    11194_Darling_c01_f.qxd 6/10/04 9:56 AM Page 3 A abacus The Chinese suan pan differs from the European aba- A counting frame that started out, several thousand years cus in that the board is split into two decks, with two ago, as rows of pebbles in the desert sands of the Middle beads on each rod in the upper deck and five beads, rep- East. The word appears to come from the Hebrew âbâq resenting the digits 0 through 4, on each rod in the bot- (dust) or the Phoenician abak (sand) via the Greek abax, tom. When all five beads on a rod in the lower deck are which refers to a small tray covered with sand to hold the moved up, they’re reset to the original position, and one pebbles steady. The familiar frame-supporting rods or bead in the top deck is moved down as a carry. When wires, threaded with smoothly running beads, gradually both beads in the upper deck are moved down, they’re emerged in a variety of places and mathematical forms. reset and a bead on the adjacent rod on the left is moved In Europe, there was a strange state of affairs for more up as a carry. The result of the computation is read off than 1,500 years. The Greeks and the Romans, and then from the beads clustered near the separator beam the medieval Europeans, calculated on devices with a between the upper and lower decks. In a sense, the aba- place-value system in which zero was represented by an cus works as a 5-2-5-2-5-2...–based number system in empty line or wire.
    [Show full text]
  • Numbers 1 to 100
    Numbers 1 to 100 PDF generated using the open source mwlib toolkit. See http://code.pediapress.com/ for more information. PDF generated at: Tue, 30 Nov 2010 02:36:24 UTC Contents Articles −1 (number) 1 0 (number) 3 1 (number) 12 2 (number) 17 3 (number) 23 4 (number) 32 5 (number) 42 6 (number) 50 7 (number) 58 8 (number) 73 9 (number) 77 10 (number) 82 11 (number) 88 12 (number) 94 13 (number) 102 14 (number) 107 15 (number) 111 16 (number) 114 17 (number) 118 18 (number) 124 19 (number) 127 20 (number) 132 21 (number) 136 22 (number) 140 23 (number) 144 24 (number) 148 25 (number) 152 26 (number) 155 27 (number) 158 28 (number) 162 29 (number) 165 30 (number) 168 31 (number) 172 32 (number) 175 33 (number) 179 34 (number) 182 35 (number) 185 36 (number) 188 37 (number) 191 38 (number) 193 39 (number) 196 40 (number) 199 41 (number) 204 42 (number) 207 43 (number) 214 44 (number) 217 45 (number) 220 46 (number) 222 47 (number) 225 48 (number) 229 49 (number) 232 50 (number) 235 51 (number) 238 52 (number) 241 53 (number) 243 54 (number) 246 55 (number) 248 56 (number) 251 57 (number) 255 58 (number) 258 59 (number) 260 60 (number) 263 61 (number) 267 62 (number) 270 63 (number) 272 64 (number) 274 66 (number) 277 67 (number) 280 68 (number) 282 69 (number) 284 70 (number) 286 71 (number) 289 72 (number) 292 73 (number) 296 74 (number) 298 75 (number) 301 77 (number) 302 78 (number) 305 79 (number) 307 80 (number) 309 81 (number) 311 82 (number) 313 83 (number) 315 84 (number) 318 85 (number) 320 86 (number) 323 87 (number) 326 88 (number)
    [Show full text]
  • On Some Sequences Related to Sums of Powers
    1 2 Journal of Integer Sequences, Vol. 21 (2018), 3 Article 18.7.6 47 6 23 11 On Some Sequences Related to Sums of Powers Robert Dawson Dept. of Mathematics and Computing Science Saint Mary’s University Halifax, NS B3L 3C3 Canada [email protected] Abstract Automorphic numbers (in a specified base) have the property that the expansion of n2 ends in that of n; Fairbairn characterized these numbers for all bases in 1969. Here we consider some related sequences: those n for which the sum of the first n natural numbers, squares, or cubes ends in n. For sums of natural numbers, these are Trigg’s “trimorphic” numbers; for sums of squares, Pickover’s “square pyramorphic” numbers. We characterize the trimorphic numbers for all bases, and the other two for base 10 and prime powers. We also solve a related problem due to Pickover. 1 Introduction In decimal notation, the number 76 appears as the final digit string of its square, 5776. Such numbers are called automorphic, circular, or cyclic (the inconsistent nomenclature was already noted by Kraitchik [6, pp. 77–78], in 1942.) The sequence of decimal automorphic numbers appears in the On-line Encyclopedia of Integer Sequences as sequence A003226. Such numbers were characterized, in all bases, by Fairbairn [2] in 1969. He showed that if B has k distinct prime factors, then there are 2k − 2 d-digit automorphic numbers (base B), possibly including leading zeros, as well as the trivial 0 and 1. In particular, if B is a prime power, there are no nontrivial automorphic numbers.
    [Show full text]
  • The Magical Numbers of Dr. Matrix
    The M3gic -44% Numbc Martin Gardner The . Magic Numbers The . Mag~c Numbers Martin Gardner Prometheus Books Buffalo, New York Published 1985 by Prometheus Books 700 E. Amherst Street, Buffalo, New York 14215 Copyright @ 1985 by Martin Gardner Material previously published in Scientific American, copyright @ 1960,1961,1963,1964,1965,1966,1967, 1968,1969,1971,1972,1973,1974,1975,1976, 1977, 1978, 1980 Scientific American. All rights reserved No part of this book may be reproduced or transmitted in any form or by any means, electronic or mechanical, including photo- copying, recording, or any system now known or to be invented, without permission in writing from the publisher, except by a reviewer who wishes to quote brief passages for inclusion in a magazine, newspaper, or broadcast. Portions of this book appeared as The Numerology of Dr. Matrix and The Incredible Dr. Matrix Printed in the United States of America Library of Congress Catalog Card No. 84-43183 ISBN 0-87975-281-5 cloth ISBN 0-87975-282-3 paper For Tom, my number two son Contents Introduction 1. New York 2. Los Angeles 3. Sing Sing 4. Lincoln and Kennedy 5. Chicago 6. Miami Beach 7. Philadelphia 8. Pi 9. Wordsmith College 10. Squaresville 11. Left \'ersus Right 12. Fifth Avenue 13. The Moon 14. Honolulu 15. Houston 16. Clairvoyance Test 17. Pyramid Lake 18. The King James Bible 19. Calcutta 20. Stanford 21. Chautauqua 22. Istanbul Answers and Commentary Introduction Myfriendship with the late Dr. Irving Joshua Matrix and his daughter Iva spanned a period of some twenty years.
    [Show full text]
  • Intendd for Both
    A DOCUMENT RESUME ED 040 874 SE 008 968 AUTHOR Schaaf, WilliamL. TITLE A Bibli6graphy of RecreationalMathematics, Volume INSTITUTION National Council 2. of Teachers ofMathematics, Inc., Washington, D.C. PUB DATE 70 NOTE 20ap. AVAILABLE FROM National Council of Teachers ofMathematics:, 1201 16th St., N.W., Washington, D.C.20036 ($4.00) EDRS PRICE EDRS Price ME-$1.00 HC Not DESCRIPTORS Available fromEDRS. *Annotated Bibliographies,*Literature Guides, Literature Reviews,*Mathematical Enrichment, *Mathematics Education,Reference Books ABSTRACT This book isa partially annotated books, articles bibliography of and periodicalsconcerned with puzzles, tricks, mathematicalgames, amusements, andparadoxes. Volume2 follows original monographwhich has an gone through threeeditions. Thepresent volume not onlybrings theliterature up to material which date but alsoincludes was omitted in Volume1. The book is the professionaland amateur intendd forboth mathematician. Thisguide canserve as a place to lookfor sourcematerials and will engaged in research. be helpful tostudents Many non-technicalreferences the laymaninterested in are included for mathematicsas a hobby. Oneuseful improvementover Volume 1 is that the number ofsubheadings has more than doubled. (FL) been 113, DEPARTMENT 01 KWH.EDUCATION & WELFARE OffICE 01 EDUCATION N- IN'S DOCUMENT HAS BEEN REPRODUCED EXACILY AS RECEIVEDFROM THE CO PERSON OR ORGANIZATION ORIGINATING IT POINTS Of VIEW OR OPINIONS STATED DO NOT NECESSARILY CD REPRESENT OFFICIAL OFFICE OfEDUCATION INt POSITION OR POLICY. C, C) W A BIBLIOGRAPHY OF recreational mathematics volume 2 Vicature- ligifitt.t. confiling of RECREATIONS F DIVERS KIND S7 VIZ. Numerical, 1Afironomical,I f Antomatical, GeometricallHorometrical, Mechanical,i1Cryptographical, i and Statical, Magnetical, [Htlorical. Publifhed to RecreateIngenious Spirits;andto induce them to make fartherlcruciny into tilde( and the like) Suut.tm2.
    [Show full text]
  • There's Nothing Random About the Universe
    [TYPE A QUOTE FROM THE DOCUMENT OR THE SUMMARY OF AN INTERESTING POINT. YOU CAN POSITION THE TEXT BOX ANYWHERE IN THE DOCUMENT. USE THE TEXT BOX TOOLS TAB There’sTO CHANGE THE FORMATTING OF THE PULL QUOTE TEXT BOX.]There’s NothingNothing RandomRandom Aboutabout theThe UniverseUniverse Not Pi, Not Phi, Not the Fine Structure Constant, Not the Convergence of the Calendars on the Year 2018 nor to what it All Points By: Ezra (Jeff) Meiliken 2 NOTICE: You DO NOT Have the Right to Reprint or Resell This eBook! You Also MAY NOT Give Away or Sell it! If you purchased this book from anywhere other than http://www.DivineCalendar.com you have a pirated copy. Please help stop internet crime by reporting this to: mailto:[email protected] Copyright 2008 Jeffery Meiliken, Zion Nefesh, DivineCalendar.com ALL RIGHTS RESERVED. No part of this book may be reproduced or transmitted in any form whatsoever, electronic, or mechanical, including photocopying, recording, or by any informational storage or retrieval system without the expressed written, dated and signed permission from the author. LIMITS OF LIABILITY / DISCLAIMER OF WARRANTY: The authors and publisher of this book have used their best efforts in preparing this material. The authors and publisher make no representation or warranties with respect to the accuracy, applicability, fitness, or completeness of the contents of this book. This book contains material protected under International and Federal Copyright laws and Treaties. Any unauthorized reprint or use of this material in prohibited. 3 Table of Contents Part I .......................................................................................................................... 7 PHI ............................................................................ 7 Chapter 1 ..................................................................................................................
    [Show full text]
  • The Back Files A
    M a Crux t Published by the Canadian Mathematical Society. h e m http://crux.math.ca/ The Back Files a The CMS is pleased to offer free access to its back file of all t issues of Crux as a service for the greater mathematical community in Canada and beyond. i c Journal title history: ➢ The first 32 issues, from Vol. 1, No. 1 (March 1975) to o Vol. 4, No.2 (February 1978) were published under the name EUREKA. ➢ Issues from Vol. 4, No. 3 (March 1978) to Vol. 22, No. r 8 (December 1996) were published under the name Crux Mathematicorum. u ➢ Issues from Vol 23., No. 1 (February 1997) to Vol. 37, No. 8 (December 2011) were published under the m name Crux Mathematicorum with Mathematical Mayhem. ➢ Issues since Vol. 38, No. 1 (January 2012) are published under the name Crux Mathematicorum. ft ft ft ft ft ft ft ft ft ft ft ft ft ft ft ft ft ft ft ft ft ft ft ft ft ft ft ft ft ft ft ft ft ft ft ft ft ft ft ft ft ft ft A ft ft ft ft ft ft ft ft ft * ft ft ft ft ft ft ft ft ft ft ft ft ft ISSN 0705 - 0348 CRUX MATHEMAT1C0RUM Vol. 7, No. a January 1981 Sponsored by Carleton-Ottawa Mathematics Association Mathematique d'Ottawa-Carleton Publie par le College Algonquin The assistance of the publisher and the support of the Canadian Mathematical Olympiad Committee, the Carleton University Mathematics Department, the Ottawa Valley Education Liaison Council, and the University of Ottawa Mathematics Department are gratefully acknowledged.
    [Show full text]
  • « I K Mt + K Jx K=0 X / \ / Is a Tn-Place Automorphic Number, T = 1, 2S 3, • • •
    REPRESENTATIONS OF AUTOMORPHIC NUMBERS WICHOLASP.CALLAS Office of Scientific Research, U.S.A.F., McLean, Virginia An n-place automorphic number x > 1 is a natural number with n digits such that the last n digits of x2 are equal to x (see, for example [l]). In number-theoretic notation, this definition can be expressed quite compactly as x - x2 = 0 (mod 10 ). An example of a 3-place automorphic number is 625. A recent report [2] indicates that automorphic numbers with 100,000 digits have been computed, It is a simple matter to prove that automorphic numbers with any number of digits ex- ist. Further, if x is an automorphof n digits, then it follows that y = 10 + 1 - x is also. In other words, n-place automorphic numbers occur in pairs. (This statement is not quite accurate. For example, the•"two" 4-place automorphs are 9376 and 0625. If we accept the convention that aleading zero is distinctive, then 0625 maybe considered a 4-place automorph different from the 3-place automorph 625). The purpose of this paper is to present the following representations for automorphic numbers: Theorem. If x is an n-place automorphic number, then y (mod 10 ), defined by M\ t ^ , -vkf t + k - l \ /2t - l \ k (1) y = x ( x z, -« I k Mt + k J k=0 X / \ / is a tn-place automorphic number, t = 1, 2S 3, • • • . Moreover, x t /2t\ / (u - u2) " du . o Remarks, a. In the case t = 1, the theorem gives the trivial identity y = x. b.
    [Show full text]
  • A Passion for Mathematics : Numbers, Puzzles, Madness, Religion, and the Quest for Reality / Clifford A
    ffirs.qxd 5/13/05 11:21 AM Page iii AA PassionPassion forfor MathematicsMathematics Numbers, Puzzles, Madness, Religion, and the Quest for Reality CLIFFORD A. PICKOVER John Wiley & Sons, Inc. ffirs.qxd 5/13/05 11:21 AM Page vi ffirs.qxd 5/13/05 11:21 AM Page i AA PassionPassion forfor MathematicsMathematics ffirs.qxd 5/13/05 11:21 AM Page ii Works by Clifford A. Pickover The Alien IQ Test Black Holes: A Traveler’s Guide Calculus and Pizza Chaos and Fractals Chaos in Wonderland Computers, Pattern, Chaos, and Beauty Computers and the Imagination Cryptorunes: Codes and Secret Writing Dreaming the Future Egg Drop Soup Future Health Fractal Horizons: The Future Use of Fractals Frontiers of Scientific Visualization The Girl Who Gave Birth to Rabbits Keys to Infinity Liquid Earth The Lobotomy Club The Loom of God The Mathematics of Oz Mazes for the Mind: Computers and the Unexpected Mind-Bending Visual Puzzles (calendars and card sets) The Paradox of God and the Science of Omniscience The Pattern Book: Fractals, Art, and Nature The Science of Aliens Sex, Drugs, Einstein, and Elves Spider Legs (with Piers Anthony) Spiral Symmetry (with Istvan Hargittai) Strange Brains and Genius Sushi Never Sleeps The Stars of Heaven Surfing through Hyperspace Time: A Traveler’s Guide Visions of the Future Visualizing Biological Information Wonders of Numbers The Zen of Magic Squares, Circles, and Stars ffirs.qxd 5/13/05 11:21 AM Page iii AA PassionPassion forfor MathematicsMathematics Numbers, Puzzles, Madness, Religion, and the Quest for Reality CLIFFORD A. PICKOVER John Wiley & Sons, Inc.
    [Show full text]
  • Tutorme Subjects Covered.Xlsx
    Subject Group Subject Topic Computer Science Android Programming Computer Science Arduino Programming Computer Science Artificial Intelligence Computer Science Assembly Language Computer Science Computer Certification and Training Computer Science Computer Graphics Computer Science Computer Networking Computer Science Computer Science Address Spaces Computer Science Computer Science Ajax Computer Science Computer Science Algorithms Computer Science Computer Science Algorithms for Searching the Web Computer Science Computer Science Allocators Computer Science Computer Science AP Computer Science A Computer Science Computer Science Application Development Computer Science Computer Science Applied Computer Science Computer Science Computer Science Array Algorithms Computer Science Computer Science ArrayLists Computer Science Computer Science Arrays Computer Science Computer Science Artificial Neural Networks Computer Science Computer Science Assembly Code Computer Science Computer Science Balanced Trees Computer Science Computer Science Binary Search Trees Computer Science Computer Science Breakout Computer Science Computer Science BufferedReader Computer Science Computer Science Caches Computer Science Computer Science C Generics Computer Science Computer Science Character Methods Computer Science Computer Science Code Optimization Computer Science Computer Science Computer Architecture Computer Science Computer Science Computer Engineering Computer Science Computer Science Computer Systems Computer Science Computer Science Congestion Control
    [Show full text]
  • Math Circle at FAU SOLUTIONS 11/3/2018
    Math Circle at FAU SOLUTIONS 11/3/2018 1. Cut the jug into 3 pieces by 2 (two) straight cuts, and form a square out of the parts. The dashed arrows could be a nuisance, or of some help. You can ignore them, if you wish. We have additional pictures available for experimentation. Scissors and rulers are provided. Look also at the remaining problems. 2. Pepe's car averages 60 miles per gallon of gasoline, Poppy's car averages 40 miles per gallon of gasoline. They both drive the same number of miles. What is the cars' combined rate of miles per gallon of gasoline? (A) 46 (B) 48 (C) 50 (D) 54 (E) 56 Solution. Since the amount driven seems to be unimportant, let's assume both drove 120 miles (to work with integers). Then Pepe's car used up two gallons of gasoline, Poppy's car 3 gallons; between both they used up 5 gallons of fuel. They drove 120 + 120 = 240 miles. They did 240 miles on 5 gallons, so they were using up fuel at the rate of 240=5 = 48 miles per gallon. The correct answer is B. Notice that the combined average is what is called the harmonic average of the two rates. If a; b are positive numbers, their harmonic average is 1 2ab 1 1 1 = ; 2 a + b a + b the reciprocal of the arithmetic average of the reciprocals. 2 + 4 + 6 + ··· + 34 a 3. = , where a; b are integers with no common divisors other than 1. What are a; b? 3 + 6 + 9 + ··· + 51 b Solution.
    [Show full text]