Description
Write a program that:
- Asks the user to input a number
- Presents the user a menu of options: + - / * %
- Make selecting a menu item easy! The user should provide a lower case letter or a digit as input
- Use a switch statement to determine which operator was chosen
- Asks the user to input the right hand operand
- Make sure you don’t divide by 0!
- Displays the result
Points:
2 - Documentation, readability, format
3 - Proper use of conditional statements
2 - Filename and Header
3 - Output testing
User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.
Explanation & Answer
Your progra...
Completion Status:
100%
Review
Review
Anonymous
Great! 10/10 would recommend using Studypool to help you study.
Studypool
4.7
Trustpilot
4.5
Sitejabber
4.4
24/7 Homework Help
Stuck on a homework question? Our verified tutors can answer all questions, from basic math to advanced rocket science!
Most Popular Content
UMUC Relation and Attributes in Relation with First Normal Form Questions
Examine the following relation and its attributes and answer the following questions.
Information Table in the Attac ...
UMUC Relation and Attributes in Relation with First Normal Form Questions
Examine the following relation and its attributes and answer the following questions.
Information Table in the Attachment
1) Is this relation in at least 1NF? Why or why not?
2) What is the primary key of the initial relation (assume the values shown are the only possible tuples for all time)? Remember that a primary key must be unique and not null.
3) Describe the specific data anomalies that exist if we DELETE the tuple containing Jacqueline.
4) Draw a functional dependency diagram for the initial relation. This diagram should agree with the primary key you selected in above.
5) Based on your diagram, what normal form is the initial relation in? Why?
6) If necessary, decompose the initial relation into a set of non-loss 3NF relations by showing the relations, attributes, and tuples.
CS192 Grantham University Team Management Modularized Program Paper
Team ManagementYou are in charge of managing a local softball team, one in which there is a lot of turnover. While you hav ...
CS192 Grantham University Team Management Modularized Program Paper
Team ManagementYou are in charge of managing a local softball team, one in which there is a lot of turnover. While you have a couple of regulars, much of the team members come and go frequently. When it comes to organizing games, it is becoming more and more difficult to keep track of the current members, so you decide to write a small program to help you track the current players.Write a modularized program that will utilize a main menu to control the program’s functions and a list to store the members of your team. The following functions that your program needs to include:Print the current member list.Add a new member.Remove a member.Modify an existing member.Exit the programRemeber that you can create a function using 'def.' In other words, for adding a new member, you will need a function similar to: def aaddmember.Note: Since we have not covered File Access, do not worry about long term storage for your list. Each time you run the program, you will have to create a new list. You are welcome to skip ahead to the File I/O if you would like to tackle this additional functionality, but file access is NOT required for this assignment.For this project:You will submit your python code in either the original .py file, or copied into a .txt file.A screenshot of your code having been executed (run). How to Take a Screenshot.Tips: The menu logic will use the same structure as your previous programs. A single variables will be used as the control value, and based on what the user entered as the control value, will determine the course of action taken inside of the loop.Example output:C:\>python week4.pyWelcome to the Team Manager===========Main Menu===========1. Display Team Roster.2. Add Member.3. Remove Member.4. Edit Member.9. Exit Program.Selection> 2Enter new member's name: Nathan===========Main Menu===========1. Display Team Roster.2. Add Member.3. Remove Member.4. Edit Member.9. Exit Program.Selection> 2Enter new member's name: Toby===========Main Menu===========1. Display Team Roster.2. Add Member.3. Remove Member.4. Edit Member.9. Exit Program.Selection> 1NathanToby===========Main Menu===========1. Display Team Roster.2. Add Member.3. Remove Member.4. Edit Member.9. Exit Program.Selection> 3Enter member name to be removed: Toby===========Main Menu===========1. Display Team Roster.2. Add Member.3. Remove Member.4. Edit Member.9. Exit Program.Selection> 1Nathan===========Main Menu===========1. Display Team Roster.2. Add Member.3. Remove Member.4. Edit Member.9. Exit Program.Selection> 4Enter the name of the memeber you want to edit: NathanEnter the new name of the member: Nathan Braun===========Main Menu===========1. Display Team Roster.2. Add Member.3. Remove Member.4. Edit Member.9. Exit Program.Selection> 1Nathan Braun===========Main Menu===========1. Display Team Roster.2. Add Member.3. Remove Member.4. Edit Member.9. Exit Program.Selection> 9Exiting Program...
AmeriTech College Provo Data Exploration in R Presentation
Directions You should document your exploration in an R script file, and by creating a PowerPoint (or equivalent) presenta ...
AmeriTech College Provo Data Exploration in R Presentation
Directions You should document your exploration in an R script file, and by creating a PowerPoint (or equivalent) presentation that includes the following elements:R code that you use at each step.Plots that you create with your R code.Your description of the information you find in the data and the plots; describe how you interpret the plots and the information provided by R.In the process of completing this project, you will want to save your plots to files so you can add them to your PowerPoint presentation. You can do this in R-Studio as follows: After you have created the plot, click the Export button at the top of the Plots pane. Then click on the Save as Image... menu. This brings up a dialog box in which you can choose the image format, the directory (folder) in which the image will be saved, and the name of the image file.RequirementsFor this Final Project, you will use the Cigarette data set in the Ecdat package. To do this, you first must install the Ecdat package with the commandinstall.packages("Ecdat")To make this package accessible to your R session, type the commandlibrary(Ecdat)You should now be able to see the Cigarette data frame:head(Cigarette)state year cpi pop packpc income tax avgprs taxs
1 AL 1985 1.076 3973000 116.4863 46014968 32.5 102.18167 33.34834
2 AR 1985 1.076 2327000 128.5346 26210736 37.0 101.47500 37.00000
3 AZ 1985 1.076 3184000 104.5226 43956936 31.0 108.57875 36.17042
4 CA 1985 1.076 26444000 100.3630 447102816 26.0 107.83734 32.10400
5 CO 1985 1.076 3209000 112.9635 49466672 31.0 94.26666 31.00000
6 CT 1985 1.076 3201000 109.2784 60063368 42.0 128.02499 51.48333
Each row provides data about a given state in a given year. This data set has the following variables:state: the two letter abbreviation for the state.year: the year.cpi: consumer price index for the year.pop: state populationpackpc: average number of packs of cigarettes per capita per yearincome: total state personal income.tax: average state, federal, and average local excise taxes for fiscal year.avgprs: average price per pack during fiscal year, including sales taxes, in cents.taxs: average excise taxes per pack for fiscal year, including sales taxes, in cents.Complete the project by completing the following. Remember to document your process and your results in your PowerPoint presentation.Create a boxplot of the average number of packs per capita by state. Which states have the highest number of packs? Which have the lowest?Find the median over all the states of the number of packs per capita for each year. Plot this median value for the years from 1985 to 1995. What can you say about cigarette usage in these years?Create a scatter plot of price per pack vs number of packs per capita for all states and years.Are the price and the per capita packs positively correlated, negatively correlated, or uncorrelated? Explain why your answer would be expected.Change your scatter plot to show the points for each year in a different color. Does the relationship between the two variable change over time?Do a linear regression for these two variables. How much variability does the line explain?The plot above does not adjust for inflation. You can adjust the price of a pack of cigarettes for inflation by dividing the avgprs variable by the cpi variable. Create an adjusted price for each row, then re-do your scatter plot and linear regression using this adjusted price.Create a data frame with just the rows from 1985. Create a second data frame with just the rows from 1995. Then, from each of these data frames, get a vector of the number of packs per capita. Use a paired t-test to see if the number of packs per capita in 1995 was significantly different than the number of packs per capita in 1985.In the process of doing this project, have any questions come to mind that this data set could answer? If so, pick one and do the analysis to find the answer to your question.Caution!Be sure to zip and submit your entire document when finished!
4 pages
Ciso It Policy
The company’s Chief Information Security Officer (CISO) is responsible for the communication of the new policy that has ...
Ciso It Policy
The company’s Chief Information Security Officer (CISO) is responsible for the communication of the new policy that has been put in place in regards ...
Flower Catch game. iOS using Swift programming. (Needs to be done in x-code 10 version)
I have attached the question. You will be building simple flower catch game using swift. The challenge of this game is to ...
Flower Catch game. iOS using Swift programming. (Needs to be done in x-code 10 version)
I have attached the question. You will be building simple flower catch game using swift. The challenge of this game is to collect as many as flower with the vase. Important ** build this code in xcode 10 version only. **Thank you.
Similar Content
Software Testing Assignment Scenario
Firstly, please no plagiarism. I will give a full tip for proper grammar, citations, and effort in writing this.Read below...
CSCI 1170 Dalhousie University Responsive & Standards-Compliant Website Project
The purpose of this assignment is for you to understand how to fix errors in a codebase that you inherit and style the web...
Bloomsburg University of Pennsylvania Computer Programing Using Java Exam Practice
Please look at the images and follow the instructions carefully** sorting the names is in alphabetical order not sorting t...
Olq12 fcgjgjuhijk
hmbj,n.kn,.m.lol,,lml bulhlinljlkjdkjsk.cljdkcndk, had,k n,if nfc.k nfl.vmklfjvflkjv...
Chattahoochee Technical College MySQL 8 & Workbench to Create a Database ER Diagram
1. If your version of PHP is not currently attached to MySQL 8 (It MUST BE MYSQL 8), then follow the directions shown in t...
CSCI 221 Generating Random DNA Sequences Program
Homework 1 - Generating random DNA sequences with a specified frequency in C++
Chargaff rule states that "a double-strande...
Real Excess Project Return
The data studied is the Dimson, Nagel, and Staunton Historical returns database between 1901 and 2020 which is available o...
Final Sp Notes
Computers connected to a network are at risk of remote sabotage. Remote sabotage is not as controllable as offline damage....
Java Netbeans
* To change this license header, choose License Headers in Project Properties. * This method is called from within the con...
Related Tags
Book Guides
Breakfast at Tiffanys
by Truman Capote
The Point of it All - A Lifetime of Great Loves and Endeavors
by Charles Krauthammer
Fahrenheit 451
by Ray Bradbury
Little Fires Everywhere
by Celeste Ng
Rules Of Civility
by Amor Towles
The Bell Jar
by Sylvia Plath
Moby Dick
by Herman Melville
Epic of Gilgamesh
by Unknown
Hiroshima
by John Hersey
Get 24/7
Homework help
Our tutors provide high quality explanations & answers.
Post question
Most Popular Content
UMUC Relation and Attributes in Relation with First Normal Form Questions
Examine the following relation and its attributes and answer the following questions.
Information Table in the Attac ...
UMUC Relation and Attributes in Relation with First Normal Form Questions
Examine the following relation and its attributes and answer the following questions.
Information Table in the Attachment
1) Is this relation in at least 1NF? Why or why not?
2) What is the primary key of the initial relation (assume the values shown are the only possible tuples for all time)? Remember that a primary key must be unique and not null.
3) Describe the specific data anomalies that exist if we DELETE the tuple containing Jacqueline.
4) Draw a functional dependency diagram for the initial relation. This diagram should agree with the primary key you selected in above.
5) Based on your diagram, what normal form is the initial relation in? Why?
6) If necessary, decompose the initial relation into a set of non-loss 3NF relations by showing the relations, attributes, and tuples.
CS192 Grantham University Team Management Modularized Program Paper
Team ManagementYou are in charge of managing a local softball team, one in which there is a lot of turnover. While you hav ...
CS192 Grantham University Team Management Modularized Program Paper
Team ManagementYou are in charge of managing a local softball team, one in which there is a lot of turnover. While you have a couple of regulars, much of the team members come and go frequently. When it comes to organizing games, it is becoming more and more difficult to keep track of the current members, so you decide to write a small program to help you track the current players.Write a modularized program that will utilize a main menu to control the program’s functions and a list to store the members of your team. The following functions that your program needs to include:Print the current member list.Add a new member.Remove a member.Modify an existing member.Exit the programRemeber that you can create a function using 'def.' In other words, for adding a new member, you will need a function similar to: def aaddmember.Note: Since we have not covered File Access, do not worry about long term storage for your list. Each time you run the program, you will have to create a new list. You are welcome to skip ahead to the File I/O if you would like to tackle this additional functionality, but file access is NOT required for this assignment.For this project:You will submit your python code in either the original .py file, or copied into a .txt file.A screenshot of your code having been executed (run). How to Take a Screenshot.Tips: The menu logic will use the same structure as your previous programs. A single variables will be used as the control value, and based on what the user entered as the control value, will determine the course of action taken inside of the loop.Example output:C:\>python week4.pyWelcome to the Team Manager===========Main Menu===========1. Display Team Roster.2. Add Member.3. Remove Member.4. Edit Member.9. Exit Program.Selection> 2Enter new member's name: Nathan===========Main Menu===========1. Display Team Roster.2. Add Member.3. Remove Member.4. Edit Member.9. Exit Program.Selection> 2Enter new member's name: Toby===========Main Menu===========1. Display Team Roster.2. Add Member.3. Remove Member.4. Edit Member.9. Exit Program.Selection> 1NathanToby===========Main Menu===========1. Display Team Roster.2. Add Member.3. Remove Member.4. Edit Member.9. Exit Program.Selection> 3Enter member name to be removed: Toby===========Main Menu===========1. Display Team Roster.2. Add Member.3. Remove Member.4. Edit Member.9. Exit Program.Selection> 1Nathan===========Main Menu===========1. Display Team Roster.2. Add Member.3. Remove Member.4. Edit Member.9. Exit Program.Selection> 4Enter the name of the memeber you want to edit: NathanEnter the new name of the member: Nathan Braun===========Main Menu===========1. Display Team Roster.2. Add Member.3. Remove Member.4. Edit Member.9. Exit Program.Selection> 1Nathan Braun===========Main Menu===========1. Display Team Roster.2. Add Member.3. Remove Member.4. Edit Member.9. Exit Program.Selection> 9Exiting Program...
AmeriTech College Provo Data Exploration in R Presentation
Directions You should document your exploration in an R script file, and by creating a PowerPoint (or equivalent) presenta ...
AmeriTech College Provo Data Exploration in R Presentation
Directions You should document your exploration in an R script file, and by creating a PowerPoint (or equivalent) presentation that includes the following elements:R code that you use at each step.Plots that you create with your R code.Your description of the information you find in the data and the plots; describe how you interpret the plots and the information provided by R.In the process of completing this project, you will want to save your plots to files so you can add them to your PowerPoint presentation. You can do this in R-Studio as follows: After you have created the plot, click the Export button at the top of the Plots pane. Then click on the Save as Image... menu. This brings up a dialog box in which you can choose the image format, the directory (folder) in which the image will be saved, and the name of the image file.RequirementsFor this Final Project, you will use the Cigarette data set in the Ecdat package. To do this, you first must install the Ecdat package with the commandinstall.packages("Ecdat")To make this package accessible to your R session, type the commandlibrary(Ecdat)You should now be able to see the Cigarette data frame:head(Cigarette)state year cpi pop packpc income tax avgprs taxs
1 AL 1985 1.076 3973000 116.4863 46014968 32.5 102.18167 33.34834
2 AR 1985 1.076 2327000 128.5346 26210736 37.0 101.47500 37.00000
3 AZ 1985 1.076 3184000 104.5226 43956936 31.0 108.57875 36.17042
4 CA 1985 1.076 26444000 100.3630 447102816 26.0 107.83734 32.10400
5 CO 1985 1.076 3209000 112.9635 49466672 31.0 94.26666 31.00000
6 CT 1985 1.076 3201000 109.2784 60063368 42.0 128.02499 51.48333
Each row provides data about a given state in a given year. This data set has the following variables:state: the two letter abbreviation for the state.year: the year.cpi: consumer price index for the year.pop: state populationpackpc: average number of packs of cigarettes per capita per yearincome: total state personal income.tax: average state, federal, and average local excise taxes for fiscal year.avgprs: average price per pack during fiscal year, including sales taxes, in cents.taxs: average excise taxes per pack for fiscal year, including sales taxes, in cents.Complete the project by completing the following. Remember to document your process and your results in your PowerPoint presentation.Create a boxplot of the average number of packs per capita by state. Which states have the highest number of packs? Which have the lowest?Find the median over all the states of the number of packs per capita for each year. Plot this median value for the years from 1985 to 1995. What can you say about cigarette usage in these years?Create a scatter plot of price per pack vs number of packs per capita for all states and years.Are the price and the per capita packs positively correlated, negatively correlated, or uncorrelated? Explain why your answer would be expected.Change your scatter plot to show the points for each year in a different color. Does the relationship between the two variable change over time?Do a linear regression for these two variables. How much variability does the line explain?The plot above does not adjust for inflation. You can adjust the price of a pack of cigarettes for inflation by dividing the avgprs variable by the cpi variable. Create an adjusted price for each row, then re-do your scatter plot and linear regression using this adjusted price.Create a data frame with just the rows from 1985. Create a second data frame with just the rows from 1995. Then, from each of these data frames, get a vector of the number of packs per capita. Use a paired t-test to see if the number of packs per capita in 1995 was significantly different than the number of packs per capita in 1985.In the process of doing this project, have any questions come to mind that this data set could answer? If so, pick one and do the analysis to find the answer to your question.Caution!Be sure to zip and submit your entire document when finished!
4 pages
Ciso It Policy
The company’s Chief Information Security Officer (CISO) is responsible for the communication of the new policy that has ...
Ciso It Policy
The company’s Chief Information Security Officer (CISO) is responsible for the communication of the new policy that has been put in place in regards ...
Flower Catch game. iOS using Swift programming. (Needs to be done in x-code 10 version)
I have attached the question. You will be building simple flower catch game using swift. The challenge of this game is to ...
Flower Catch game. iOS using Swift programming. (Needs to be done in x-code 10 version)
I have attached the question. You will be building simple flower catch game using swift. The challenge of this game is to collect as many as flower with the vase. Important ** build this code in xcode 10 version only. **Thank you.
Earn money selling
your Study Documents