Enter the last names of five candidates

Assignment Help Basic Computer Science
Reference no: EM13899501

Write a program that allows users to enter the last names of five candidates in a local election and the number of votes received by each candidate. The program should then output each candidate's name, the number of votes received, and the percentage of the total votes received by the candidate. Your program should also output the winner of the election. A sample output is:

Candidate

Votes Received

% of Total Votes

Jim

5000

25.91

Cosmos

4000

20.73

Bob

6000

31.09

Evelyn

2500

12.95

Larry

1800

9.33

Total

19300

The Winner of the Election is Bob.

 

Reference no: EM13899501

Questions Cloud

What is the probability that a blue chip will be drawn : The probability of drawing a pink chip from a bowl of different colored chips is 0.35, the probability of drawing a blue chip is 0.46, the probability of drawing a green chip is 0.15, and the probability of drawing a purple chip is 0.04. What is ..
Create sheet sales and put reasonable numbers : Create a file: Pizza_by_First_Last.xlsm . Create sheet Sales and put reasonable numbers for prices (your choice), add create formulas. Put the % for sales tax in H1 (it is 8% in NY).  After that, you need to put formulas in place, add a row for total..
Analyze common ethernet standards found in a switched lan : Analyze common Ethernet standards found in a switched LAN fabric. ? Summarize the nature of Ethernet frames that are processed in LAN switching.
Cases that compare specification limits to control limits : What do control limits represent? What do specification limits represent? Describe the three cases that compare specification limits to control limits
Enter the last names of five candidates : Write a program that allows users to enter the last names of five candidates in a local election and the number of votes received by each candidate. The program should then output each candidate's name, the number of votes received, and the percentag..
Prepare a statement of cash flows using the indirect method : The following comparative balance sheets and income statement are available for Little Bit Inc. Prepare a statement of cash flows for 2012 using the indirect method and analyze the statement.
Determine the area between the curves : A stock analyst plots the price per share of a certain stock as a function of time and finds that it can be modeled by the function S(t)=25-5√10t where t is the time (in years) since the stock was purchased. Find the average price of the stock o..
What are the server-side attacks : What are the server-side attacks? What are the techniques a developer can employ to minimize these attacks?What are some of the individual rights associated with information privacy? Do expectations of privacy change depending on the individual's env..
Discuss the concept of optimal capital structure : Identify and discuss the concept of optimal capital structure

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Megatrend of demographics

Evaluate the megatrend of demographics in the IT field. Give your opinion as to why IT managers must understand this megatrend when selecting talent for organizational positions.

  Privacy-related matrix

Privacy-Related Matrix-Ethical Dilemma: Locational Privacy and User Privacy Policy

  What are some causes of the number of bytes exceeding

What are some causes of the number of bytes on the wire exceeding the number of bytes being captured

  Write component which is part of lcd panel assembly

Write down three ways notebook can get its power? Write down component which is part of the LCD panel assembly might be responsible for LCD panel showing dim screens?

  What one characteristic about standard normal distribution

What one characteristic about the Standard Normal Distribution make it different from any normal distribution?

  Determine controller''s monitored and controlled variables

Consider a simple patient monitoring system in which the software controller generates alarm signals when the patient's temperature or blood pressure falls outside safe ranges. The alarm signals and safe ranges are different for temperature and bl..

  Condition to resume sending messages related to application

Give an example that illustrates why P must not be allowed to do so and state a condition that defines when P may resume sending messages related to application.

  Database construction using mysql and php

Database Construction Using MySQL and PHP

  Describe the inherent design issues across hci environments

Compare and contrast the design and development processes in HCI. Describe legal, societal, and ethical issues in HCI design. Describe the inherent design issues across HCI environments.

  Storage of a large number of items in main memory

Storage of a large number of items in main memory, where accessing an item by its position, and avoiding problems caused by memory fragmentation, are important.

  What is the probability of rolling the outcome snake eyes

What is the probability of rolling the outcome "snake eyes" (two ones) with these loaded dice? (c) What is the expected value of our random variable X with respect to this unfair distribution?

  How to make components of system user-friendly

How do components of your computer system interact within system? What improvements or additions to your system do you think would benefit you or make system more user-friendly? Why?

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