Question

In: Computer Science

Start an FC-PC Lab Assignment document and save it to your drive. Note: As you complete...

  1. Start an FC-PC Lab Assignment document and save it to your drive. Note: As you complete the below exercises add them to your Assignment document and save it
  2. Create the algorithms in both flowchart and pseudocode form for the following two program requirements:  
    • Given is the array prices with 100 elements(prices[100]). The problem consists of two parts:  1. Find the highest price in the array; and  2. Reduce that price by 10%
    • For any three numbers input by the user, output the numbers in ascending order.

Solutions

Expert Solution

Pseudo code:

Function Main
Declare Integer Array prices[100]
Declare Integer max, i
  
Output "Enter 100 prices"
For i = 0 to 99
Input scores[i]
End
Assign max = prices[0]
For i = 1 to 99
If prices[i]>max
Assign max = prices[i]
Assign index = i
End
End
Output "maximum price"
Output max
Assign prices[index] = prices[index]*0.10
  
... reducing price of max by 10%
End

Flowchart:

Let me know if you have any doubts or if you need anything to change. 

If you are satisfied with the solution, please leave a +ve feedback : ) Let me know for any help with any other questions.

Thank You!
===========================================================================

Related Solutions

Assignment Requirements Please complete all parts in a Microsoft Word document. The body of your document...
Assignment Requirements Please complete all parts in a Microsoft Word document. The body of your document should be at least 900 words in length. Quoting should be less than 10% of the entire paper. Paraphrasing is necessary. Students must cite and reference at least 4 credible sources from the Library. Instructions Imagine that you are an administrator for a large hospital. As part of your role within healthcare leadership, you are involved in several committees for the organization. For this...
Follow the steps below to complete your SPSS homework assignment: At the bottom of this document...
Follow the steps below to complete your SPSS homework assignment: At the bottom of this document are 20 questionnaires that were completed by undergraduate students at University XYZ. Open a new SPSS file and save it. Leave the output window open. You will save the output in just a moment. Use the questionnaire questions to correctly define each variable in an SPSS file. Further directions can be found at the following YouTube link: https://www.youtube.com/watch?v=MoKDcPpRa_0 Generate a “file information” output of...
Read this entire document before beginning your lab. For this lab you are required to fulfill...
Read this entire document before beginning your lab. For this lab you are required to fulfill all requirements exactly as described in this provided document, no less, no more. Problem: Read in a word and display the requested characters from that word in the requested format. Write a Java program that ● prompts the user for a word and reads it, ● converts all characters of the input word to uppercase and display the word with a double quotation mark...
your assignment will be to do a complete SOAPE note on our Covid-19 patient John. Based...
your assignment will be to do a complete SOAPE note on our Covid-19 patient John. Based off of John’s presentation and subjective data so far, begin your SOAP note. You will need to complete a head to toe assessment based off his vital signs, and his presentation discussed in the scenario. As well as his skin and how it appears; His skin is warm to the touch, and mildly diaphoretic. His oral mucous membranes appear ashen, and slightly blue. His...
Write your plan for the investigation as described below and save it as a Word document.
  Fire Suppression Investigation Plan Write your plan for the investigation as described below and save it as a Word document. Detailed one page summary of your plans, including sketches if necessary. (Note: If you cannot submit your sketches, describe them in words.) Itemized list of materials, with total costs. Stoichiometric calculations of the amount of reactants required to produce enough gas to extinguish the fires. Remember that some gas may be lost prior to its use as a fire...
You are doing research on Paranoid Corp (PC).PC is a young,start up company. Currently, PC’s...
You are doing research on Paranoid Corp (PC).PC is a young, start up company. Currently, PC’s cost of goods sold is 95% of their sales (so they have a 5% gross margin). PC is expected to grow rapidly and they will not need a lot of capital investment to fuel that growth. Given their low margin, most analysts believe that PC is overvalued but there is one analyst who thinks that PC is undervalued and has a much higher target...
Submitting your assignment   1. Please collate your assignment as a single document in a Microsoft Word...
Submitting your assignment   1. Please collate your assignment as a single document in a Microsoft Word format. 2. Save the assignment as your candidate ID number, e.g. CON-000123456. 3. All marking is anonymous, which means your name should not appear on your work. 4. You must state which region/jurisdiction you are from in the header of each page. 5. You must ensure that all your work is properly referenced. 6. Penalties will be applied to those candidates who submit their...
Short Answer Writing Assignment All answers should be complete sentences. In the Week 2 Lab, you...
Short Answer Writing Assignment All answers should be complete sentences. In the Week 2 Lab, you found the mean and the standard deviation for the SLEEP variable for both males and females. Use those values for follow these directions to calculate the numbers again. (From Week 2 Lab: Calculate descriptive statistics for the variable Sleep by Gender. Sort the data by gender by clicking on Data and then Sort. Copy the Sleep of the males from the data file into...
Your assignment is to complete a network diagram for a small company. You will place a...
Your assignment is to complete a network diagram for a small company. You will place a number of network elements on the diagram and label them appropriately. A network diagram is important to communicate the design features of a network between network administrators, system administrators, and cyber-security analysts. It helps to create a shared mental model between these different technologists, yet each will have their own perspective on what is important to have documented on the diagram. Please review a...
VBA In this assignment you will create a Word Macro-Enabled Document. The document will contain procedures...
VBA In this assignment you will create a Word Macro-Enabled Document. The document will contain procedures with the following declarations: • Sub Main() • Sub GetGrades(grades() As Integer, total As Integer) • Sub CreateOutput(className As String, grades() As Integer, total As Integer) The Main sub-procedure will be the macro that initializes the task. In this procedure you will declare all necessary variables, prompt the user to enter the name of the class and the number of students, resize the grades...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT