7. Write a program that consists of the following algorithm: num1 =4, num2= 4* 5-11, sale = 0.02 * 1000, first ='D', str = "It is a sunny day". .Your program has to display the results for num1, num2, sale, first and string. 8. What is the output of the following? a) cout « 29/4 << endl; b) cout << "4 + 7 ="« 4 +7 << endl; c) cout << 2 +3 * 5<< endl; d) cout << "Hello \n there." << endl;
Q: The output of this program when i= 3 and j=4 is ;int i.j ;cin >> i>>j ;cout << (i < 5 || i < j) <<…
A: Find Your Answer Below
Q: A number N can be categorized as Deficient, Perfect or Abundant Number based on the following…
A: Expect the number itself, any factor of a number is called proper factor. All factors of the number…
Q: Q1: Write a program that reads a set of N integers. Then, the program finds and outputs the sum of…
A: Below I have provided a python program for the given question. Also, I have attached a screenshot of…
Q: Part H: Worker Pay Write a program that asks the user to enter their name, pay rate (in $/hr) and…
A: steps for calculating total amount is if hour > 40: total = 40 * rate + (hour-40) * 1.5 * rate…
Q: Problem #3: Write a program that reads the width, height and a character from the user, then…
A: As there is no programming language is mentioned we are writing this program in c++ Code…
Q: Question # 2 Make a program which can compute the equation given below: 1/4 a, * b+ a, * b + az * b+…
A: Objective: This program computes the result of a given mathematical expression. The program must…
Q: Q2:::write a program that computes ,prints and plots A=√X, B-log X; C-In X; D=cx; E-3X; F=X7 Where X…
A: x=1:20 A=sqrt(x) plot(x,A)
Q: Question 1 Write a program that finds the new salary of an employee after several years of work…
A: Note: Programming language not mentioned in the question. C++ is chosen for implementation.…
Q: Write a program using a codeblock that consists of the following algorithm: num1 =4, num2= 4* 5-11,…
A: <!doctype html><html><head><title>Add Two…
Q: 5.A)For the code segment below, what should be the values for q will result in kiwi being included…
A: A switch case is like a if-else-if ladder. When the value of variable to be switched matches any…
Q: Excercise 30 defines the number e and exerecise 31 shows how to approximate the value of e using a…
A: Since no programming language is mentioned. I am attempting this in python. if you need it in any…
Q: Mad Libs are activities that have a person provide various words, which are then used to complete a…
A: Use an infinite loop to accept the input and manually specify the condition to exit from loop
Q: The factorial of 1 is written 1! and equals 1. Additionally, the factorial of 5 is written 5! and…
A: Please refer below for your reference: Language used is Python: def factorial(n): a=1; for i…
Q: Consider records of employees each consists of employee's first name (string), number of hours…
A: I give the code in python along with output and code screenshot
Q: (j) then s2=s2+a(i,i) else s3=s3+a(ij) endif;end do;end do write(*,*)s1,s2,s3 [10 2 a = 4 20 2 4 4…
A: Answer : - option c) 6 12 60 same algorithm in python : - a = [[10,2,2], [4,20,2],…
Q: 2) Calculate y = x³ – 3x + 12 for x = [0, 1, 2, –3,–6, 200, –9] , print rules given below and y…
A: C++ Code for the given expression for all values of x #include <iostream> using namespace std;…
Q: Python code: Mad Libs are activities that have a person provide various words, which are then used…
A: Algorithm: Take a string and an integer from the user . Using a while-loop to iterate over the…
Q: 4.15 LAB: Hailstone sequence Given a positive integer n, the following rules will always create a…
A: Ans: Code: n = int(input())print(n, end='\n')while n > 1: if n % 2 == 0: n = n//2…
Q: //////////// //////////// //////////// please help me solve this problem in java
A: Program Instructions:Use scanner class object to read the three integers.Create a method names…
Q: baython you have the following code, .choose the correct answer x = [3.0, 5.0, -1.0, 0.0, 3.14] n =…
A: x and n both are variables where x is storing the reference of the list and n is storing the length…
Q: 6b conditionais Write a program that, after it prints the score, prints Good job!" if `score' is…
A: There is no mention of any particular language.I can make out from the editor that it's in Python.…
Q: 4.15 LAB: Hailstone sequence Given a positive integer n, the following rules will always create a…
A: Python is one of the most popular programming language.And it is oops and high level programming…
Q: 4.15 LAB: Hailstone sequence Given a positive integer n, the following rules will always create a…
A: Complete Code in C with explanation in the comment: #include <stdio.h> int main() {…
Q: Write a program that displays a given integer with the corresponding comma in place. Before, commas…
A: Answer: I have done code and also I have attached code and code screenshot as well as output
Q: Write a program that consists of the following algorithm: num1 =4, num2= 4* 5-11, sale = 0.02 *…
A: Write a program that consists of the following algorithm: num1 =4, num2= 4* 5-11, sale = 0.02 *…
Q: Q3) Write a program that converts the weather from Celsius to Fahrenheit in a specific day. The…
A: Program Code:
Q: 1. Write a complete C++ program that lists all numbers that are perfect squares in a range. •…
A: Answer in step2
Q: 1. Write a complete C++ program that lists all numbers that are perfect squares in a range. •…
A: ALGORITHM:- 1. Generate the value of low between 50 & 200. 2. Generate the value of high between…
Q: Q5/ 1. 1. Write a program to read three marks and calculate the average. If the student's average is…
A: Since no programming language is mentioned, I am using python. As per our guidelines, we are…
Q: Use following main function to test your program. (have to use this main function) int main() { cout…
A: Program Approach:- 1. Include header file 2. Create the class whose name is RatNum 3. Create two…
Q: 6. Write that (i) declares string str_a (of size (5] a program a…
A: PROGRAM CODE: #include<iostream>using namespace std;int main(){ // declare the required…
Q: 17.25 LAB: Print string in reverse Write a program that takes in a line of text as input, and…
A: C++ program to reverse the string and break the code run when DONE is entered
Q: n C++ write a program that prompts the user to enter three strings and then make a new string formed…
A: Given: Three strings taken input from user. Requirement: Write a program to read the strings from…
Q: This following program is intended to print something sensible. .ORIG LEA R1, ? A ADD R1, R1, -2 B…
A: The OUT instruction prints something that is in R0 To print the string, the label should be I at ?…
Q: Vrite a séquence of input statéments to read a user's first, middle, and last name and then print a…
A: Coded using C++.
Q: A company is hiring university grads. Write a program in which the HR enters the total number of…
A: A company is hiring university grads. Write a C++ program in which the HR enters the total number of…
Q: Java , we are learning decisions and branch statements.
A: Program: //Import necessary packages import java.util.Scanner; //Define a class named Smallest…
Q: program to be written in c (1) Prompt the user to enter a string of their choosing. Store the text…
A: A required program is as follows, //Import required header files #include<stdio.h> #include…
Q: Q5: Ask the user to enter five capital letters (A..Z), and check if the letters are in an ascending…
A: According to the provided information: We need to create a program that will take five capital…
Q: Consider the following code snippet. Complete the code in line 5 to display the output "less".…
A: equals() method will compare the value in two strings for equality. In the code snippet we have to…
Q: C++ Exercise 30 defines the number e and Exercise 31 shows how to approximate the value of e using…
A: #include <iostream> using namespace std; float cal(int i, int n) { if(i == n) return ((i-1) +…
Q: Write code using 999999999888888887777777666666555554444333221 Note; create means you must create…
A: Objective: This program should receive user input for the number of lines to display a pattern. The…
Q: The box below illustrates how your program should behave and appear. REMEMBER in the output: • is a…
A: The answer is given below:-
Q: a. Write a program that reads your id and full name and display. And also display the index of first…
A: Since no programming language is mentioned, I am using python. Algorithm: Start Read id and name…
Q: Q3: Write the algorithm for a program that calculates the cost of the phone bill according to the…
A: The algorithm is shown below. Algorithm PhoneBill(minutes) //Algorithm to find teh total…
Q: Change this c++ coding from output average and highest score to lowest score and second lowest…
A: Approach: Here, we use two 1-d arrays: one integer array to hold student scores and another string…
Q: Can you please rewrite these cods for me in a simple way without the '/n' and '/t' , also show me…
A: #include<iostream>using namespace std;// the main bodyint main(){ std::string…
Q: hter a program in C++ tó réád à šét a set ntegers, the last of which is 55, and calculate the number…
A: Solution :
Q: Q/Write a program that reads from the user a set of numbers, and first, it has to check how many…
A: Note: Since no programming language is mentioned. I am attempting this in python. if you need it in…
Q: Sandwich Maker Write a program that asks users for their sandwich preferences. The program should…
A: The advantage of Python allowing elements of a list to be of various types is that we can store all…
need all questions answered please from both screenshots
Step by step
Solved in 2 steps with 4 images
- <!DOCTYPE html ><html> <head><meta charset="utf-8"><title>Black Goose Bistro Summer Menu</title> </head> <body> <div id="info"><h1>Black Goose Bistro • Summer Menu</h1> <p>Baker's Corner, Seekonk, Massachusetts<br><span class="label">Hours: Monday through Thursday:</span> 11 to 9, <span class="label">Friday and Saturday;</span> 11 to midnight</p></div> <div id="appetizers"><h2>Appetizers</h2><p>This season, we explore the spicy flavors of the southwest in our appetizer collection.</p> <dl><dt>Black bean purses</dt><dd>Spicy black bean and a blend of mexican cheeses wrapped in sheets of phyllo and baked until golden. <span class="price">$3.95</span></dd> <dt class="newitem">Southwestern napoleons with lump crab — <strong>new item!</strong></dt><dd>Layers…what I have so far please help with what you can <!DOCTYPE html><html> <head> <title>ABOUT</title> </head> <body> <main> <nav> <a href="index.html">Home</a> <a href="contact.html">Contact</a> <a href="about.html">About</a> </nav> <h1>About ME</h1> <picture> <source media="(min-width:650px)" srcset="./images/lake-650.jpg"> <source media="(min-width:465px)" srcset="./images/lake-465.jpg"> <img src="./images/lake.jpg" alt="lake" style="width:auto;"> </picture> <p>Why hello there and welcome!.</p> <p>Hello there my name is Josiah McSweeney and I am a computer engineering student I really enjoy working with computers and exploring what I'm able to do with them I am currently 22 years and I'm working…<!DOCTYPE html> <!-- This is the parallax scrolling single page webste --> <html lang="en"> <head> <title>KayakDoorCounty.net</title> <meta charset="utf-8"> <style> body { font-family: Tahoma, Verdana, Arial, sans-serif; margin: 0; padding: 0; } .hero { background-image: url(beached.jpg); min-height: 100vh; background-attachment: fixed; background-position: center; background-repeat: no-repeat; background-size: cover; padding: 0; } .tourshero { background-image: url(kayaks.jpg); min-height: 100vh; background-attachment: fixed; background-position: center; background-repeat: no-repeat; background-size: cover; } .rentalshero { background-image: url(rentals.jpg); min-height: 100vh; background-attachment: fixed; background-position: center; background-repeat: no-repeat; background-size: cover; } .contacthero { background-image:…
- what I have so far <!DOCTYPE html><html><head><link rel="stylesheet" href="style.css"><meta charset=”utf-8”><title>Lab1</title></head> <body> <h1><img><br><img src="21.png"><p>Amet Justo Donec</p></h1> <p>Cursus EgetPurus sit amet volutpat consequat mauris nunc congue nisi vitae. Suscipit tellus mauris a diam maecenas sed enim ut sem viverra aliquet eget sit.<p/><h2>Cursus Eget</h2><p>Purus sit amet volutpat consequat mauris nunc congue nisi vitae. Suscipit tellus mauris a diam maecenas sed enim ut sem viverra aliquet eget sit.<p/><h2>Diam</h2><p>Urna condimentum mattis pellentesque id nibh tortor. Id aliquet lectus proin nibh nisl condimentum id venenatis. A condimentum vitae sapien pellentesque habitant.<p/><h2>Aliquam Sem Fringilla</h2><p>Pellentesque, NecEst velit egestas dui id ornareEst ultricies integer quis…<!doctype html> <html lang="en"> <head> <title>Programming 1</title> <meta charset="utf-8"/> </head> <body> <script type="text/javascript"> function findAnswer() { var a = new Date(2020, 12, 29); // HINT: Be careful with getMonth() var d = a.getFullYear() + a.getMonth(); var sum = d % 5; document.getElementById("ans").innerHTML = sum.toString(); } </script> <form action="#" method="post" name="form1" id="form1" class="form" > <input type="button" name="Submit" id="submit" value="Submit" onclick="findAnswer();"/> </form> <p id ="ans"></p> </body> </html> none Will the code from above print anything, if so, what printed ? If not, say NONE.javascript programming <!DOCTYPE html><html><head><!--Let us get Initial of First and Last Name with Combination of Zip Code to Form Account Number--><meta charset="utf-8" /><meta name="viewport" content="width=device-width,initial-scale=1.0"><title>Generate Account Number</title><link rel="stylesheet" href="styles.css" /><script src="modernizr.custom.65897.js"></script></head> <body><header><h1>Generate Account Number with First/Last Name Initial and Zip Code</h1></header> <article><h2>New Account Information</h2><form><fieldset id="deliveryinfo"><label for="fnameinput">First Name</label><input type="text" id="fnameinput" name="fname" /><label for="lnameinput">Last Name</label><input type="text" id="lnameinput" name="lname" /><label for="addrinput">Street Address</label><input type="text" id="addrinput"…
- 1. ( powepoint) create a prtesentation of five slides and summarize any 5 topicts wehave cover so far. Each slide should have a different animation. insert an object on your slides using slide master. 2. Print screean of the all what you have done in microsoft word and paste in on slide 2. 3. create the first slide with a chart and a cartoon facing that chart,then the two should have different animations that the chart should appear first and then a cartoon. 4.Add slide numbers and date. Use facet design, Title and 2 content slide layout. 5. Make the presentationautomatic<!DOCTYPE HTML> <html> <body bgcolor="87ceeb"> <center><h2>Online Library </h2></center> <form action="InsertBooks.php" method="post"> <table border="2" align="center" cellpadding="5" cellspacing="5"> <tr> <td> Enter ISBN :</td> <td> <input type="text" name="isbn" size="48"> </td> </tr> <tr> <td> Enter Title :</td> <td> <input type="text" name="title" size="48"> </td> </tr> <tr> <td> Enter Author :</td> <td> <input type="text" name="author" size="48"> </td> </tr> <tr> <td> Enter Edition :</td> <td> <input type="text" name="edition" size="48"> </td> </tr>…<!DOCTYPE html><html lang="en"> below is box-styles.css <style> @import url('https://fonts.googleapis.com/css2?family=Rubik+Mono+One&display=swap'); body { font-size: 62.5%; margin: 0;} h1 {font-size:4em;text-align: center;font-family: 'Rubik Mono One', sans-serif;} h3 {font-size: 2em;} p {font-size: 1.5em;} h3, p { margin:0; } .title-padding { padding: 5% 10%; } .body-padding { padding-left: inherit; padding-right: inherit; padding-top: 7%; } .light-shadow { box-shadow: transparent; } .max-width { max-width: 50em;} /* .full-width { } */ .center-element { margin-top:8em; margin-left:inherit; margin-right: inherit; text-align: center; } .round-borders { border:1px solid black; border-radius: 0.25em; font-size: 2em; } .bb { box-sizing: content-box; width:100%; padding: inherit; margin: inherit; } .cb { box-sizing: content-box; } </style>above is the box-styles.css <head> <meta…
- <!DOCTYPE html><html lang="en"><head><title>Page Title</title><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1"><style>body { font-family: Arial, Helvetica, sans-serif;}</style></head><body> <h1>My Website</h1><p>A website created by me.</p> </body></html>index.Txt <!DOCTYPE html><html><head><meta charset="utf-8"><title>Colors :: Home</title><style>article {background-color: pink;font-family: Georgia, serif;}.alerts {color: red;font-weight: bold;}a h3 {border-bottom: 2px black dashed;}</style></head><body><nav><ol><li>Home</li><li><a href="tertiary-01.htm">Tertiary Colors</a></li><li><a href="chartreuse-05.htm">Chartreuse</a></li></ol></nav><article><h1>Colors for Painting</h1><p>Modern scientific color theory, which argues that magenta, yellow, and cyan are the best set of three colorants to combine, for the widest range of high-chroma colors but the Red, Yellow, Blue color model still rules the world of artistic painting.</p><h2>Color Theory</h2><p>In the visual arts, <i>color theory</i> is a body of practical guidance to color mixing…CSS and HTML Improve my code to look exactly like the picture. <!DOCTYPE html><html lang="en"><head><title>The Stuff Shop</title><meta charset="utf-8"></head><body><style> body { font-family:Verdana, Arial, sans-serif; background-color: #800000; text-align: center;} #wrapper { background-color: #000000; color: #ffffff; width: 80%; margin: auto; min-width: 960px; max-width: 1200px;} nav { float: left; width: 150px;} main { margin-left: 0px; padding: 200px; background-color: #000000; color: #fffff;} header { color: #fffff; font-size: 200%; padding: 10px 10px 10px 155px; }h1 { margin-bottom: 20px; } } #floatright { margin: 10px; float: right;} footer { font-size:70%; text-align: center; clear: right; padding: 20px; background-color: #869dc7; }nav ul {…