Question: Please answer with the pseudocode under instructions: Background: A new business needs a program to determine the net cost of a new phone design, and

Please answer with the pseudocode under "instructions:"

Please answer with the pseudocode under "instructions:" Background: A new business needsa program to determine the net cost of a new phone design,and to determine the expected profit based on sales price and totalcost. The phone will sell in Iceland, Japan, and France, so currencyconversions of the profit will be required. Instructions: Create a flowchart orpseudo code BEFORE you start to code this will help you tothink through the logic that you'll use in the program. When seekingprofessor help on the assignment, you will need to produce and explain

Background: A new business needs a program to determine the net cost of a new phone design, and to determine the expected profit based on sales price and total cost. The phone will sell in Iceland, Japan, and France, so currency conversions of the profit will be required. Instructions: Create a flowchart or pseudo code BEFORE you start to code this will help you to think through the logic that you'll use in the program. When seeking professor help on the assignment, you will need to produce and explain your logic/program plan. Input The input data will only be the phone name, sales price, and chipset (either Helio or Exynos) and which currency conversions the user wishes to do. The user may enter a dollar sign before the sales price, and your program will accommodate this. For data entry, we're going to assume the user enters good data. In the next module, we will see how to check for valid data entry, to prevent the program from crashing. Calculating costs and profit Use the following calculations to calculate costs of chipset, memory, camera, battery, and display. The sum of these costs makes up the total cost of manufacturing the phone. The cost of the chipset is based on the sale price as follows: For sales price at least $700, chipset cost is $150 For sales price at least $400 but less than $700, chipset cost is $100 For sales price less than $400, chipset cost is $80 In addition, it's possible to get a discount on Helio; if they qualify for the Helio discount, the chipset costs 10% less. The memory costs are calculated as follows: For Exynos chipset, memory costs 23% of sales price For Helios chipset, memory costs 17% of sales price Other costs: Camera (10% of sales price) Battery (Integer division of sales price by 7) Display (ASCII value of the second letter of the phone name, as entered) Profit is calculated as sales price minus total costs. Be wary of rounding errors. NOTE: if the cost exceeds the sales price you must give the user a warning message to that effect. Currency conversions If there is a profit, allow the user to specify whether to see the profit in foreign currency. Otherwise, don't give this option. Prompt the user to indicate if they want to see Euros, Krna, and/or Yen. They can answer "yes", "no", "V", "n", "Y", "N", etc. and your program must be flexible enough to handle any of these inputs - use the most efficient approach to test for these values. Convert the net profit to the equivalent currency (.84 Euro per 1 USD; 136.08 Krna per 1 USD; 106.16 Japanese Yen per 1 USD); the converted currency will be displayed rounded to 3 decimals. DO NOT display a USD dollar sign for the converted amounts (see note below). Both the net profit in USD and the converted currency will be included in a complete string for output. For the currency conversion, the user can select one, two or all three currency conversions; only those selected should be displayed. NOTE: the following are the escape sequence and hexadecimal Unicode representation to print the currency units \u20AC (Euro), \u00A5 (Yen), \u00f3 ( in Krna). Due to rounding, your conversion numbers may be slightly off. Expected Program Behavior Here are some example scenarios showing the program running. Asking the user if they qualify for a Helio discount: What is the name of the new phone? What is the sales price of the new phone? Which chipset - Helio or Exynos? Do you qualify for the Helio discount? Bolt 499.50 heli Only ask about discount if Helio chipset is indicated. Notice I do not need to spell out the entire chipset name nor spell out "yes" or "no". Helio with no discount: What is the name of the new phone? What is the sales price of the new phone? Bolt 499 Currency conversions If there is a profit, allow the user to specify whether to see the profit in foreign currency. Otherwise, don't give this option. Prompt the user to indicate if they want to see Euros, Krna, and/or Yen. They can answer "yes", "no", "V", "n", "Y", "N", etc. and your program must be flexible enough to handle any of these inputs - use the most efficient approach to test for these values. Convert the net profit to the equivalent currency (.84 Euro per 1 USD; 136.08 Krna per 1 USD; 106.16 Japanese Yen per 1 USD); the converted currency will be displayed rounded to 3 decimals. DO NOT display a USD dollar sign for the converted amounts (see note below). Both the net profit in USD and the converted currency will be included in a complete string for output. For the currency conversion, the user can select one, two or all three currency conversions; only those selected should be displayed. NOTE: the following are the escape sequence and hexadecimal Unicode representation to print the currency units \u20AC (Euro), \u00A5 (Yen), \u00f3 ( in Krna). Due to rounding, your conversion numbers may be slightly off. Expected Program Behavior Here are some example scenarios showing the program running. Asking the user if they qualify for a Helio discount: What is the name of the new phone? What is the sales price of the new phone? Which chipset - Helio or Exynos? Do you qualify for the Helio discount? Bolt 499.50 heli Only ask about discount if Helio chipset is indicated. Notice I do not need to spell out the entire chipset name nor spell out "yes" or "no". Helio with no discount: What is the name of the new phone? What is the sales price of the new phone? Bolt 499 Helio with no discount: chipset name nor spell out "yes" or "no". What is the name of the new phone? What is the sales price of the new phone? Which chipset - Helio or Exynos? Do you qualify for the Helio discount? Bolt 499 helio no The new phone is named BOLT $ 499.00 New price The costs are: Chipset Memory Camera Battery Display Total cost Net profit $ 100.00 $ 84.83 $ 49.90 $ 71.00 $ 111.00 $ 416.73 $ 82.27 Convert profit to Euros (Y/N)? y Convert profit to Krna (Y/N)? n Convert profit to Yen (Y/N)? n Profit of $82.27 is 69.107 2 Helio with discount: What is the name of the new phone? What is the sales price of the new phone? Which chipset - Helio or Exynos? Do you qualify for the Helio discount? Saturn $529.99 He yes The new phone is named SATURN $ 529.99 New price The costs are: Chipset Memory Camera Battery Display Total cost Net profit $ 90.00 $ 90.10 $ 53.00 $ 75.00 $ 97.00 $ 405.10 $ 124.89 Convert profit to Euros (Y/N)? n Convert profit to Krna (Y/N)? n Convert profit to Yen (Y/N)? n Exynos chipset example: What is the name of the new phone? What is the sales price of the new phone? Which chipset - Helio or Exynos? Phantom 799.89 Exy Exynos chipset but this time there's no profit: What is the name of the new phone? What is the sales price of the new phone? Which chipset - Helio or Exynos? Phantom $200 Exynos The new phone is named PHANTOM $ 200.00 New price The costs are: Chipset Memory Camera Battery Display Total cost Net profit $ 80.00 $ 46.00 $ 20.00 $ 28.00 $ 104.00 $ 278.00 $ -78.00 WARNING: You will not make any profit with this phone. NOTE: don't ask about currency conversion if there's no profit. Exynos chipset example: What is the name of the new phone? What is the sales price of the new phone? Which chipset - Helio or Exynos? Phantom 799.89 Exy The new phone is named PHANTOM New price $ 799.89 The costs are: Chipset $ 150.00 Memory $ 183.97 Camera $ 79.99 Battery $ 114.00 Display $ 104.00 Total cost $ 631.96 Net profit $ 167.93 Conversions - use the Unicode provided to create the currency symbols and the accent over the o in krna Convert profit to Euros (Y/N)? Convert profit to Krna (Y/N)? Yes Convert profit to Yen (Y/N)? ye Profit of $167.93 is 141.061 Profit of $167.93 is 22,851.914 krna Profit of $167.93 is 17,827.449 Y NOTE: don't ask about discount for Exynos, only for Helio

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!