Question

In: Computer Science

We're only writing pseudo code STATEMENT OF PROBLEM: An instructor uses a weighted average to calculate...

We're only writing pseudo code

  1. STATEMENT OF PROBLEM: An instructor uses a weighted average to calculate student grades at the end of the year. The weight assigned to each item is:

Homework        30%

Quiz 1               15%

Quiz 2               15%

Final Exam       40%

Total                100%

Mike wants to write a computer program to calculate his final overall average. He knows what percent he earned on each of the four factors that go into calculating his final overall average and can provide those percentages as input. For example, he scored 87.5% on Quiz 1 and when prompted will enter 87.5. Design a solution that will allow Mike, or any other student in the class, to enter the percent scored on each of the 4 factors and return the student's overall average. Express the overall average as a percent (eg. 87.5%).

Solutions

Expert Solution

Pseudo-code

   START

       DECLARE VARIABLE ScoreHomework
       DECLARE VARIABLE ScoreQuiz1
       DECLARE VARIABLE ScoreQuiz2
       DECLARE VARIABLE ScoreFinalExam
       DECLARE VARIABLE ScoreTotal

       Input ScoreHomework
       Input ScoreQuiz1
       Input ScoreQuiz2
       Input ScoreFinalExam

       ScoreHomework = (ScoreHomework/100) * 30
       ScoreQuiz1 = (ScoreQuiz1/100) * 15
       ScoreQuiz2 = (ScoreQuiz2/100) * 15
       ScoreFinalExam = (ScoreFinalExam/100) * 40

       ScoreTotal = ScoreHomework + ScoreQuiz1 + ScoreQuiz2 + ScoreFinalExam

       PRINT "Overall Score: " + ScoreTotal
      
   END


Related Solutions

Assuming that the company uses the CAPM to calculate its cost of equity. Calculate its weighted average cost of capital.
Royta Ltd, operates in the commercial painting industry. They have reluctantly come to the conclusion that some of their older equipment is reaching the end of its productive life and will need to be replaced sooner or later. They have asked for your assistance in determining their cost of capital in order to make this decision. Their present capital structure is as follows: 1 200 000 R2 ordinary shares now trading at R2,20 per share.  80 000 preference shares...
The Richmond Corporation uses the weighted-average method in its process costing system. The company has only...
The Richmond Corporation uses the weighted-average method in its process costing system. The company has only a single processing department. The company's ending work in process inventory on August 31 consisted of 21,400 units. The units in the ending work in process inventory were 100% complete with respect to materials and 60% complete with respect to labor and overhead. If the cost per equivalent unit for August was $3.60 for materials and $5.10 for labor and overhead, the total cost...
Problem 4-16 Comprehensive Problem-Weighted-Average Method [LO4-2, LO4-3, LO4-4, LO4-5] Builder Products, Inc., uses the weighted-average method...
Problem 4-16 Comprehensive Problem-Weighted-Average Method [LO4-2, LO4-3, LO4-4, LO4-5] Builder Products, Inc., uses the weighted-average method in its process costing system. It manufactures a caulking compound that goes through three processing stages prior to completion. Information on work in the first department, Cooking, is given below for May: Production data: Pounds in process, May 1; materials 100% complete; conversion 90% complete 79,000 Pounds started into production during May 440,000 Pounds completed and transferred out ? Pounds in process, May 31;...
Problem 4-16 (Algo) Comprehensive Problem-Weighted-Average Method [LO4-2, LO4-3, LO4-4, LO4-5] Builder Products, Inc., uses the weighted-average...
Problem 4-16 (Algo) Comprehensive Problem-Weighted-Average Method [LO4-2, LO4-3, LO4-4, LO4-5] Builder Products, Inc., uses the weighted-average method in its process costing system. It manufactures a caulking compound that goes through three processing stages prior to completion. Information on work in the first department, Cooking, is given below for May: Production data: Pounds in process, May 1; materials 100% complete; conversion 90% complete 85,000 Pounds started into production during May 500,000 Pounds completed and transferred out ? Pounds in process, May...
Calculate the cost of goods sold and ending inventory using weighted average. (Round the weighted average...
Calculate the cost of goods sold and ending inventory using weighted average. (Round the weighted average cost per unit to 2 decimal places, e.g. 5.25 and final answers to 0 decimal places, e.g. 5,250.) Purchases Cost of Goods Sold Balance Date Units Cost Total Units Cost Total Units Cost Total Units Total Cost WA Cost Per unit Apr-01 Beginning Inventory 26 $11 $286 26 $11 $286 Apr-15 52 $13 $676 $ $ 26 $286 52 $676 $ $ Apr-20 29...
25. Assigning Costs to Products: Weighted Average Method. Sydney, Inc., uses the weighted average method for...
25. Assigning Costs to Products: Weighted Average Method. Sydney, Inc., uses the weighted average method for its process costing system. The Assembly department at Sydney, Inc., began April with 6,000 units in work-in-process inventory, all of which were completed and transferred out during April. An additional 8,000 units were started during the month, 3,000 of which were completed and transferred out during April. A total of 5,000 units remained in workin- process inventory at the end of April and were...
Calculate the weighted average cost of capital for a firm with the following information:
Calculate the weighted average cost of capital for a firm with the following information:            Marginal corporate tax rate:                                                               25%            Bonds with $1,000 face value with a 6% coupon rate   with semi-annual payments matures in 10 years now sells for               $928.94            Preferred stock dividend                                                                        $5.50            Preferred stock price                                                                               $55.00Current common stock dividend per share                                               $1.50            Price per share of common stock                                                             $12.00            Floatation cost to sell new common stock                                    ...
Write pseudo-code to solve the following problem using MapReduce and explain how it works. Each line...
Write pseudo-code to solve the following problem using MapReduce and explain how it works. Each line in the file lists a user ID, the ID of the movie the user watched, the rating the user gave for the movie, and the timestamp. For example line 1 indicates that the user’s ID is 196, the movie ID is 242, the user gave this movie a rating of 3, and the timestamp is 881250949. Given the file, find out the top similar...
Question 1-Process Costing (Weighted-Average Method):  Partners in Crime Paint Company uses the weighted-average method to account for...
Question 1-Process Costing (Weighted-Average Method):  Partners in Crime Paint Company uses the weighted-average method to account for costs of production in its process costing system. Partners in Crime manufactures its base paint in two separate departments:  Mixing and Packaging.  The following information is for the Mixing Department (the first production department in its production process) for the month of March:            Units (gallons) Percent Complete with Respect to DM Percent Complete with Respect to Conversion Costs (DL+OH) Beginning work in process inventory 35,000 100%...
Question 1-Process Costing (Weighted-Average Method):  Partners in Crime Paint Company uses the weighted-average method to account for...
Question 1-Process Costing (Weighted-Average Method):  Partners in Crime Paint Company uses the weighted-average method to account for costs of production in its process costing system. Partners in Crime manufactures its base paint in two separate departments:  Mixing and Packaging.  The following information is for the Mixing Department (the first production department in its production process) for the month of March:            Units (gallons) Percent Complete with Respect to DM Percent Complete with Respect to Conversion Costs (DL+OH) Beginning work in process inventory 35,000 100%...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT