Create a program that asks users to enter the name

Assignment Help Basic Computer Science
Reference no: EM13208636

Create a program that asks users to enter the name of their favorite team. Have the program display this team's name. Then have program ask the user to enter the name of their five previous oponents, how many points the team scored, and how many points the opponent scored. Have the program display the name of the opponent the score and the margin of victory (will be negative number if they lost). Have the program total the margin of victory of all games and display at the bottom. Ex print out: PENGUINS Opponent PenguinsScore Opponent Score Margin of Victory Rangers 6 3 3 Flyers 3 1 2 Total Margin of Victory 5

Reference no: EM13208636

Questions Cloud

Write an instruction sequence to set the contents of memory : write an instruction sequence to set the contents of memory locations at $1000, $1010, and $1020 to 10, 11, and 12 respectively
Write a flowchart that reads 10 integers : Write a flowchart that reads 10 integers and prints the first and the last on one line, the second and the ninth on the next line, the third and the seventh on the next line, and so forth. Sample input and the results are shown below
Explain characteristics of the electron : The principal quantum number, n, describes the energy level of a particular orbital as a function of the distance from the center of the nucleus. Additional quantum numbers exist to quantify the other characteristics of the electron.
Derive taylor polynomials of degree : Derive taylor's polynomials of degree n for: f(x) = (1+x)^(1/2) and f(x) = cos x. Find the approximate value of above functions at x = pi/4 by hand calculator upto two decimal points. Show steps.
Create a program that asks users to enter the name : Create a program that asks users to enter the name of their favorite team. Have the program display this team's name. Then have program ask the user to enter the name of their five previous oponents,
Explain the chemistry involved in the current indstrial : Describe the chemistry involved in the current indstrial preparation of adipic acid, specifically listing the major by-product
Use a single if statement and boolean operators : Write a program that asks the user for a year and computes whether that year is a leap year. Use a single if statement and Boolean operators.
Write a program asks the user to enter a month : Write a program asks the user to enter a month (1 for January, 2 for February, and so on) and then prints the number of days in the month. For February, print "28 or 29 days". For example: Enter a mont: 5 30 days Do not use a separate if/else bran..
How different backgrounds work with the fonts : Your presentation should include information about font size and icons, how they look with different backgrounds, and how different backgrounds work with the fonts.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Hidden implementations are often said

Hidden implementations are often said to exist in a black box. Do you agree with this statement? Why or why not? Identify the advantages and disadvantages of using this approach in both programming and real life?

  Find out winner in card game

When there is tie, nobody loses. If first two cards total 8 or 9, hand is called a "natural" and it wins automatically, unless both hands have equal value "naturals", in which case it's a tie.

  What the next state of the machine should be as a function

what the next state of the machine should be as a function of the current state. then produce a combinational circuit using gates and D-flipflops that implements this state machine. label the least and most significant bit.

  Process computer uses to convert data into information

Write down a 200 word paper which explains the distinctions of data and information and in short describe the process a computer uses to convert data into information.

  Type of distribution students like to see to earn good grade

What type of distribution would the students like to see in order to be most likely to earn a good grade? Explain your answers.

  What bit pattern will be in memory cell

What bit patterns will be in registers 0, 1, and 2 when the machine halts? What bit pattern will be in the memory cell at address 30 when the machine halts?

  Write one function that reads the input using alias paramete

Write one function that reads the input using alias parameters (reference parameters).Write a second function that calculates the pay amount. If the salesperson owes money, thereturn amount from the function is a negative number.

  Determine probability of obtaining exactly k heads of coin

Counting heads. Given integers n and k, along with p1; : : : ; pn 2 [0; 1], you want to determine the probability of obtaining exactly k heads when n biased coins are tossed independently at random.

  16-bit signed magnitude numbers

Convert the following numbers to 16-bit signed magnitude numbers (display results in hexadecimal):

  Program to clear register a

Write a program to clear Register A, add five to Register A 10 times, and place the result in RAM Location $2000. Use a RAM location for holding the counter.

  What is a uml diagram?

What is a UML diagram? What does it include? Why is it used? What would the UML diagram look like for our lab assignment? This is for computer programming

  Design a 3-bit non-binary counter

Design a 3-bit non-binary counter that will count in the sequence 000, 010, 011, 101, 110, 111 when the input signal X = 0, clockwise rotation. If input signal X = 1 it reverses the direction, counterclockwise

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