Question: CS14 poks My library > CS 145-002: Introduction to Computing for Engineers home 2.26: Chapter 2B You are using an unsupported browser Please see our
CS14 poks My library > CS 145-002: Introduction to Computing for Engineers home 2.26: Chapter 2B You are using an unsupported browser Please see our systems requiremen 2.26 Chapter 2B rite a program that gives the following output. End with a newline. Enter amount due: 5.85 Enter amount tendered: 10.00 Change Number of 5 dollar bills: 0 Number of 1 dollar bills: 4 Number of quarters: 0 Number of dimes: 1 Number of nickels: 1 Number of pennies: LAB ACTIVTY 2.26.1: Chapter 28 main.cpp 2.27 Chapter 2C Write a program to find the solution to a polynomial, given the coefficients A, B, C in the equation below. Ax"2 + Bx + C-0 Use the quadratic equation, there should be 2 solutions, The solutions should have 2 decimal places Sample output is given below. Enter coefficient A: 1 Enter coofficiont B:-1 Enter coefficient C: -6 The two solutions to this equation are 3.00 and 2.00 ACTINTY 2.27.1: Chapter 20 LAB ain.cpp l Run your program as often as you'd like, before itting for 2.28 Chapter 2D write a program that calls the random number generator two times to simuate roling a pair of dice. It should store the two numbers into vanables. It wil then determine if the dice roll s a winner(douoles OR add up to7 Remember to add two includes and also to seed the random number generator to the clock his vall ro1l two dice and add then togecher Doubles, or a total of 7-YOU ARE A WINNER! First dice: 4 Second dice: 2 BETTER LUCK NEXT TIME Sample output 2 is given below. This wil1 roll two dice and add them together Doubles,or a total of 7-YOu ARE A WINNER First dice: 1 second dice: Sample output 3 is given below. Doubles, or a total of 7 -YOU ARE A WINNERD Pirst dice: 4 YOU WONIE 0/2 ACTIVTY 2 28 1: Chapter 2t
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
