PROBLEM 4 (CONDITIONAL) Use switch. Make a C program that will input your tuition fee and will display the amount to be paid, based on the on the mode of payment shown below: (10 marks) MODE OF PAYMENT [C/c] CASH 10% DISCOUNT [P/p] TWO-INSTALLMENT 5% INTEREST [Q/q] THREE-INSTALLMENT 10% INTEREST Sample Input1: Sample Input2: ENTER YOUR TUITION FEE: 21875.50 ENTER YOUR TUITION FEE: 21875.50 CHOOSE MODE OF PAYMENT: C CHOOSE MODE OF PAYMENT: q THE AMOUNT TO BE PAID: 19687.95 THE AMOUNT TO BE PAID: 24063.05
Q: Is this true or false? In the initialization of a form, its Text property is initially set to the…
A: Start: When a computer programme uses variable data, initialization refers to the act of identifying…
Q: This page contains a list of the five subtypes of DoS attacks.
A: Introduction: Denial of Service (Dos) attack definition A "denial of service attack" occurs when an…
Q: Compare and contrast different methods to an abstract data type.
A: Introduction: ADT is a type of logical description that emphasises the significance of performing…
Q: Why is it a good idea for the DEMS to update the catalogue as the database configuration changes?…
A: Introduction: The System Catalog is where the database information is kept safe.
Q: 37. Write the standard product term for each cell in a 3-variáble Karnaugh map. SECTION 4-9 Karnaugh…
A: Answer the above questions are as follows:
Q: Computer science Short answer What is multimode fiber (MMF)?
A: Fiber-optic: It is a technology that allows information to be transmitted over great distances as…
Q: A firewall's function is to protect your computer from intruders. There are many considerations to…
A: Introduction: By limiting network traffic, a firewall may secure your computer and data. This is…
Q: Is discrete event simulation important in four distinct ways?
A: Is discrete event simulation important in four distinct ways in below Step
Q: What are three examples of discrete event simulation?
A: What are three examples of discrete event simulation in below step
Q: • PYTHON PROGRAM # MODIFY THE GIVEN PROGRAM. pctr=0 price=['1','2',"3','4','5','6","7",'8',"9',"0"]…
A: In the given code pctr variable is initialized zero. Given list is : price=['1','2', '3', '4',…
Q: In the context of a computer network, explain the relationship between dependability and…
A: Reliability implies that the computer performs as intended. In a network, reliability is synonymous…
Q: When creating a database, a company must carefully consider the following topics: content, access,…
A: Introduction: When developing a database, businesses must consider both a simplified approach to the…
Q: 5. Write a script to add new user to a specific group (Exist and new group) and give an initial…
A: We need to write shell script to add a user with password. ***As per guidelines, only 1st question…
Q: Why is discrete event simulation so important?
A: Encryption: Simulation of discrete events. A stochastic mathematical modelling tool is discrete…
Q: Consider the benefits and drawbacks of using wireless technologies. Give the network at least two…
A: This is an ideal high-speed solution when transferring information over short periods or developing…
Q: A firewall's function is to protect your computer from intruders. There are many considerations to…
A: Introduction: A firewall can help to keep your computer and data safe by restricting network…
Q: Create an algorithm to delete all nodes in a linkedlist that have a duplicate key.
A: Algorithm: An algorithm is a collection of instructions for achieving a job or solving a problem.…
Q: What is a cross-site scripting (XSS) attack, and how does it work?
A: Definition: In a cross-site scripting (XSS) attack, an attacker injects malicious executable scripts…
Q: Create a 4-bit adder that includes: 1. Truth Table 2. Block diagram 3. IC used 4. Final Circuit…
A: 4 bit adder: 1.truth table: carry in A B sum carry out 0 0 0 0 0 0 0 1 1 0 0 1 0 1 0 0 1…
Q: Microcontrollers: Are They Necessary in Embedded Systems?
A: According to the question microcontroller give the self control to the input and output and the…
Q: Identify three IT vocations from your research and outline their potential positions inside and…
A: IT department of any company is now the backbone of that company. From gathering information and…
Q: Some firms prefer a dispersed computer system to a centralised computer system for a variety of…
A: Intro Systems with a central hubAll users are linked to a central network owner or "server" in a…
Q: Investigate the significance of wireless networks in underdeveloped countries. For what reasons are…
A: Wireless networks allow your office: Justification A wireless network kind of computer network that…
Q: How do you envision email in your mind? What's the best way to move an email around? Write down what…
A: When it comes to corporate communication, email is a vital tool since it is quick, inexpensive,…
Q: How would you sum up the evolution of wireless LAN technology in a few words?
A: Since the introduction of IEEE 802.11, some new IEEE wireless LAN protocols have emerged. IEEE…
Q: why mongodb is fit in case in the framework of CAP theorem?
A: Introduction The CAP Theorem is a type of distributed database management system (DAMs) that can…
Q: omputer science- Who should decide which applications are crucial and how they should be…
A: Intro
Q: Describe the System Management Mode in detail.
A: Introduction: Describe the System Management Mode in detail.
Q: Is there anything fundamentally missing from the fundamentals of software engineering? explain?
A: Software development: Software engineering is described as a method for developing, operating, and…
Q: The statement [ Dim a (20) As String] its mean in visual basic .net
A: In step 2, I have provided answer ... In further steps , I have provided a visual basic…
Q: How are mainframe and laptop operating systems fundamentally different? Do the two have any…
A: Introduction: The mainframe OS is a network operating system that allows a computer to execute…
Q: What is the difference between data abstraction and data encapsulation? How can we implement this in…
A: The Answer is in Below Steps
Q: Explain smart education and smart city in a few words and provide an example.
A: In the creation of smart cities, smart education is a critical component. A smart city has strengths…
Q: What is the relationship between cohesion and coupling in software design?
A: Introduction: "Good software design necessitates low coupling and high cohesion." Changes to one…
Q: Why does an operating system often provide dedicated calls for accessing directory entries?
A: The following are some of the procedures that may be performed on directories: The working directory…
Q: Do you feel that customer-centric firms are more lucrative, given the influence that service may…
A: The solution to the given question is: INTRODUCTION There are many business and industry…
Q: When it comes to a cloud-based network, how do you host the services and applications?
A: Cloud computing allows us to access and store data over the internet rather than on a local hard…
Q: How does a computer's organization and design define its applicability and cost? Use an example to…
A: Introduction: Computer organization:- It's the configuration of a computer system's many hardware…
Q: Assume you're a systems analyst working on a comprehensive test plan. Describe the testing…
A: Given: We have to discuss system analyst working on a comprehensive test plan. We have to describe…
Q: ebating whether to prototype before implementing. The project team is concerned about the need to…
A: Your data warehousing team is debating whether to prototype before implementing. The project team is…
Q: What does reading a priming text imply? What's the aim of all of that?
A: Introduction: Situation priming accelerates processing for stimuli that are more likely to occur in…
Q: What five (5) traits would you use to characterize a system?
A: Characterize a system: The way a system reacts to incoming signals defines it. A system contains…
Q: A local area network (LAN) is a network of devices that connect to one another inside the confines…
A: Note - **As per the given problem it is not clear what is exact solution you want but I am providing…
Q: To connect a phone line to a communication adapter, why is a modem required
A: Modem stands for Modulator Demodulator.
Q: Ethernet may be used to connect to a wide number of various media formats.
A: Ethernet: Ethernet is the typical technique for connecting devices in a wired local area network…
Q: Information technology Short answer What are the characteristics of the Logical Link Control (LLC)…
A: Introduction: What are the characteristics of the Logical Link Control (LLC) sublayer? It gives the…
Q: Computer science Explain the difference between connectionless and connection-oriented services.
A: Introduction: Because of corporate policy, we can only respond to one question at a time, so please…
Q: What are the differences in formation security and risk management between the perimeter network and…
A: Intro Network: A network perimeter is a secure boundary between a network's private and locally…
Q: In our definition of a secure channel, what are the two things that an eavesdropper is “allowed” to…
A: A secure channel is a means of data transmission that is resistant to overhearing and tampering.
Q: If your data warehousing project team is debating whether to develop a data warehouse prototype…
A: When it comes to business intelligence -(BI) and analytics, a data warehouse is a database…
![PROBLEM 4 (CONDITIONAL)
Use switch.
Make a C program that will input your tuition fee and will display the amount to be paid,
based on the on the mode of payment shown below: (10 marks)
MODE OF PAYMENT
[C/c] CASH 10% DISCOUNT
[P/p] TWO-INSTALLMENT 5% INTEREST
[Q/q] THREE-INSTALLMENT 10% INTEREST
Sample Input1:
Sample Input2:
ENTER YOUR TUITION FEE: 21875.50
ENTER YOUR TUITION FEE: 21875.50
CHOOSE MODE OF PAYMENT: c
CHOOSE MODE OF PAYMENT: q
THE AMOUNT TO BE PAID: 19687.95
THE AMOUNT TO BE PAID: 24063.05](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F40907265-d784-468a-8793-86333d7d70ed%2Fbdf84cdd-ab6b-4c24-8654-511547a0d2fa%2Fu78iw8q_processed.jpeg&w=3840&q=75)
![](/static/compass_v2/shared-icons/check-mark.png)
Step by step
Solved in 3 steps with 1 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
- Numerical analysis) Given a number, n, and an approximation for its square root, a closer approximation of the actual square root can be found by using this formula: newapproximation=(n/previousapproximation)+previousapproximation2 Using this information, write a C++ program that prompts the user for a number and an initial guess at its square root. Using this input data, your program should calculate an approximation of the square root that’s accurate to 0.00001. (Hint: Stop the loop when the difference between the two approximations is less than 0.00001.)(Electrical eng.) a. The voltage gain of an amplifier is given by this formula: voltagegain=[275 23 2 +0.5 f 2 ]n f is the frequency in Hz. n is the number of stages in the amplifier. Using this formula, write, compile, and run a C++ program to determine the value of the voltage gain for a four-stage amplifier operating at a frequency of 120 Hz. Your program should produce the following display: At a frequency of xxxxx hertz, the voltage gain is yyyyy Your program should replace xxxxx with the frequency and yyyyy with the voltage gain. b. Manually check the value your program produces. After verifying that your program is working correctly, modify it to determine the voltage gain of a 12-stage amplifier operating at a frequency of 9500 Hz.In C have the user enter their beginning principal balance (must be a float greater than zero).If not a float greater than zero, have the user enter again. (Use a do-while loop)Have the user enter their desired annual interest rate (must be a float greater than zero and less than 15%).If not a float greater than zero and less than 15%, have the user enter again. (Hint: Use a do-while loop)Have the user enter their desired number of quarters (must be an integer greater than zero or less than orequal to 44).If not an integer greater than zero and less than or equal to 44, have the user enter again. (Hint: Use a do-while loop)Display all of the information entered in steps 1-6 as seen in the display window below..Ask the user if all of the values are correct. If yes, proceed with step 9. If no, return to step 1. (Hint: Use ado-while loop)For each quarter, calculate and display the beginning principal balance, the interest earned, and the finalprincipal balance for the quarter using a for…
- PYTHON (Uee While Loop) only Write a python program that calculates the populations of foxes and rabbits who live within a certain area of land, as that number changes from year to year. It will take the initial populations as inputs, and then proceed to calculate the year-by-year changes. The following is derived from the “Lotka-Volterra equations”, which you may look up if you desire. Essentially, we will model the foxes and rabbits with 4 constants, and 2 data structures of year-by-year values. They are defined as follows: r[y] # of rabbits in year y f[y] # of foxes in year y α or alpha - birth rate of rabbits β or beta - death rate of rabbits, dependent on # of foxes γ or gamma - birth rate of foxes, dependent on # of rabbits δ or delta - death rate of foxes, caused naturally The formulas we will use are: r[y]=r[y−1]+(r[y−1]×α)−(r[y−1]×f[y−1]×β)r[y]=r[y−1]+(r[y−1]×α)−(r[y−1]×f[y−1]×β) f[y]=f[y−1]+(f[y−1]×r[y−1]×γ)−(f[y−1]×δ)f[y]=f[y−1]+(f[y−1]×r[y−1]×γ)−(f[y−1]×δ) However,…(a) The use of computers in education is referred to as computer-assisted instruction (CAI). Write a program that will help a student learn multiplication.Use the rand function to produce two positive one-digit integers.The program should then prompt the user with a question, such asHow much is 6 times 7?The student then inputs the answer. Next, the program checks the student’s answer. If it’s correct, display the message "Very good!" and ask another multiplication question. If the answer is wrong, display the message "No. Please try again." and let the student try the same question repeatedly until the student finally gets it right. A separate function should be used to generate each new question.This function should be called once when the application begins execution and each time the user answers the question correctly.(b) A prime integer is any integer greater than 1 that can be divided evenly only by itself and 1. The Sieve of Eratosthenes is a method of finding prime numbers. It…Perform the following using DEV-C++ Show your solution Write a program that determines a student’s grade. It reads four test scores (between0 and 100) and calculates the grade based on the following rules: If the average score is 90 or more, the grade is ‘A’. If the average score is between 80 and 90, the grade is ‘B’. If the average score is between 70 and 80, the grade is ‘C’. If the average score is between 60 and 70, the grade is ‘D’. If the average score is less than 60, the grade is ‘F’.
- Problem C: Snake Eves on Crazy Dice Write a program that simulates rolling two twenty-sided dice 100000 times, counting now many times the sum of the two dice is 2. Based on these results as well as the results of the program (snakeeyes.py) shown in class, make a guess as to how often one can expect to roll snake-eyes (two Is) on a pair of dice labeled I through n, for any positive integer n. Sample Run You got snake-eyes 35 times out of 100000. That is .035 percent of the time. Roughly, that is 1 in 2857 times. Note: The numbers shown above are NOT realistic. This is just to show the format desired for your output. In Python Code(n) = Number of layers in the wall , (di) = width of each layer , (ki) = thermal conductivity coefficient , (A) total surface area of the wall , (Ti) = indoor temperature , (Td) = outdoor temperature . Write a C function that accepts the values as input and calculates the heat loss by applying the formula below.Q2/A/Design the program to calculate the value of (M) from the equation below: In a sin Y M = |s|log Bd+|+ M=0 CX-tan-n cosh cos a M = |b³| + M=1 NOT Using input box function that appear in (9000,5000) and use text box to result and print for each parameter input?
- Q6: Write a C++ program, using function, to inputs a student's average and returns 4 if student's average is 90-100, 3 if the average is 80-89, 2 if the average is 70-79, 1 if the average is 60-69, and 0 if the average is lower than 60.C Program In order to discourage excess electric consumption, an electrical company charges its customers a lower rate of P75 for the first 250 kilowatt-hours and a higher rate of P8.5 for each additional kilowatt-hour. In addition, a 10% surtax is added to the final bill. Write a program that calculates the electrical bill given the number of kilowatt-hours consumed as input. At the end, print the number of kilowatt-hours consumed and the computed bill.Problem B. Musical Key ConversionThe chromatic scale is a 12-note scale in music in which all notes are evenly spaced: that is, the ratio of the frequency between any two consecutive notes is constant. The notes are typically labeled in the following sequence: A, A#, B, C, C#, D, D#, E, F, F#, G, G# After G#, the labels loop back and start over with A (one octave higher). To convert between musical keys, you can shift all notes in a piece of music a constant number of steps along the scale above. For example, the sequence of notes E, E, F, G, G, F, E, D, C, C, D, E, E, D, D can be converted to another musical key by shifting everything up three steps: E, E, F, G, G, F, E, D, C, C, D, E, E, D, D G, G, G#, A#, A#, G#, G, F, D#, D#, F, G, G, F, F Notice that G was converted to A#, since going three steps up required us to loop off of the top of the scale back to the bottom: G -> G# -> A -> A#. Technically we should note that this would be A# of the next octave up, but we’ll…
![C++ for Engineers and Scientists](https://www.bartleby.com/isbn_cover_images/9781133187844/9781133187844_smallCoverImage.gif)
![C++ for Engineers and Scientists](https://www.bartleby.com/isbn_cover_images/9781133187844/9781133187844_smallCoverImage.gif)