125 Answered Questions for the topic Coding

03/13/20

How do I create a link to a location in a page, when sections are accordion collapsed using CSS?

The page is divided into different categories which can be collapsed (accordion), and using the regular <a href> does not work. That only works when linking to a location in the same section... more
Coding Python

01/22/20

Python Programming Logic Question

A cookie recipe calls for the following ingredients:• 1.5 cups of sugar• 1 cup of butter• 2.75 cups of flourThe recipe produces 48 cookies with this amount of ingredients. Write a programthat asks... more
Coding

01/19/20

c++ programming

Given integers userNum and x, output userNum divided by x four times. If the input is 2000 2, the output is: 1000 500 250 125Note: In C++, integer division discards fractions. Ex: 6 / 4 is 1 (the... more
Coding

01/19/20

C+++ programming

Given integers userNum and x, output userNum divided by x four times. If the input is 2000 2, the output is: 1000 500 250 125Note: In C++, integer division discards fractions. Ex: 6 / 4 is 1 (the... more

Simple Adder HTML JavaScript

Create the form structure shown in Figure 2, below. Write a JavaScript function according to the following requirements. A user should be allowed to enter two numbers in text boxes. When a user... more

JavaScript Form Validation

4. Create the form structure shown in Figure 2, below. Write a JavaScript function according to the following requirements. A user should be allowed to enter his/her Fist name in a text box and... more

CSS - Selecting the first bold word of all paragraphs

write the required external CSS rules for the following : Set the font size and font style , of the first bold word of all the paragraphs in a document into 14px and italic respectively.

JavaScript Form Validation

Question :Create the form structure shown below and write a JavaScript function satisfy the followingrequirements. The Name and the email address are required fields while entering data. Number... more
Coding Javascript

11/13/19

Coding help on Google Docs Add-on

So I'm in the midst of trying to learn code (which I'm kind of bad at). I'm trying to code something to alert me when someone edits a shared google doc. I know that there's this google add-on thing... more

Java String class

So we are given to write the exact output of the following code:class stri123{ public static void main(String[] args) { String name = "University Grants Commission"; boolean sword... more

Java Program / methods

One sales shop offer following discount rates to customers based on their bill value.Bill value Range Discount ratebill value >= 10000 discount 20%bill value >= 5000 disocunt 10%bill value... more

Java Number Patterns

How do we print,_ _ _ _1_ _ _2 1_ _3 2 1_ 4 3 2 1In Java?Please help, I don't know how to get started

Question is in description. About writing a MATLAB code

USING MATLABWrite a program that creates a table showing the conversion from Yen too Pesos. Your program should be able to print a user specified number of lines showing the value of the Yen in one... more
Coding Java Programming

10/12/19

Java - arrays & loops

Question : Write a Java program to read integer data set(size of n<10) into an array and display its data graphically by plotting each numeric value as a bar of asterisks as shown in the... more

How to write a and b as inclusive integers? (python3)

Write a program that takes three integers a, b, and k as command-line arguments writes the integers between a and b (both inclusive), but only k integers per row.I honestly have no idea where to... more
Coding Java Programming

10/03/19

Java Switch Case

How do we write the following code using switch statement ?if(option == 1) vehicle = "Motor Cycle" ;else if(option == 2) vehicle = "Car";else if(option == 3) || (option == 4)vehicle = "Heavy... more

Java Programming

Hi, I'm new to Java. I've been working on this question, wrote the code and checked the results with some examples and it seems to be doing fine. I would be glad if any of the tutors can check the... more

Java Switch Case

Why is the output of the code 14, not 8 : alpha=3+5=8?public class Application4{public static void main(String[] args) {int alpha=3;int beta=5;switch (beta){case 3:alpha=alpha+3;case... more

09/16/19

Write pseudocode that prompts (input) the capacity, in gallons, of an automobile fuel tank and the miles per gallon the automobile can be driven

The program outputs the number of miles the automobile can be driven without refueling.
Coding Web Design

09/15/19

Want some coding help please...

Hey, so I’m making a social media, and I need to make a code that allows you to make a group chat and chat on it, any ideas? I’m coding in html so yeah, no c# or crap

06/15/19

Exact change in Python

Write a program with total change amount as an integer input, and output the change using the fewest coins, one coin type per line. The coin types are dollars, quarters, dimes, nickels, and... more
Coding Python

04/30/19

I'm struggling in Python programming Class.

Class uses a book called Python for everyone.We meet with the teacher once a week for 2 hours.He usually only talks about the meaning of the chapter per week we go through.He gives HW and... more

What do I need to do to get this C# code to work in Unity?

Help me!! i've just started a cert IV in Digital and Interactive Games and i'm really stumped on something. The video I've been given to watch is using an older version of Unity which included... more

11/09/18

Hi am new to javascript and would like to know what I did wrong

var User = prompt('Pick Temp Username');//Page always shows the Null message even if the user put something in the boxif (User =! null){document.write('User didnt put username');}else... more

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.