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...
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...
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...
NOTE: Projects will not be graded if: --------------------------- Your complete project is not in a SINGLE...
NOTE: Projects will not be graded if: --------------------------- Your complete project is not in a SINGLE xxxxxp2.java file, where xxxxx is at most the 1st the first 5 characters of your last name and p2 is the project number. Using package or have compile error. It does not read input from any data file. It’s not uploaded in canvas. Those who work jointly, only one should submit and group names must be written at the bottom of the output. ---------------------------...
Read the assignment and answer the questions. You must also upload your Excel file, Word document...
Read the assignment and answer the questions. You must also upload your Excel file, Word document or pdf showing your work. Bodacious Building Co. is considering four different acquisition methods for obtaining pickup trucks. If the contractor’s MARR is 6%, which alternative do you recommend? The alternatives are: Immediate cash purchase of the trucks for $22,500 each, and after five years sell each truck for an estimated $4,900. Lease the trucks for five years for $4,000 per year paid at...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT