Read any three days in a week from the keyboard. Then, display all those days in a single line like the example below. Activity 6.3: Tips: Comment in your program and save your file as Activity_6.3.c Ent er any three days in a week: Fri day Sat ur day Sunday The three days you ent er ed ar e: Fri day, Sat ur day and Sunday
Q: You are given the following Disney file (no trouble.txt with the following content: Hakuna Matata!…
A: Solution: a.WRONG Because You can make a dictionary by enclosing a comma-separated list of…
Q: Write a program to simulate showing an NBA Team on a Basketball court. Here is an example of the…
A: Given Data:- The code is given below on step 2
Q: Write a program that prompts the user to enter 5 exam marks (design your program such that it would…
A: PROGRAM CODE: #include<iostream> //included namespace using namespace std; //main function…
Q: Write a program to simulate a bank transaction. As the banker, create a single pin number for all…
A: Required: Write a program to simulate a bank transaction. As the banker, create a single pin number…
Q: Create a program that converts a Fahrenheit measure to a Celsius measurement where (C=5/9(F-32)) .…
A: #include <stdio.h> int main(){ float c,f; printf("Enter the temperature in…
Q: Sites like Zillow get input about house prices from a database and provide nice summaries for…
A: Here I have declared 2 variables and taken input from the user for the values of these 2 variables.…
Q: Imagine that you are managing a plant, and measure production each day. Production is in number of…
A: prod = 1list=[]day=1#taking input and appending in listwhile prod > 0: prod=int(input("Please…
Q: Write a program in python that allows an instructor to calculate the final grade for the students in…
A: Python is an interpreted, high-level and general-purpose programming language. Created by GVR and…
Q: class Time(): def __init__(self,hour,min): self.hrs=hour self.mins=min def…
A: This program is used to convert time provided in hours and minutes format to minutes
Q: Write a program which reads two integer values. If the first is less than the second, print the…
A: 1. Declare two variables 2. Store two textbox values into two variables 3. If first < second then…
Q: 3.1 How many seconds are in an hour? Use the interactive interpreter as a calculator and multiply…
A: 3.1 How many seconds are in an hour? Use the interactive interpreter as a calculator and multiply…
Q: You are given the following Disney file no_trouble.txt with the following content: Hakuna Matata!…
A: The solution for the above given question is given below:
Q: Sites like Zillow get input about house prices from a database and provide nice summaries for…
A: Given requirement, Sites like Zillow get input about house prices from a database and provide nice…
Q: Write a program for Horizon Phones, a provider of cellular phone service.Prompt a user for maximum…
A: code :-- //for Scanner classimport java.util.*; public class Main{ public static void main(String[]…
Q: Write a program that simulates car racing, as shown in Figure 9.29b–d. The car moves from left to…
A: Racing car: Write a program that simulates racing* The automobile moves from left to right. once it…
Q: Suppose you save $100 each monthin a savings account with annual interest rate 3.75%. The monthly…
A: Since, programming language is not mentioned in the question, we will answer this question in Java…
Q: Write a python program that keeps track of evidence from 25 forensic cases. The user should be able…
A: I have given a python code in step 2.
Q: 3. Write a program that will calculate the exam grade of students by the formula,…
A: Code #include <stdio.h> int main(){ float…
Q: Let's modify the program from this section so that the user can supply the interest rate. For very…
A: Step 1: Declare a constant to store initial balance. Step 2: Declare and initialize year to be 0.…
Q: Create a Program with the following output: STUDENT RECORDS TO PASS THIS COMPLETION EXAM RECORD NO.…
A: for this program solution you need to create student class and create two functions for input and…
Q: fun( a, b){ a = b+ 2; b= b*2; int main (){ int x = 3; int y = 2; fun(x.y); fun(x.y); print x, y: (A)…
A: The problem is based on the basics of functions in programming languages.
Q: Write a program to calculate the total employee salary (basic salary overtime house rent) based on…
A: Task :- Write a program to calculate the total salary for an employee. (Note :- As programming…
Q: Write a program that consists of the code below. a = 1 b = "One" c = 5.2 d = "5.2" e = "3" aa =…
A: Objective: According to the question, we need to rectify some errors and state the reasons for…
Q: Implement the following: 1) Use a loop to continuously request an integer input from the console. 2)…
A: sum=0while(1): n=int(input("enter a number between -10 and 10:")) if(n<-10 or n>10):…
Q: using java language Scanners are handy for reading input that is stored in a file. For this…
A: The below given Java program will obey the following rubrics: Including necessary data packages. In…
Q: Write a program that displays an inchworm on the left-hand side of the screen, facing right. Then…
A: According to the information given:- We have to display inchworm on the left side of the screen…
Q: The following question uses a robot in a grid of squares. The robot is represented by a triangle,…
A: A 5*5 grid is given along with the position of the robot. We need to make robot move in such a way…
Q: Write a program by entering two integer numbers of your choice and make sure your program works…
A: Programming language is missing in the question. The below program is provided in Java programming…
Q: What is the output of the following code snippet? new Student(); = new Student(345, 3.5); Student…
A: 1. B. 0 3.5 2. D 345 345
Q: Write a program to: (a) prompt the user, (b) read first initial, then the middle, and then the last…
A: Since no programming language is mentioned, I am using python. Algorithm: Start Read first initial…
Q: Write a program to calculate the total employee salary (basic salary + overtime + house rent) based…
A: Task :- Write an program to calculate the total salary for an employee. (Note :- As programming…
Q: Consider the program below. What is the output of the program? If the break statement is replaced…
A: What is the output of the program? If the break statement is replaced with continue statement, what…
Q: text file. (e.g., message2.txt, notes.txt, message3.txt) try to the files. Develop a small menu like…
A: Pseudocode void main(){ print("Main Menu") print("1. Read a file") print("2. Quit")…
Q: def aaa(p): return p ** 3 print("more defs". def bbb(q): return q // 16 def ccc(p, q): print(aaa(p))…
A: I have given justication of this code below in detail.
Q: RGB LED fading colors project. Write comments for the below C code explaining each line. Code is…
A: RG B LED fading colors project. The comments for the given code is given below:
Q: Sites like Zillow get input about house prices from a database and provide nice summaries for…
A: Input both values and the difference is printed Then mortgage is printed with 2 point precision
Q: Sites like Zillow get input about house prices from a database and provide nice summaries for…
A: Given the source code Take the input of house prices And compute monthly mortgage.
Q: Sites like Zillow get input about house prices from a database and provide nice summaries for…
A: Here I have corrected the code in the Java programing language so the expected output is viewed. I…
Q: 3.1 How many seconds are in an hour? Use the interactive interpreter as a calculator and multiply…
A: >>> 60 * 603600
Q: Write a program to read the details of 2 items and display them on the output screen in the below…
A: Here I have taken three arrays to store item name, price, and quantity separately. I have first of…
Q: 1. What is printed by the following code fragment? int x = 0; do { cout 0; i--) cout <<i<< '\n';…
A: Output will be 0123456789
Q: Write the CellPhoneService program for Horizon Phones, a provider of cellular phone service. Prompt…
A: import java.util.Scanner; public class CellPhoneService { public static void main(String[] args)…
Q: Write a program to calculate the total employee salary (basic salary + overtime + house rent) based…
A: Task :- Write a program to calculate the employee salary . Note :- As programming language is not…
Q: 2. Write a program that determines the final grade for a course: • Enter the grades (in percent) for…
A:
Q: Write a program that compares the area of two rectangles. You can do this several ways, one way is…
A: The program is written in Python. Please find the program in step 2.
Q: What is output? public enum TrafficLight {RED, YELLOW, GREEN} TrafficLight myLight; myLight =…
A: question 1: In the first code enum TrafficLight has three values that are RED , YELLOW GREEN. Since…
Q: On July 16, 1969, the Apollo 11 spacecraft launched from Earth. Write out a program to simulate a…
A: Solution: I implemented the solution in Python-3 I also used the time module and time.sleep(sec)…
Q: Sites like Zillow get input about house prices from a database and provide nice summaries for…
A: Please find the answer below
Q: With the statement, With the statement, int x=1; int x=0; while(x<20) { while(x!=20) { x+=2; x+=2;…
A: Answer :- Both answer will be Infinite loop
Step by step
Solved in 3 steps with 2 images
- Write a Java program, GradeApp that reads a series of exam scores given as integers in the range 0 to 100. Display the total number of grades and the number of grades in each letter-grade category, followed class average (as a percentage with 2 decimal place): Use the value -1 as a sentinel value to indicate the end of the input. (The -1 value is used only to end the loop. Please do not use it in the calculations.)This is for Coral. Sites like Zillow get input about house prices from a database and provide nice summaries for readers. Write a program with two inputs, current price and last month's price (both integers). Then, output a summary listing the price, the change since last month, and the estimated monthly mortgage computed as (currentPrice * 0.045) / 12. Output the estimated monthly mortgage (estMortgage) with two digits after the decimal point, which can be achieved as follows:Put estMortgage to output with 2 decimal places Ex: If the input is: 200000 210000 the output is: This house is $200000. The change is $-10000 since last month. The estimated monthly mortgage is $750.00. Note: Getting the precise spacing, punctuation, and newlines exactly right is a key point of this assignment. Such precision is an important part of programming. The code I have written is: integer currentPriceinteger lastMonthsPriceinteger changeSinceLastMonthinteger estMortgage currentPrice = Get next…Please do this in PYTHON PROGRAMMING Write an address book program that stores your contacts' names and their email addresses. The names and email addresses are originally stored in a file called phonebook.in, in the format:Harry P..d@hogwarts.eduHermione G..h@hogwarts.eduRon W..b@hogwarts.eduDraco M..s@hogwarts.eduSeverus S..e@hogwarts.eduAlbus D..x@hogwarts.eduYour program should read from the file, storing the names and corresponding email addresses in a dictionary as key-value pairs. Then, the program should display a menu that lets the user enter the numbers 1 through 5, each corresponding to a different menu item:1) look up an email address2) add a new name and email address3) change an email address4) delete a name and email address5) save address book and exitWhen the user enters 1, the program should prompt them for a name, and then print the corresponding email address. If there is no dictionary entry under that name, the program should print, "Sorry, no contact exists…
- JAVA PPROGRAM I have provided the failed test cases and the inputs as a screenshot. Please Modify this program with further modifications as listed below: The program must pass the test case when uploaded to Hypergrade. ALSO, take out the following in the program: System.out.println("Program terminated."); because the test case does not need it. import java.io.*;import java.util.ArrayList;import java.util.Scanner;public class SymmetricalNameMatcher { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); String fileName; do { // Prompt the user to enter a file name or 'QUIT' to exit. System.out.print("Please enter the file name or type QUIT to exit:\n"); fileName = scanner.nextLine(); if (fileName.equalsIgnoreCase("QUIT")) { // If the user types 'QUIT', terminate the program. System.out.println("Program terminated."); break;…write in JAVA LANGUAGE Create a program that will compute PRELIM, MID-TERM, PRE-FINAL, FINALS GRADES of a studentHow to compute quiz and exam = (raw score/total score)*50+50How to compute per period (quiz1+quiz2+quiz3)*60%+exam*40%How to compute FInal grade =(Prelimgrade*20%)+(Midtermgrade*20%)+(Pre-Finals*20%)+(Finalgrade*40%) Example output:PRELIM GRADEEnter Quiz1: ____Enter Quiz2: ____Enter Quiz3: ____Prelim grade = MIDTERM GRADEEnter Quiz1: ____Enter Quiz2: ____Enter Quiz3: ____Prelim grade = PRE-FINALS GRADEEnter Quiz1: ____Enter Quiz2: ____Enter Quiz3: ____Prelim grade = FINALS GRADESEnter Quiz1: ____Enter Quiz2: ____Enter Quiz3: ____Prelim grade = List of GRADESPrelim = Midterm = Pre-Finals = Finals =Write a Java program ( use ComputerAverage.Java as an example) that should implement an interactive dialog that provides user with information about the procedures and asks user for information. Create a new folder Hw2_Campbell which includes the following files assignment report file:Report_Area_Circumference.doc program’s source file: Area_Circumference.Java Program’s bytecode file: Area_Curcumference.
- Write a program OrderCheck.java that takes four int command-line arguments w, x, y, and z. Define a boolean variable whose value is true if the four values are either in strictly ascending order (w < x < y < z) or strictly descending order (w > x > y > z), and false otherwise. Then, display the boolean variable value.Write a Windows application that allows the user to explore the knapsackproblem. The user should be able to change the capacity of the knapsack,the sizes of the items, and the values of the items. The user should alsocreate a list of item names that is associated with the items used in theprogram.Write a program in the Java language requires the management of university students, where student data (name, student number, and specialization) are saved, and then he can add and delete study materials for the current semester, and you can also add the grade for each subject (with the addition of the final code for the degree automatically).Note: The class principle is used to solve this assignment.
- What will be the output of the following program snippet: With static scoping a) 2 4 b) 3 1 c) 2 5 d) 3 4 With dynamic scoping a) 2 4 b) 3 1 c) 2 5 d) 3 4 int a, b; void print() { printf("%d %d", a, b); } int fun1(){ int a,c a= 0; b = 1; c = 2; return c; } void fun2() { int b; a=3; b=4; print(); } int main(){ a=fun1(); fun2(); }Can you add class level comments, function level comments and inline comments In this line int i,n=0,s=0; they say the assigned value is not used can you fix that package avgsum;import java.util.Scanner; /**** @author Zaahid*/public class AvgSum { /*** @param args the command line arguments*/public static void main(String[] args) { int i,n=0,s=0;double average;{System.out.println("Enter the 5 numbers : "); }for (i=0;i<5;i++){Scanner in = new Scanner(System.in);n = in.nextInt();s +=n;}average=s/5;System.out.println("The sum of 5 numbers is : " +s+"\nThe Average is : " +average);}Write an address book program that stores your contacts' names and their email addresses. The names and email addresses are originally stored in a file called phonebook.in, in the format: Harry Potter t..d@hogwarts.edu Hermione Granger b..h@hogwarts.edu Ron Weasley r..b@hogwarts.edu Draco Malfoy m..s@hogwarts.edu Severus Snape h..e@hogwarts.edu Albus Dumbledore a..x@hogwarts.edu Your program should read from the file, storing the names and corresponding email addresses in a dictionary as key-value pairs. Then, the program should display a menu that lets the user enter the numbers 1 through 5, each corresponding to a different menu item: 1) look up an email address 2) add a new name and email address 3) change an email address 4) delete a name and email address 5) save address book and exit When the user enters 1, the program should prompt them for a name, and then print the corresponding email address. If there is no dictionary entry under that name, the program should print, "Sorry,…