Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

( Please make code, following all the steps below ) Topic: Selection Structure, One Dimensional Array, Functions Kindly create a program with selection structure SWITCH

(Please make 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 1
[1] BOM using One Dimensional Array,
BOM requirements:
Should have a minimum of 4 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 3 variable one dimensional arrays for Prices, Quantity, and
taxes aside from the other variables you are going to use.
Prices/material ( Input n variables for every material )
Quantity/material ( Input n variables for every material )
Taxes/materials ( Input 3 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 1,2 and 3]
o Net total price [without tax rate 1,2 and 3]
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 rate1 here] : P _________The Net Total Price computed based on [your tax rate1 here] : P ________
The total taxes computed based on [your tax rate2 here] : P __________
The Net Total Price computed based on [your tax rate2 here] : P _______
The total taxes computed based on [your tax rate3 here] : P __________
The Net Total Price computed based on [your tax rate3 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 jpcomputeTax1jp(double jpTaxjp, double jpTPricejp);
//this is a prototype located before the main function
double jpcomputeTax1jp(double 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 2
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 10.
Where 0 is 10 based on your student number.
Ex.
20197577
20247512
20153314
21568900
Maximum number of arrays is 23+10=33.
Variables should have your initials in it.(any 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 4
Quits the Program
Problem-Solving Tips
1. Prompt the user to create a program involving switch statement choices for
[1]BOM using One Dimensional Array, [2] 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, [3] info and [4] to quit the program.
2. Make sure to have a default output.
3. Entering Data into a One-Dimensional Array, and displaying the contents of a one-
dimensional Array.
4. Check the given PowerPoint presentation from our module to verify some of the
examples.
5. Be sure to follow the spacing and indentation conventions mentioned in the text.
6. 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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Ehs 2.0 Revolutionizing The Future Of Safety With Digital Technology

Authors: Tony Mudd

1st Edition

B0CN69B3HW, 979-8867463663

More Books

Students also viewed these Databases questions