Programming Java

Question 1:

Write a program that asks the user for a positive nonzero integer value. The program should use a loop (while loop) to get the sum of all the integers from 1 up to the number entered. For examples, if the user enters 50, the loop will find the sum of 1,2,3,4,….50.

Hint: You need two while loops here. One to make sure the user enters a positive number (keeps on asking the user for a number till heshe enters a positive nonzero number).  And two to find the sum.

Question 2:

The distance a vehicle travels can be calculated as follows:

                Distance = Speed * Time

For example, if a train travels 40 miles per hour for 3 hours, the distance traveled is 120 miles. Write a program that asks for the speed of a vehicle (in miles per hour) and the number of hours it has traveled. It should use a loop to display the distance a vehicle has traveled for each hour of a time period specified by the user. For example, if a vehicle is traveling at 40 mph for a 3 hour time period, it should display a report similar to the one that follows:

Hours                                    Distance

                1                                              40
                2                                              80
                3                                              120

Input validation: Do not accept a negative number for speed and do not accept any value less than 1 for time traveled (i.e. use a loop to keep on asking the user till heshe gives you an acceptable value for both).

Question 3:

Write a program that will predict the size of a population of organisms. The program should ask for the starting number of organisms, their average daily population increase (as a percentage), and the number of days they will multiply. For example, a population might begin with two organisms, have an average daily increase of 50 percent, and will be allowed to multiply for seven days. The program should use a loop to display the size of the population for each day. So for the previous example, the output should look like:

Day                        Organisms

—————————–

1                              2.0

2                              3.0

3                              4.5

4                              6.75

5                              10.125

6                              15.1875

7                              22.78125

Input validation: Do not accept a number less than 2 for the staring size of the population. Do not accept a negative number for average percent daily population increase. Do not accept a number less than 1 for the number of days they will multiply.

Question 4:

Write a program with a loop that lets the user enter a series of integers. The user should enter -99 to signal the end of the series. After all the numbers have been entered, the program should display the largest and smallest numbers entered.

Question 5:

Write a program that displays a table of centigrade temperatures 0 through 20 and their Fahrenheit equivalents. The formula for converting a temperature from centigrade to Fahrenheit is:

                F =  95 * C + 32

Where F is the Fahrenheit temperature and C is the centigrade temperature. Your program must use a loop to display the table.

Question 6:

Write a multiplication tutor program. Ask user to solve problems with random numbers from 1-20. The program stops after an incorrect answer. The output should look like:

14 * 8 = 112

Correct!

5 * 12 = 60

Correct!

8 * 3 = 24

19 * 14 = 256

Incorrect; the answer was 266

You solved 2 correctly

You are designing a program

You are designing a program to study rainfall over a 3-year period. The program should use a NESTED loop to total the amount of rainfall each year and show the annual rainfall for each of the 3 years in chart format similar to the following chart (example data only). Attached is a file with 3 years (36 months) of monthly rainfall data. You may use this data file or create your own. The program should redirect the input to your data file. You may submit the program in Raptor or use pseudocode (Raptor does not support FOR loops). Hints: You will need an accumulator variable, two counter variables, and an input variable to accept the rainfall amount each month. Be sure to test the program and make adjustments as needed.

Year Total Rainfall (in inches)

————————————————

Year 1 34

Year 2 28

Year 3 36

Performance Benchmarks ( Computer Architecture )

Homework Content

So far, we have been looking at Computer Architecture from a very high level…and hopefully, you are starting to look at your laptops and cell phones in terms that you were not before this class… We also discussed that every computer design is optimized with performance in mind so the question now is…just how good (or bad) is MY laptop compared against some performance benchmarks…

See the website below:
https://www.passmark.com/products/pt.htm

This site has free benchmarking software that you can download and run against your computer…download the software and let it run against your system…run both the Standard AND the Advanced Test…
NOTE: THE ABOVE LINK IS FOR WINDOWS TESTING…PLEASE SEE THE FOLLOWING WEBSITES FOR SOME PERFORMANCE TESTING SOFTWARE FOR THE MAC…IF YOU ARE A MAC USER AND ALREADY HAVE A PERFORMANCE MEASURE SOFTWARE, YOU MAY USE IT…
https://browser.geekbench.com/mac-benchmarks
https://www.macworld.co.uk/how-to/mac/test-mac-speed-3654776/

So how did your system do?…what was your overall score and percentile?…what are the scores telling you?…were you surprised by the results?…do the benchmarks provided sync up with how you feel your system is performing?…provide some screen shots of the results…what takeaways do you have from this test?…any follow-ups?…how can you improve the performance of your laptop?…do you use any other performance testing software?…if so, which ones?…how do the results compare?…provide screen shots of the other performance monitoring software…

Keep your results handy…we will refer to them throughout the semester…

As I mentioned, I am more concerned with QUALITY than I am with QUANTITY…but just as a guideline, you should submit at least ONE FULL PAGES OF WRITTEN CONTENT…meaning that screen shots (and this assignment has many), title page, source listing, etc. do NOT count as part of the one page…

Plagiarism is not allowed and I will give you an automatic zero if I discover that any part of your work was plagiarized either from the internet or another student’s paper.

