Answered step by step
Verified Expert Solution
Question
1 Approved Answer
( Please create a c + + program code, following all the steps below ) Topic: Selection Structure, One Dimensional Array, Functions Kindly create a
Please create a c program code, following all the steps below
Topic: Selection Structure, One Dimensional Array, Functions
Kindly create a program with selection structure SWITCH STATEMENT using
characters as menu selection. Character selection should be in upper and lower
cases. Should ask to return on the main menu after execution.
SELECTION
BOM using One Dimensional Array,
BOM requirements:
Should have a minimum of of fully detailed materials which includes brand
names, Manufacturer, Item no description, and other details of the material.
Variables should have your initials in it
Variables should be in upper case after the first initials.
Ex jpSumjp shuffle the initials of the members make sure to use a variable
recognizable by the functionality of it
o Blue initials should be the first letter of name and first letter of surname
of one of the member.
Red initials should be the first letter of name and first letter of surname
of the of another member.
You need variable one dimensional arrays for Prices Quantity, and
taxes aside from the other variables you are going to use.
Pricesmaterial Input n variables for every material
Quantitymaterial Input n variables for every material
Taxesmaterials Input variables for every material
Remember that all prices are inclusive of VAT.
The program will compute for the following : define the following
properly
o Computed total taxes tax rate and
o Net total price without tax rate and
o Gross Total total prices computed based on number of
quantities
You can modify the statement below :
The total taxes computed based on your tax rate here : P The Net Total Price computed based on your tax rate here : P
The total taxes computed based on your tax rate here : P
The Net Total Price computed based on your tax rate here : P
The total taxes computed based on your tax rate here : P
The Net Total Price computed based on your tax rate here : P
Gross Total : P
The program should use Value Returning Functions for the taxes, Net
total prices and Gross Total Values.
VR function prototype and VR function header should have your initials
in it
Ex
double jpcomputeTaxjpdouble jpTaxjp, double jpTPricejp;
this is a prototype located before the main function
double jpcomputeTaxjpdouble jpTaxjp, double jpTPricejp
this is a header located below the main function
Blue initials should be the first letter of name and first letter of surname
of the leader.
Red initials should be the first letter of name and first letter of surname
of the partner.
SELECTION
A program that requires you to input n number of elements from user where n
is specified by user and stores data in an array. Display the maximum value that can
be entered. Then, this program displays the largest element of that array using loops.
The program also computes for the average of all the inputted values.
Requirements:
Maximum number is the sum of the last digit of your student numbers plus
Where is based on your student number.
Ex
Maximum number of arrays is
Variables should have your initials in itany members
Variables should be in upper case after the first initials.
Ex jpNumjp
Blue initials should be the first letter of name and first letter of surname
Red initials should be the first letter of name and first letter of surname
Selection
Quits the Program
ProblemSolving Tips
Prompt the user to create a program involving switch statement choices for
BOM using One Dimensional Array, a program which takes n number of
element from user where n is specified by user and stores data in an array.
Then, this program displays the largest element of that array using loops, and
average of the numbers, info and to quit the program.
Make sure to have a default output.
Entering Data into a OneDimensional Array, and displaying the contents of a one
dimensional Array.
Check the given PowerPoint presentation from our module to verify some of the
examples.
Be sure to follow the spacing and indentation conventions mentioned in the text.
If you have any questions as you proceed, ask your instructor for assistance.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started