Please answer the following

 

What is Medicare? Explain the components and financing of each part. What are the problems for Medicare? What are your solutions? 

The  paper should be 3 pages and include the following and must be free of plagiarism 

• Introduce and define the topic (your study group knows nothing about it). 

• Discuss the details of the topic. 

• What are the pros and cons (or support vs opposition)? 

• What is your personal stand on the issue? 

• After reading the briefing paper, a member of your support group should have a general understanding of the issue. 

Declare an array. Gather your first and last name as

  

Declare an array. Gather your first and last name as string input (as all lowercase, with an underscore between first and last name) via scanf and store it in your array. Then, capitalize the first letter of both your first and last name and switch the underscore to a space character. Output the array to the screen before and after the capitalization change.
Use the DEFINE preprocessor directive to represent the size of your name array throughout the program.
Per assignment guidelines, the program should be written to work with any reasonable first name / last name combination.
Example:david_robeson “There is an underscore between the names if you can’t see it.”
David Robeson

Managing Inventory

  

This assignment relates to the following Course Learning Requirements:  

CLR 1: Using accounting software, identify and use the basic features, modules, and aids to produce reliable and accurate financial information.

CLR 2: Using accounting software, create a computerized accounting system for a new company.

CLR 3: Using accounting software, record all transactions in the accounting cycle.

CLR 5: Using accounting software, produce and export management reports and financial statements.

Objective of this Assignment:  

The objective of this assignment is to ensure students understand the step-up of inventory and the products and services.

Assignment Scenario:

Beautiful Blooms Floral Company is a relatively new and growing business that is switching its bookkeeping to QuickBooks Online. As their bookkeeper, in this assignment, you will enter the required start-up information by following the steps in 

· the Chapter 8 Reinforce Your Skills exercises and 

· the Chapter 8 Apply Your Skills exercises.  

Pre-Assignment Instructions:

1. To prepare you for this assignment, please read the content in Chapter 8 and follow the embedded learning activities (the Develop Your Skills exercises).

To follow along with the examples in the text before doing the assignment:

a. Use the QuickBooks Online sample company to follow along with the practice Develop Your Skills exercises in the textbook. See Module 3 for more information about the QuickBooks Online sample company. 

b. Remember that the sample company will refresh after a couple of hours of inactivity, so it is best to complete all the practice exercises in one session. You do not need to submit these practice reports. All exercises using the sample company are ungraded.

Assignment Tasks: 

1. Open the QuickBooks Online application software.

2. Use the chapter steps to complete the Chapter 8 Reinforce and Apply Your Skills exercises. Enter each transaction based on the information provided. 

3. Follow the steps in the Apply Your Skills exercises to export each report to Excel. You will only be submitting reports from the Apply Your Skills exercises. You do NOT need to submit the reports saved from the Reinforce Your Skills exercises. 

4. In order to submit your assignment into one excel workbook, you will need to cut and paste each report into ONE excel workbook.

5. Check to ensure that the asset and expense accounts have the correct debit balances.

6. Check to ensure that revenue and liabilities account have the correct credit balances.

Submissions:

You should be submitting ONE Excel file that contains one worksheet for each of the following reports (from the Apply Your Skills exercises):

1. Products and Service List

2. Inventory Valuation Detail

3. Sales by Product and Service Summary

Do NOT submit the reports from the Reinforce Your Skills exercises.

Save file as:

D8 Beautiful Blooms Floral Co Report Name – Student Name

Scoring Rubric – Assignment #6 [5%]

  

ITEM

REQUIREMENTS

MARK

 

Products and Service List

– Heading is complete   with Company Name, Name of report and date centered at the top three lines

– Correct number of items   are included with the correct values 

– Report is detail

– Report dated correctly

/20

 

Inventory Valuation Detail

– Heading is complete   with Company Name, Name of report and date centered at the top three lines

– Correct number of items   are included with the correct quantity

– Correct number of items   available included

– Report dated correctly

– Report is detail

/20

 

Sales by Product and Service Summary

– Heading is complete   with Company Name, Name of report and date centered at the top three lines

– Correct number of items   are included with the correct values 

– Report is detail

– Report dated correctly

/15

 

Format

– Assignment submitted in   Excel Format

– All reports included in   ONE workbook

– All required reports   included

– All reports are correct

– Consistent format   through workbook

/5

 

TOTAL

/60

HW

 

1. Review the interactive media decision tree exercise about the patient with “Complex regional pain disorder You can find the interactive media piece under week 6 resources, required media, click on the case titled, “Complex regional pain disorder.”

write a 1- to 2-page summary paper that addresses the following:

  • Briefly summarize the patient case study you were assigned, including each of the three decisions you took for the patient presented.
  • Based on the decisions you recommended for the patient case study, explain whether you believe the decisions provided were supported by the evidence-based literature. Be specific and provide examples. Be sure to support your response with evidence and references from outside resources.
  • What were you hoping to achieve with the decisions you recommended for the patient case study you were assigned? Support your response with evidence and references from outside resources.
  • Explain any difference between what you expected to achieve with each of the decisions and the results of the decision i
  • the exercise. Describe whether they were different. Be specific and provide examples.